Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:The top trace array already had its file descriptors created.* Now the files themselves need to be created.

Proto:static __init int early_event_add_tracer(struct dentry *parent, struct trace_array *tr)

Type:int

Parameter:

TypeParameterName
struct dentry *parent
struct trace_array *tr
3032  mutex_lock( & event_mutex)
3034  ret = Expects to have event_mutex held when called
3035  If ret Then Go to out_unlock
3038  lock for writing
3039  The top level array has already had its trace_event_file* descriptors created in order to allow for early events to* be recorded. This function is called after the tracefs has been* initialized, and we now have to create the files associated
3040  lease a write lock
3042  out_unlock :
3043  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
3045  Return ret
Caller
NameDescribe
event_trace_init