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:18
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:init_stat_file

Proto:static int init_stat_file(struct stat_session *session)

Type:int

Parameter:

TypeParameterName
struct stat_session *session
297  If Not The root directory for all stat files && (ret = tracing_stat_init()) Then Return ret
300  file = tracefs_create_file(The name of your stat file , 0644, The root directory for all stat files , session, & tracing_stat_fops)
303  If Not file Then Return -ENOMEM
305  Return 0
Caller
NameDescribe
register_stat_tracer