Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

Proto:static int kprobe_register(struct trace_event_call *event, enum trace_reg type, void *data)

Type:int

Parameter:

TypeParameterName
struct trace_event_call *event
enum trace_regtype
void *data
1493  file = data
1496  Case type == TRACE_REG_REGISTER
1497  Return Enable trace_probe* if the file is NULL, enable "perf" handler, or enable "trace" handler.
1498  Case type == TRACE_REG_UNREGISTER
1499  Return Disable trace_probe* if the file is NULL, disable "perf" handler, or disable "trace" handler.
1513  Return 0