Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

Proto:static int tracepoint_remove_func(struct tracepoint *tp, struct tracepoint_func *func)

Type:int

Parameter:

TypeParameterName
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  If IS_ERR(old) Then
275  WARN_ON_ONCE(PTR_ERR(old) != - ENOMEM)
276  Return PTR_ERR(old)
279  If Not tp_funcs Then
281  If unregfunc && static_key_enabled( & key) Then unregfunc()
284  If static_key_enabled( & key) Then 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  Return 0
Caller
NameDescribe
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.