Fix bpf_perf_event_read helper signature
authorTeng Qin <qinteng@fb.com>
Tue, 16 May 2017 08:13:06 +0000 (01:13 -0700)
committerSasha Goldshtein <goldshtn@gmail.com>
Tue, 16 May 2017 10:49:52 +0000 (13:49 +0300)
src/cc/export/helpers.h

index c6529ef608d42659ddb80d088c8b3d4babfb561c..2229503bb6f70ec19b826066d4a4e3f303f85b41 100644 (file)
@@ -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;