Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Disable trace_probe* if the file is NULL, disable "perf" handler, or disable "trace" handler.

Proto:static int disable_trace_kprobe(struct trace_event_call *call, struct trace_event_file *file)

Type:int

Parameter:

TypeParameterName
struct trace_event_call *call
struct trace_event_file *file
407  tp = trace_probe_primary_from_call(call)
408  If WARN_ON_ONCE(!tp) Then Return -ENODEV
411  If file Then
412  If Not trace_probe_get_file_link(tp, file) Then Return -ENOENT
414  If Not trace_probe_has_single_file(tp) Then Go to out
416  trace_probe_clear_flag(tp, Flags for trace_probe )
417  Else trace_probe_clear_flag(tp, TP_FLAG_PROFILE)
420  If Not trace_probe_is_enabled(tp) Then __disable_trace_kprobe(tp)
423  out :
424  If file Then trace_probe_remove_file(tp, file)
433  Return 0
Caller
NameDescribe
kprobe_registeralled by perf_trace_init() or __ftrace_set_clr_event() under event_mutex.* kprobe_trace_self_tests_init() does enable_trace_probe/disable_trace_probe* lockless, but we can't race with this __init function.