函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:static __init int early_event_add_tracer(struct dentry *parent, struct trace_array *tr)

返回类型:int

参数:

类型参数名称
struct dentry *parent
struct trace_array *tr
3032  mutex_lock( & event_mutex)
3034  ret等于Expects to have event_mutex held when called
3035  如果ret则转到: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  返回:ret
调用者
名称描述
event_trace_init