tools, bpftool: Poison and replace kernel integer typedefs
authorQuentin Monnet <quentin@isovalent.com>
Mon, 11 May 2020 16:15:33 +0000 (17:15 +0100)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 11 May 2020 19:20:46 +0000 (21:20 +0200)
commit6e7e034e88e8e22cb14765c86da92416017e45b8
treea51838934255b07523f0eaf6517713ff7c92a99f
parent385bbf7b119a4feb6d6bcf3586f1bb1dd9c5b0a0
tools, bpftool: Poison and replace kernel integer typedefs

Replace the use of kernel-only integer typedefs (u8, u32, etc.) by their
user space counterpart (__u8, __u32, etc.).

Similarly to what libbpf does, poison the typedefs to avoid introducing
them again in the future.

Signed-off-by: Quentin Monnet <quentin@isovalent.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20200511161536.29853-2-quentin@isovalent.com
tools/bpf/bpftool/btf_dumper.c
tools/bpf/bpftool/cfg.c
tools/bpf/bpftool/main.h
tools/bpf/bpftool/map_perf_ring.c
tools/bpf/bpftool/prog.c