函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:alled 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.

函数原型:static int kprobe_register(struct trace_event_call *event, enum trace_reg type, void *data)

返回类型:int

参数:

类型参数名称
struct trace_event_call *event
enum trace_regtype
void *data
1493  file等于data
1496  :type恒等于TRACE_REG_REGISTER
1497  返回:Enable trace_probe* if the file is NULL, enable "perf" handler, or enable "trace" handler.
1498  :type恒等于TRACE_REG_UNREGISTER
1499  返回:Disable trace_probe* if the file is NULL, disable "perf" handler, or disable "trace" handler.
1513  返回:0