Libbpf userspace function bpf_prog_linfo__lfind
Find a line info record for a given instruction offset.
Definition
const struct bpf_line_info * bpf_prog_linfo__lfind(const struct bpf_prog_linfo *prog_linfo, __u32 insn_off, __u32 nr_skip);
Parameters
prog_linfo
: line info object to search ininsn_off
: instruction offset to search fornr_skip
: number of records to skip before returning the result
Returns
Pointer to the line info record for the given instruction offset, or NULL
if not found.
Usage
Docs could be improved
This part of the docs is incomplete, contributions are very welcome
Example
Docs could be improved
This part of the docs is incomplete, contributions are very welcome