函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\trace_event_perf.c Create Date:2022-07-27 13:30:51
Last Modify:2020-03-17 20:20:33 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:perf_trace_init

函数原型:int perf_trace_init(struct perf_event *p_event)

返回类型:int

参数:

类型参数名称
struct perf_event *p_event
220  event_id等于config
221  ret等于负EINVAL
223  mutex_lock( & event_mutex)
225  如果type恒等于event_idclassreg判断模块是否处于活动状态
228  ret等于perf_trace_event_init(tp_event, p_event)
229  如果retmodule_put(mod)
231  退出
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  返回:ret