Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\trace_event_perf.c Create Date:2022-07-28 12:23:23
Last Modify:2020-03-17 20:20:33 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:perf_trace_init

Proto:int perf_trace_init(struct perf_event *p_event)

Type:int

Parameter:

TypeParameterName
struct perf_event *p_event
220  event_id = config
221  ret = -EINVAL
223  mutex_lock( & event_mutex)
225  If type == event_id && class && reg && try_module_get(mod) Then
228  ret = perf_trace_event_init(tp_event, p_event)
229  If ret Then module_put(mod)
231  Break
234  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.
236  Return ret