函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Remove a probe function from a tracepoint.* Note: only waiting an RCU period after setting elem->call to the empty* function insures that the original callback is not used anymore. This insured* by preempt_disable around the call site.

函数原型:static int tracepoint_remove_func(struct tracepoint *tp, struct tracepoint_func *func)

返回类型:int

参数:

类型参数名称
struct tracepoint *tp
struct tracepoint_func *func
271  tp_funcs等于cu_dereference_protected() - fetch RCU pointer when updates prevented*@p: The pointer to read, prior to dereferencing*@c: The conditions under which the dereference will take place* Return the value of the specified RCU-protected pointer, but omit(funcs, lockdep_is_held( & racepoints_mutex protects the builtin and module tracepoints.* tracepoints_mutex nests inside tracepoint_module_list_mutex.))
273  old等于func_remove( & tp_funcs, func)
274  如果是错误
275  WARN_ON_ONCE(错误 != - ENOMEM)
276  返回:错误
279  如果非tp_funcs
281  如果unregfuncstatic_key_enabled( & key)则unregfunc()
284  如果static_key_enabled( & key)则static_key_slow_dec( & key)
287  cu_assign_pointer() - assign to RCU-protected pointer*@p: pointer to assign to*@v: value to assign (publish)* Assigns the specified value to the specified RCU-protected* pointer, ensuring that any concurrent RCU readers will see* any prior initialization(funcs, tp_funcs)
288  release_probes(old)
289  返回:0
调用者
名称描述
tracepoint_probe_unregisterracepoint_probe_unregister - Disconnect a probe from a tracepoint*@tp: tracepoint*@probe: probe function pointer*@data: tracepoint data* Returns 0 if ok, error value on error.