函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Disable trace_probe* if the file is NULL, disable "perf" handler, or disable "trace" handler.

函数原型:static int disable_trace_kprobe(struct trace_event_call *call, struct trace_event_file *file)

返回类型:int

参数:

类型参数名称
struct trace_event_call *call
struct trace_event_file *file
407  tp等于trace_probe_primary_from_call(call)
408  如果WARN_ON_ONCE(!tp)则返回:负ENODEV
411  如果file
412  如果非trace_probe_get_file_link(tp, file)则返回:负ENOENT
414  如果非trace_probe_has_single_file(tp)则转到:out
416  trace_probe_clear_flag(tp, Flags for trace_probe )
417  否则trace_probe_clear_flag(tp, TP_FLAG_PROFILE)
420  如果非trace_probe_is_enabled(tp)则__disable_trace_kprobe(tp)
423  out :
424  如果filetrace_probe_remove_file(tp, file)
433  返回:0
调用者
名称描述
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.