Some checks failed
Build Kernel / Build all affected Kernels (push) Has been cancelled
Build all core packages / Build all core packages for selected target (push) Has been cancelled
Build and Push prebuilt tools container / Build and Push all prebuilt containers (push) Has been cancelled
Build Toolchains / Build Toolchains for each target (push) Has been cancelled
Build host tools / Build host tools for linux and macos based systems (push) Has been cancelled
Coverity scan build / Coverity x86/64 build (push) Has been cancelled
35 lines
1.1 KiB
Diff
35 lines
1.1 KiB
Diff
From 0388d7447de027e0d2369d6b8a9c58ea0f8f027c Mon Sep 17 00:00:00 2001
|
|
From: Christian Marangi <ansuelsmth@gmail.com>
|
|
Date: Wed, 18 Jan 2023 20:37:12 +0100
|
|
Subject: [PATCH] xdp-dump: add missing perf_event include for bpf and xdp
|
|
|
|
Add missing perf_event include needed for struct perf_event_header for
|
|
bpf and xdp.
|
|
|
|
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
|
|
---
|
|
xdp-dump/xdpdump_bpf.c | 1 +
|
|
xdp-dump/xdpdump_xdp.c | 1 +
|
|
2 files changed, 2 insertions(+)
|
|
|
|
--- a/xdp-dump/xdpdump_bpf.c
|
|
+++ b/xdp-dump/xdpdump_bpf.c
|
|
@@ -4,6 +4,7 @@
|
|
* Include files
|
|
*****************************************************************************/
|
|
#include <stdbool.h>
|
|
+#include <linux/perf_event.h>
|
|
#include <linux/bpf.h>
|
|
#include <bpf/bpf_helpers.h>
|
|
#include <bpf/bpf_trace_helpers.h>
|
|
--- a/xdp-dump/xdpdump_xdp.c
|
|
+++ b/xdp-dump/xdpdump_xdp.c
|
|
@@ -4,6 +4,7 @@
|
|
* Include files
|
|
*****************************************************************************/
|
|
#include <stdbool.h>
|
|
+#include <linux/perf_event.h>
|
|
#include <linux/bpf.h>
|
|
#include <bpf/bpf_helpers.h>
|
|
#include <bpf/bpf_trace_helpers.h>
|