projects
/
platform
/
upstream
/
bcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8933104
)
Fix bpf_perf_event_read helper signature
author
Teng Qin
<qinteng@fb.com>
Tue, 16 May 2017 08:13:06 +0000
(
01:13
-0700)
committer
Sasha Goldshtein
<goldshtn@gmail.com>
Tue, 16 May 2017 10:49:52 +0000
(13:49 +0300)
src/cc/export/helpers.h
patch
|
blob
|
history
diff --git
a/src/cc/export/helpers.h
b/src/cc/export/helpers.h
index c6529ef608d42659ddb80d088c8b3d4babfb561c..2229503bb6f70ec19b826066d4a4e3f303f85b41 100644
(file)
--- 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;