Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\tracepoint.c Create Date:2022-07-28 11:50:19
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

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

Proto:int tracepoint_probe_register_prio(struct tracepoint *tp, void *probe, void *data, int prio)

Type:int

Parameter:

TypeParameterName
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  Return ret
Caller
NameDescribe
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