函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:racepoint_probe_register_prio - Connect a probe to a tracepoint with priority*@tp: tracepoint*@probe: probe handler*@data: tracepoint data*@prio: priority of this function over other registered functions* Returns 0 if ok, error value on error

函数原型:int tracepoint_probe_register_prio(struct tracepoint *tp, void *probe, void *data, int prio)

返回类型:int

参数:

类型参数名称
struct tracepoint *tp
void *probe
void *data
intprio
311  mutex_lock( & racepoints_mutex protects the builtin and module tracepoints.* tracepoints_mutex nests inside tracepoint_module_list_mutex.)
312  func等于probe
313  data等于data
314  prio等于prio
315  ret等于Add the probe function to a tracepoint.
316  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.
317  返回:ret
调用者
名称描述
tracepoint_probe_registerracepoint_probe_register - Connect a probe to a tracepoint*@tp: tracepoint*@probe: probe handler*@data: tracepoint data* Returns 0 if ok, error value on error.* Note: if @tp is within a module, the caller is responsible for