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:46
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Just 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.

Proto:static __init int __trace_early_add_new_event(struct trace_event_call *call, struct trace_array *tr)

Type:int

Parameter:

TypeParameterName
struct trace_event_call *call
struct trace_array *tr
2320  file = trace_create_new_event(call, tr)
2321  If Not file Then Return -ENOMEM
2324  Return 0
Caller
NameDescribe
__trace_early_add_eventsFor early boot up, the top trace array requires to have* a list of events that can be enabled. This must be done before* the filesystem is set up in order to allow events to be traced* early.