函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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

函数原型:struct dentry *tracing_init_dentry(void)

返回类型:struct dentry

参数:

8806  tr等于The global_trace is the descriptor that holds the top-level tracing* buffers for the live tracing.
8808  如果security_locked_down(LOCKDOWN_TRACEFS)则
8809  打印警告信息("Tracing disabled due to lockdown\n")
8810  返回:错误号
8814  如果dir则返回:NULL
8817  如果WARN_ON(!tracefs_initialized())或IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_DEBUG_FS)且WARN_ON(!debugfs_initialized())则返回:错误号
8828  dir等于debugfs_create_automount("tracing", NULL, trace_automount, NULL)
8831  返回:NULL
调用者
名称描述
tracer_init_tracefs
tracing_stat_init
init_trace_printk_function_export
init_tracefs_tracefs - A function to initialize the tracefs interface files* This function creates entries in tracefs for "hwlat_detector"
stack_trace_init
init_graph_tracefs
event_trace_init
trace_events_hist_init
init_kprobe_traceMake a tracefs interface for controlling probe points
init_dynamic_eventMake a tracefs interface for controlling dynamic events
init_uprobe_traceMake a trace interface for controling probe points