Skip to content

Libbpf userspace function bpf_prog_linfo__lfind

0.0.1

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 in
  • insn_off: instruction offset to search for
  • nr_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