函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:vent_trace_add_tracer - add a instance of a trace_array to events*@parent: The parent dentry to place the files/directories for events in*@tr: The trace array associated with these events* When a new instance is created, it needs to set up its events

函数原型:int event_trace_add_tracer(struct dentry *parent, struct trace_array *tr)

返回类型:int

参数:

类型参数名称
struct dentry *parent
struct trace_array *tr
3009  lockdep_assert_held( & event_mutex)
3011  ret等于Expects to have event_mutex held when called
3012  如果ret则转到:out
3015  lock for writing
3016  Create a new event directory structure for a trace directory.
3017  lease a write lock
3019  out :
3020  返回:ret
调用者
名称描述
trace_array_create