diff options
author | Andrii Nakryiko <[email protected]> | 2020-06-20 20:11:59 -0700 |
---|---|---|
committer | Daniel Borkmann <[email protected]> | 2020-06-22 23:23:49 +0200 |
commit | 4e15507fea70c0c312d79610efa46b6853ccf8e0 (patch) | |
tree | 6073dd31bd2a931030b81880f7ddfc437e4e56b5 /tools/perf/scripts/python/event_analyzing_sample.py | |
parent | b0c34bde72a59c05e826bf0a5aeca0d73f38f791 (diff) |
libbpf: Forward-declare bpf_stats_type for systems with outdated UAPI headers
Systems that doesn't yet have the very latest linux/bpf.h header, enum
bpf_stats_type will be undefined, causing compilation warnings. Prevents this
by forward-declaring enum.
Fixes: 0bee106716cf ("libbpf: Add support for command BPF_ENABLE_STATS")
Signed-off-by: Andrii Nakryiko <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Acked-by: Song Liu <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions