函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:tracing_init_tracefs_percpu

函数原型:static void tracing_init_tracefs_percpu(struct trace_array *tr, long cpu)

返回类型:void

参数:

类型参数名称
struct trace_array *tr
longcpu
7919  d_percpu等于tracing_dentry_percpu(tr, cpu)
7923  如果非d_percpu则返回
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  如果非d_cpu
7929  打印警告信息("Could not create tracefs '%s' entry\n", cpu_dir)
7930  返回
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)
调用者
名称描述
init_tracer_tracefs