Libbpf userspace function bpf_prog_linfo__lfind_addr_func
Find a line info record for a given instruction offset and function index.
Definition
const struct bpf_line_info * bpf_prog_linfo__lfind_addr_func(const struct bpf_prog_linfo *prog_linfo, __u64 addr, __u32 func_idx, __u32 nr_skip);
Parameters
prog_linfo
: line info object to search inaddr
: instruction address to search forfunc_idx
: function index 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 and function index, 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