Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:tracer_init_tracefs

Proto:static __init int tracer_init_tracefs(void)

Type:int

Parameter:Nothing

8920  trace_access_lock_init()
8922  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
8923  If IS_ERR(d_tracer) Then Return 0
8926  event_trace_init()
8928  init_tracer_tracefs( & The global_trace is the descriptor that holds the top-level tracing* buffers for the live tracing., d_tracer)
8929  ftrace_init_tracefs_toplevel( & The global_trace is the descriptor that holds the top-level tracing* buffers for the live tracing., d_tracer)
8931  trace_create_file("tracing_thresh", 0644, d_tracer, & The global_trace is the descriptor that holds the top-level tracing* buffers for the live tracing., & tracing_thresh_fops)
8934  trace_create_file("README", 0444, d_tracer, NULL, & tracing_readme_fops)
8937  trace_create_file("saved_cmdlines", 0444, d_tracer, NULL, & tracing_saved_cmdlines_fops)
8940  trace_create_file("saved_cmdlines_size", 0644, d_tracer, NULL, & tracing_saved_cmdlines_size_fops)
8943  trace_create_file("saved_tgids", 0444, d_tracer, NULL, & tracing_saved_tgids_fops)
8946  trace_eval_init()
8948  trace_create_eval_file(d_tracer)
8951  register_module_notifier( & trace_module_nb)
8959  create_trace_instances(d_tracer)
8961  update_tracer_options( & The global_trace is the descriptor that holds the top-level tracing* buffers for the live tracing.)
8963  Return 0