Libbpf userspace function bpf_object__name
Get the name of the BPF object.
Definition
const char *bpf_object__name(const struct bpf_object *obj);
Returns
A string containing the name of the BPF object.
Usage
The name of the object can be set via options when opening the object. This allows you to get that identifier later on.
Example
Docs could be improved
This part of the docs is incomplete, contributions are very welcome