Function report |
Source Code:kernel\trace\bpf_trace.c |
Create Date:2022-07-28 12:37:38 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:perf_event_attach_bpf_prog
Proto:int perf_event_attach_bpf_prog(struct perf_event *event, struct bpf_prog *prog)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct perf_event * | event | |
struct bpf_prog * | prog |
1330 | If Do we override a kprobe? && ( Not trace_kprobe_on_func_entry(tp_event) || Not trace_kprobe_error_injectable(tp_event) ) Then Return -EINVAL |
1335 | mutex_lock( & bpf_event_mutex) |
1341 | If old_array && bpf_prog_array_length(old_array) >= BPF_TRACE_MAX_PROGS Then |
1354 | bpf_prog_array_free(old_array) |
1356 | unlock : |
1358 | Return ret |
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 |