linux_dsm_epyc7002/tools/bpf/bpftool
Andrey Ignatov f04bc8a436 libbpf: Consistent prefixes for interfaces in nlattr.h.
libbpf is used more and more outside kernel tree. That means the library
should follow good practices in library design and implementation to
play well with third party code that uses it.

One of such practices is to have a common prefix (or a few) for every
interface, function or data structure, library provides. I helps to
avoid name conflicts with other libraries and keeps API consistent.

Inconsistent names in libbpf already cause problems in real life. E.g.
an application can't use both libbpf and libnl due to conflicting
symbols.

Having common prefix will help to fix current and avoid future problems.

libbpf already uses the following prefixes for its interfaces:
* bpf_ for bpf system call wrappers, program/map/elf-object
  abstractions and a few other things;
* btf_ for BTF related API;
* libbpf_ for everything else.

The patch adds libbpf_ prefix to interfaces in nlattr.h that use none of
mentioned above prefixes and doesn't fit well into the first two
categories.

Since affected part of API is used in bpftool, the patch applies
corresponding change to bpftool as well. Having it in a separate patch
will cause a state of tree where bpftool is broken what may not be a
good idea.

Signed-off-by: Andrey Ignatov <rdna@fb.com>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
2018-10-04 16:04:16 +02:00
..
bash-completion tools/bpf: bpftool: add net support 2018-09-06 22:34:08 -07:00
Documentation tools/bpf: bpftool: improve output format for bpftool net 2018-09-18 17:42:31 +02:00
.gitignore
btf_dumper.c
cfg.c
cfg.h
cgroup.c
common.c
jit_disasm.c
json_writer.c
json_writer.h
main.c tools/bpf: bpftool: add net support 2018-09-06 22:34:08 -07:00
main.h tools/bpf: bpftool: improve output format for bpftool net 2018-09-18 17:42:31 +02:00
Makefile
map_perf_ring.c tools: bpftool: return from do_event_pipe() on bad arguments 2018-08-23 20:17:57 +02:00
map.c bpftool: add support for PERCPU_CGROUP_STORAGE maps 2018-10-01 16:18:33 +02:00
net.c libbpf: Consistent prefixes for interfaces in nlattr.h. 2018-10-04 16:04:16 +02:00
netlink_dumper.c libbpf: Consistent prefixes for interfaces in nlattr.h. 2018-10-04 16:04:16 +02:00
netlink_dumper.h bpftool: Fix bpftool net output 2018-09-27 21:07:44 +02:00
perf.c
prog.c bpf: support flow dissector in libbpf and bpftool 2018-09-14 12:04:33 -07:00
xlated_dumper.c
xlated_dumper.h