Skip to content

Libbpf userspace function btf__find_str

0.2.0

Find an offset in BTF string section that corresponds to a given string s.

Definition

int btf__find_str(struct btf *btf, const char *s);

Parameters

  • btf: pointer to a struct btf object
  • s: string to find

Return

>0 offset into string section, if string is found; -ENOENT, if string is not in the string section; <0, on any other error.

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