Function report |
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 activity | Download SCCT | Chinese |
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:
| Type | Parameter | Name |
|---|---|---|
| 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 |
| 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 |
| Name | Describe |
|---|---|
| kprobe_register | 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. |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |