Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:trace_create_new_event

Proto:static struct trace_event_file *trace_create_new_event(struct trace_event_call *call, struct trace_array *tr)

Type:struct trace_event_file

Parameter:

TypeParameterName
struct trace_event_call *call
struct trace_array *tr
2282  file = kmem_cache_alloc(file_cachep, GFP_TRACE)
2283  If Not file Then Return 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  Initialization list head
2291  list_add - add a new entry*@new: new entry to be added*@head: list head to add it after* Insert a new entry after the specified head.* This is good for implementing stacks.
2293  Return file
Caller
NameDescribe
__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.