diff options
| author | 2020-04-28 17:16:11 -0700 | |
|---|---|---|
| committer | 2020-04-28 17:27:08 -0700 | |
| commit | 50325b1761e31ad17d252e795af72a9af8c5a7d7 (patch) | |
| tree | 8906e3ed16ed15ff936df0460050ce4459645ecd /tools/bpf/bpftool/common.c | |
| parent | selftests/bpf: Test bpf_link's get_next_id, get_fd_by_id, and get_obj_info (diff) | |
| download | wireguard-linux-50325b1761e31ad17d252e795af72a9af8c5a7d7.tar.xz wireguard-linux-50325b1761e31ad17d252e795af72a9af8c5a7d7.zip | |
bpftool: Expose attach_type-to-string array to non-cgroup code
Move attach_type_strings into main.h for access in non-cgroup code.
bpf_attach_type is used for non-cgroup attach types quite widely now. So also
complete missing string translations for non-cgroup attach types.
Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Reviewed-by: Quentin Monnet <quentin@isovalent.com>
Link: https://lore.kernel.org/bpf/20200429001614.1544-8-andriin@fb.com
Diffstat (limited to 'tools/bpf/bpftool/common.c')
0 files changed, 0 insertions, 0 deletions
