Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\trace_stat.c Create Date:2022-07-28 12:06:17
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:tracing_stat_init

Proto:static int tracing_stat_init(void)

Type:int

Parameter:Nothing

281  d_tracing = racing_init_dentry - initialize top level trace array* This is called when creating files or directories in the tracing* directory. It is called via fs_initcall() by any of the boot up code
282  If IS_ERR(d_tracing) Then Return -ENODEV
285  The root directory for all stat files = tracefs_create_dir("trace_stat", d_tracing)
286  If Not The root directory for all stat files Then
287  pr_warn("Could not create tracefs 'trace_stat' entry\n")
288  Return -ENOMEM
290  Return 0
Caller
NameDescribe
init_stat_file