函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:trace_create_new_event

函数原型:static struct trace_event_file *trace_create_new_event(struct trace_event_call *call, struct trace_array *tr)

返回类型:struct trace_event_file

参数:

类型参数名称
struct trace_event_call *call
struct trace_array *tr
2282  file等于kmem_cache_alloc(file_cachep, GFP_TRACE)
2283  如果非file则返回:NULL
2286  event_call等于call
2287  tr等于tr
2288  atomic_set( & soft-mode reference counter , 0)
2289  atomic_set( & trigger-mode reference counter , 0)
2290  初始化链表头
2291  添加链表项
2293  返回:file
调用者
名称描述
__trace_add_new_eventAdd an event to a trace directory
__trace_early_add_new_eventJust create a decriptor for early init. A descriptor is required* for enabling events at boot. We want to enable events before* the filesystem is initialized.