Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:tracing_init_tracefs_percpu

Proto:static void tracing_init_tracefs_percpu(struct trace_array *tr, long cpu)

Type:void

Parameter:

TypeParameterName
struct trace_array *tr
longcpu
7919  d_percpu = tracing_dentry_percpu(tr, cpu)
7923  If Not d_percpu Then Return
7926  snprintf - Format a string and place it in a buffer*@buf: The buffer to place the result into*@size: The size of the buffer, including the trailing null space*@fmt: The format string to use*@
7927  d_cpu = tracefs_create_dir(cpu_dir, d_percpu)
7928  If Not d_cpu Then
7929  pr_warn("Could not create tracefs '%s' entry\n", cpu_dir)
7930  Return
7934  trace_create_cpu_file("trace_pipe", 0444, d_cpu, tr, cpu, & tracing_pipe_fops)
7938  trace_create_cpu_file("trace", 0644, d_cpu, tr, cpu, & tracing_fops)
7941  trace_create_cpu_file("trace_pipe_raw", 0444, d_cpu, tr, cpu, & tracing_buffers_fops)
7944  trace_create_cpu_file("stats", 0444, d_cpu, tr, cpu, & tracing_stats_fops)
7947  trace_create_cpu_file("buffer_size_kb", 0444, d_cpu, tr, cpu, & tracing_entries_fops)
Caller
NameDescribe
init_tracer_tracefs