From: Adam Barth Date: Wed, 10 Aug 2016 16:45:39 +0000 (-0700) Subject: samples/bpf: fix bpf_perf_event_output prototype X-Git-Tag: MMI-PSA29.97-13-9~6950^2~124 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=05b8ad25bc8b045721a93d04cf8dcf6f74b3cd6a;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 Signed-off-by: Alexei Starovoitov Acked-by: Daniel Borkmann Signed-off-by: David S. Miller --- diff --git a/samples/bpf/bpf_helpers.h b/samples/bpf/bpf_helpers.h index 217c8d507f2e..cbc52df165b4 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;