Function report |
Source Code:kernel\trace\bpf_trace.c |
Create Date:2022-07-28 12:38:16 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:bpf_get_perf_event_info
Proto:int bpf_get_perf_event_info(const struct perf_event *event, u32 *prog_id, u32 *fd_type, const char **buf, u64 *probe_offset, u64 *probe_addr)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
const struct perf_event * | event | |
u32 * | prog_id | |
u32 * | fd_type | |
const char ** | buf | |
u64 * | probe_offset | |
u64 * | probe_addr |
1542 | err = 0 |
1549 | If Type of BPF program == BPF_PROG_TYPE_PERF_EVENT Then Return -EOPNOTSUPP |
1554 | is_tracepoint = flags & TRACE_EVENT_FL_TRACEPOINT |
1555 | is_syscall_tp = flock system call |
1557 | If is_tracepoint || is_syscall_tp Then |
1558 | buf = If is_tracepoint Then name Else name |
1560 | fd_type = BPF_FD_TYPE_TRACEPOINT |
1561 | probe_offset = 0x0 |
1562 | probe_addr = 0x0 |
1563 | Else |
1565 | err = -EOPNOTSUPP |
1580 | Return err |
Name | Describe |
---|---|
bpf_task_fd_query |
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 |