Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:_tracefs - A function to initialize the tracefs interface files* This function creates entries in tracefs for "hwlat_detector"

Proto:static int init_tracefs(void)

Type:int

Parameter:Nothing

534  d_tracer = 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
535  If IS_ERR(d_tracer) Then Return -ENOMEM
538  top_dir = tracefs_create_dir("hwlat_detector", d_tracer)
539  If Not top_dir Then Return -ENOMEM
542  sample window us = tracefs_create_file("window", 0640, top_dir, & al sampling window (on+off) , & window_fops)
546  If Not sample window us Then Go to err
549  sample width us = tracefs_create_file("width", 0644, top_dir, & active sampling portion of window , & width_fops)
553  If Not sample width us Then Go to err
556  Return 0
558  err :
559  tracefs_remove_recursive(top_dir)
560  Return -ENOMEM
Caller
NameDescribe
init_hwlat_tracer