函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:tracer_init_tracefs

函数原型:static __init int tracer_init_tracefs(void)

返回类型:int

参数:

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  如果是错误则返回: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  返回:0