Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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 activityDownload SCCTChinese

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:

TypeParameterName
const struct perf_event *event
u32 *prog_id
u32 *fd_type
const char **buf
u64 *probe_offset
u64 *probe_addr
1542  err = 0
1544  prog = prog
1545  If Not prog Then Return -ENOENT
1549  If Type of BPF program == BPF_PROG_TYPE_PERF_EVENT Then Return -EOPNOTSUPP
1552  prog_id = id
1553  flags = flags
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
Caller
NameDescribe
bpf_task_fd_query