Libbpf userspace function bpf_raw_tracepoint_open
Low level wrapper around the BPF_RAW_TRACEPOINT_OPEN syscall command.
Definition
int bpf_raw_tracepoint_open(const char *name, int prog_fd);
Parameters
name: name of the raw tracepointprog_fd: BPF program file descriptor
Return
>0, file descriptor of the raw tracepoint; negative error code, otherwise
Usage
This function should only be used if you need precise control over the raw tracepoint opening process. In most cases the bpf_program__attach_raw_tracepoint or bpf_program__attach_raw_tracepoint_opts function should be used instead.
Example
Docs could be improved
This part of the docs is incomplete, contributions are very welcome