libbpfgo icon indicating copy to clipboard operation
libbpfgo copied to clipboard

Use new enum string APIs

Open grantseltzer opened this issue 3 years ago • 1 comments

libbpf 1.0 has 4 new APIs for treating enums as strings:

  • [x] libbpf_bpf_prog_type_str()
  • [x] libbpf_bpf_map_type_str()
  • [x] libbpf_bpf_attach_type_str()
  • [ ] libbpf_bpf_link_type_str() requires #373

These can possibly be used in our maps that map types into strings.

grantseltzer avatar Aug 24 '22 15:08 grantseltzer

Being tackled by https://github.com/aquasecurity/libbpfgo/pull/372.

The libbpf_bpf_link_type_str wasn't managed since LinkType is not 1:1 with libbpf. It needs to be handled in a different task.

geyslan avatar Aug 30 '23 14:08 geyslan