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

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

Proto:int event_trace_add_tracer(struct dentry *parent, struct trace_array *tr)

Type:int

Parameter:

TypeParameterName
struct dentry *parent
struct trace_array *tr
3009  lockdep_assert_held( & event_mutex)
3011  ret = Expects to have event_mutex held when called
3012  If ret Then Go to out
3015  lock for writing
3016  Create a new event directory structure for a trace directory.
3017  lease a write lock
3019  out :
3020  Return ret
Caller
NameDescribe
trace_array_create