mac80211: update to version 5.9.1
[openwrt/staging/nbd.git] / package / network / utils / xdp-tools / patches / 022-xdp-dump-add-missing-perf_event-include-for-bpf-and-.patch
1 From 0388d7447de027e0d2369d6b8a9c58ea0f8f027c Mon Sep 17 00:00:00 2001
2 From: Christian Marangi <ansuelsmth@gmail.com>
3 Date: Wed, 18 Jan 2023 20:37:12 +0100
4 Subject: [PATCH] xdp-dump: add missing perf_event include for bpf and xdp
5
6 Add missing perf_event include needed for struct perf_event_header for
7 bpf and xdp.
8
9 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
10 ---
11 xdp-dump/xdpdump_bpf.c | 1 +
12 xdp-dump/xdpdump_xdp.c | 1 +
13 2 files changed, 2 insertions(+)
14
15 --- a/xdp-dump/xdpdump_bpf.c
16 +++ b/xdp-dump/xdpdump_bpf.c
17 @@ -4,6 +4,7 @@
18 * Include files
19 *****************************************************************************/
20 #include <stdbool.h>
21 +#include <linux/perf_event.h>
22 #include <linux/bpf.h>
23 #include <bpf/bpf_helpers.h>
24 #include <bpf/bpf_trace_helpers.h>
25 --- a/xdp-dump/xdpdump_xdp.c
26 +++ b/xdp-dump/xdpdump_xdp.c
27 @@ -4,6 +4,7 @@
28 * Include files
29 *****************************************************************************/
30 #include <stdbool.h>
31 +#include <linux/perf_event.h>
32 #include <linux/bpf.h>
33 #include <bpf/bpf_helpers.h>
34 #include <bpf/bpf_trace_helpers.h>