Skip to content

Libbpf userspace function btf__add_str

0.2.0

Add a string s to the BTF string section.

Definition

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

Parameters

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

Return

> 0 offset into string section, on success; < 0, on 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