函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:init_tracer_tracefs

函数原型:static void init_tracer_tracefs(struct trace_array *tr, struct dentry *d_tracer)

返回类型:void

参数:

类型参数名称
struct trace_array *tr
struct dentry *d_tracer
8699  trace_create_file("available_tracers", 0444, d_tracer, tr, & show_traces_fops)
8702  trace_create_file("current_tracer", 0644, d_tracer, tr, & set_tracer_fops)
8705  trace_create_file("tracing_cpumask", 0644, d_tracer, tr, & tracing_cpumask_fops)
8708  trace_create_file("trace_options", 0644, d_tracer, tr, & tracing_iter_fops)
8711  trace_create_file("trace", 0644, d_tracer, tr, & tracing_fops)
8714  trace_create_file("trace_pipe", 0444, d_tracer, tr, & tracing_pipe_fops)
8717  trace_create_file("buffer_size_kb", 0644, d_tracer, tr, & tracing_entries_fops)
8720  trace_create_file("buffer_total_size_kb", 0444, d_tracer, tr, & tracing_total_entries_fops)
8723  trace_create_file("free_buffer", 0200, d_tracer, tr, & tracing_free_buffer_fops)
8726  trace_create_file("trace_marker", 0220, d_tracer, tr, & tracing_mark_fops)
8729  file等于__find_event_file(tr, "ftrace", "print")
8730  如果filedirtrace_create_file("trigger", 0644, dir, file, & event_trigger_fops)
8733  trace_marker_file等于file
8735  trace_create_file("trace_marker_raw", 0220, d_tracer, tr, & tracing_mark_raw_fops)
8738  trace_create_file("trace_clock", 0644, d_tracer, tr, & trace_clock_fops)
8741  trace_create_file("tracing_on", 0644, d_tracer, tr, & rb_simple_fops)
8744  trace_create_file("timestamp_mode", 0444, d_tracer, tr, & trace_time_stamp_mode_fops)
8747  buffer_percent等于50
8749  trace_create_file("buffer_percent", 0444, d_tracer, tr, & buffer_percent_fops)
8752  create_trace_options_dir(tr)
8758  如果ftrace_create_function_files(tr, d_tracer)则WARN(1, "Could not allocate function filter files")
8766  trace_create_file("error_log", 0644, d_tracer, tr, & tracing_err_log_fops)
8769  for_each_tracing_cpu(cpu)
8770  tracing_init_tracefs_percpu(tr, cpu)
8772  ftrace_init_tracefs(tr, d_tracer)
调用者
名称描述
trace_array_create
tracer_init_tracefs