函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:create_trace_option_files

函数原型:static void create_trace_option_files(struct trace_array *tr, struct tracer *tracer)

返回类型:void

参数:

类型参数名称
struct trace_array *tr
struct tracer *tracer
8175  如果非tracer则返回
8178  flags等于flags
8180  如果非flags或非opts则返回
8187  如果非Some tracers are not suitable for instance buffers.* A tracer is always available for the global array (toplevel)* or if it explicitly states that it is.则返回
8190 i小于nr_topts循环
8192  如果WARN_ON_ONCE(flags == flags)则返回
8196  opts等于opts
8198 Will appear on the trace_options file 循环topts等于分配数组内存并置零
8202  如果非topts则返回
8205  tr_topts等于krealloc(topts, topts的长度 * (nr_topts + 1), GFP_KERNEL)
8207  如果非tr_topts
8208  kfree(topts)
8209  返回
8212  topts等于tr_topts
8213  tracer等于tracer
8214  topts等于topts
8215  nr_topts自加
8217 Will appear on the trace_options file 循环
8218  create_trace_option_file(tr, & topts[cnt], flags, & opts[cnt])
8220  WARN_ONCE(entry == NULL, "Failed to create trace option: %s", Will appear on the trace_options file )
调用者
名称描述
add_tracer_options