Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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

Proto:struct dentry *tracing_init_dentry(void)

Type:struct dentry

Parameter:Nothing

8806  tr = The global_trace is the descriptor that holds the top-level tracing* buffers for the live tracing.
8808  If security_locked_down(LOCKDOWN_TRACEFS) Then
8809  pr_warn("Tracing disabled due to lockdown\n")
8810  Return ERR_PTR( - EPERM)
8814  If dir Then Return NULL
8817  If 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()) Then Return ERR_PTR( - ENODEV)
8828  dir = debugfs_create_automount("tracing", NULL, trace_automount, NULL)
8831  Return NULL
Caller
NameDescribe
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