函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\trace_hwlat.c Create Date:2022-07-27 13:17:49
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:_tracefs - A function to initialize the tracefs interface files* This function creates entries in tracefs for "hwlat_detector"

函数原型:static int init_tracefs(void)

返回类型:int

参数:

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  如果是错误则返回:负ENOMEM
538  top_dir等于tracefs_create_dir("hwlat_detector", d_tracer)
539  如果非top_dir则返回:负ENOMEM
542  sample window us 等于tracefs_create_file("window", 0640, top_dir, & al sampling window (on+off) , & window_fops)
546  如果非sample window us 则转到:err
549  sample width us 等于tracefs_create_file("width", 0644, top_dir, & active sampling portion of window , & width_fops)
553  如果非sample width us 则转到:err
556  返回:0
558  err :
559  tracefs_remove_recursive(top_dir)
560  返回:负ENOMEM
调用者
名称描述
init_hwlat_tracer