Function report |
Source Code:kernel\trace\bpf_trace.c |
Create Date:2022-07-28 12:35:57 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:__bpf_perf_event_output
Proto:static __always_inline u64 __bpf_perf_event_output(struct pt_regs *regs, struct bpf_map *map, u64 flags, struct perf_sample_data *sd)
Type:u64
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct pt_regs * | regs | |
| struct bpf_map * | map | |
| u64 | flags | |
| struct perf_sample_data * | sd |
| 540 | cpu = smp_processor_id() |
| 541 | index = flags & BPF_FUNC_perf_event_output, BPF_FUNC_perf_event_read and* BPF_FUNC_perf_event_read_value flags. |
| 545 | If index == BPF_F_CURRENT_CPU Then index = cpu |
| 547 | If Value for the false possibility is greater at compile time(index >= max_entries) Then Return -E2BIG |
| 555 | If Value for the false possibility is greater at compile time(type != PERF_TYPE_SOFTWARE || config != PERF_COUNT_SW_BPF_OUTPUT) Then Return -EINVAL |
| 559 | If Value for the false possibility is greater at compile time(oncpu != cpu) Then Return -EOPNOTSUPP |
| 562 | Return perf_event_output(event, sd, regs) |
| Name | Describe |
|---|---|
| ____bpf_perf_event_output | |
| bpf_event_output |
| 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 |