Libbpf userspace function btf__find_str
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 astruct btf
objects
: 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