summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Barth <arb@fb.com>2016-08-10 09:45:39 -0700
committerBruno Martins <bgcngm@gmail.com>2022-10-28 15:39:24 +0100
commit94a70ef24da9a0a0230c7eaac0f568c5bec4d892 (patch)
tree2244a96c03c2c724745548c8dcd48b1841070903
parentc1920272278e3cf70806a3dafb85ddebb6763987 (diff)
samples/bpf: fix bpf_perf_event_output prototype
The commit 555c8a8623a3 ("bpf: avoid stack copy and use skb ctx for event output") started using 20 of initially reserved upper 32-bits of 'flags' argument in bpf_perf_event_output(). Adjust corresponding prototype in samples/bpf/bpf_helpers.h Signed-off-by: Adam Barth <arb@fb.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Acked-by: Daniel Borkmann <daniel@iogearbox.net> Signed-off-by: David S. Miller <davem@davemloft.net> Change-Id: Id88405dfd9b4e539aa7b3724c8b5aa1bfafb534f
-rw-r--r--samples/bpf/bpf_helpers.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/samples/bpf/bpf_helpers.h b/samples/bpf/bpf_helpers.h
index 2e69bf6da207..80cfd227c984 100644
--- a/samples/bpf/bpf_helpers.h
+++ b/samples/bpf/bpf_helpers.h
@@ -37,7 +37,9 @@ static int (*bpf_clone_redirect)(void *ctx, int ifindex, int flags) =
(void *) BPF_FUNC_clone_redirect;
static int (*bpf_redirect)(int ifindex, int flags) =
(void *) BPF_FUNC_redirect;
-static int (*bpf_perf_event_output)(void *ctx, void *map, int index, void *data, int size) =
+static int (*bpf_perf_event_output)(void *ctx, void *map,
+ unsigned long long flags, void *data,
+ int size) =
(void *) BPF_FUNC_perf_event_output;
static int (*bpf_get_stackid)(void *ctx, void *map, int flags) =
(void *) BPF_FUNC_get_stackid;