Skip to content

Libbpf userspace function btf_dump__new

0.6.0

Create a new BTF dumper object.

Definition

typedef void (*btf_dump_printf_fn_t)(void *ctx, const char *fmt, va_list args);

struct btf_dump *btf_dump__new(const struct btf *btf, btf_dump_printf_fn_t printf_fn, void *ctx, const struct btf_dump_opts *opts);

struct btf_dump_opts

struct btf_dump_opts {
    size_t sz;
};

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