Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:init_tracer_tracefs

Proto:static void init_tracer_tracefs(struct trace_array *tr, struct dentry *d_tracer)

Type:void

Parameter:

TypeParameterName
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  If file && dir Then trace_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  If ftrace_create_function_files(tr, d_tracer) Then 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)
Caller
NameDescribe
trace_array_create
tracer_init_tracefs