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
This commit is contained in:

committed by
Daniel Borkmann

parent
385bbf7b11
commit
6e7e034e88
@@ -39,7 +39,7 @@ struct event_ring_info {
|
||||
|
||||
struct perf_event_sample {
|
||||
struct perf_event_header header;
|
||||
u64 time;
|
||||
__u64 time;
|
||||
__u32 size;
|
||||
unsigned char data[];
|
||||
};
|
||||
|
Reference in New Issue
Block a user