diff options
| author | Quentin Monnet <[email protected]> | 2020-05-11 16:15:33 +0000 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2020-05-11 19:20:46 +0000 |
| commit | 6e7e034e88e8e22cb14765c86da92416017e45b8 (patch) | |
| tree | a51838934255b07523f0eaf6517713ff7c92a99f /tools/bpf/bpftool/map_perf_ring.c | |
| parent | bpf, libbpf: Replace zero-length array with flexible-array (diff) | |
| download | kernel-6e7e034e88e8e22cb14765c86da92416017e45b8.tar.gz kernel-6e7e034e88e8e22cb14765c86da92416017e45b8.zip | |
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 <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/bpf/bpftool/map_perf_ring.c')
| -rw-r--r-- | tools/bpf/bpftool/map_perf_ring.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/bpf/bpftool/map_perf_ring.c b/tools/bpf/bpftool/map_perf_ring.c index d9b29c17fbb8..825f29f93a57 100644 --- a/tools/bpf/bpftool/map_perf_ring.c +++ b/tools/bpf/bpftool/map_perf_ring.c @@ -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[]; }; |
