Function report | 
Source Code:kernel\trace\bpf_trace.c | 
Create Date:2022-07-28 12:35:41 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:get_map_perf_counter
Proto:static __always_inline int get_map_perf_counter(struct bpf_map *map, u64 flags, u64 *value, u64 *enabled, u64 *running)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct bpf_map * | map | |
| u64 | flags | |
| u64 * | value | |
| u64 * | enabled | |
| u64 * | running | 
| 467 | cpu = smp_processor_id() | 
| 468 | index = flags & BPF_FUNC_perf_event_output, BPF_FUNC_perf_event_read and* BPF_FUNC_perf_event_read_value flags. | 
| 471 | If Value for the false possibility is greater at compile time(flags & ~(BPF_FUNC_perf_event_output, BPF_FUNC_perf_event_read and* BPF_FUNC_perf_event_read_value flags.)) Then Return -EINVAL | 
| 473 | If index == BPF_F_CURRENT_CPU Then index = cpu | 
| 475 | If Value for the false possibility is greater at compile time(index >= max_entries) Then Return -E2BIG | 
| 482 | Return perf_event_read_local(event, value, enabled, running) | 
| Name | Describe | 
|---|---|
| ____bpf_perf_event_read | |
| ____bpf_perf_event_read_value | 
| 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  |