From: Teng Qin Date: Tue, 16 May 2017 08:13:06 +0000 (-0700) Subject: Fix bpf_perf_event_read helper signature X-Git-Tag: submit/tizen_4.0/20171018.110122~113 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2923e204266c8c0114b7d0572c051c655b3cc26a;p=platform%2Fupstream%2Fbcc.git Fix bpf_perf_event_read helper signature --- diff --git a/src/cc/export/helpers.h b/src/cc/export/helpers.h index c6529ef6..2229503b 100644 --- a/src/cc/export/helpers.h +++ b/src/cc/export/helpers.h @@ -192,7 +192,7 @@ static int (*bpf_skb_get_tunnel_key)(void *ctx, void *to, u32 size, u64 flags) = (void *) BPF_FUNC_skb_get_tunnel_key; static int (*bpf_skb_set_tunnel_key)(void *ctx, void *from, u32 size, u64 flags) = (void *) BPF_FUNC_skb_set_tunnel_key; -static int (*bpf_perf_event_read)(void *map, u32 index) = +static u64 (*bpf_perf_event_read)(void *map, u64 flags) = (void *) BPF_FUNC_perf_event_read; static int (*bpf_redirect)(int ifindex, u32 flags) = (void *) BPF_FUNC_redirect;