diff options
Diffstat (limited to 'samples/bpf/bpf_helpers.h')
-rw-r--r-- | samples/bpf/bpf_helpers.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/samples/bpf/bpf_helpers.h b/samples/bpf/bpf_helpers.h index 6f1672a7254e..bbdf62a1e45e 100644 --- a/samples/bpf/bpf_helpers.h +++ b/samples/bpf/bpf_helpers.h | |||
@@ -47,6 +47,14 @@ static int (*bpf_probe_write_user)(void *dst, void *src, int size) = | |||
47 | (void *) BPF_FUNC_probe_write_user; | 47 | (void *) BPF_FUNC_probe_write_user; |
48 | static int (*bpf_current_task_under_cgroup)(void *map, int index) = | 48 | static int (*bpf_current_task_under_cgroup)(void *map, int index) = |
49 | (void *) BPF_FUNC_current_task_under_cgroup; | 49 | (void *) BPF_FUNC_current_task_under_cgroup; |
50 | static int (*bpf_skb_get_tunnel_key)(void *ctx, void *key, int size, int flags) = | ||
51 | (void *) BPF_FUNC_skb_get_tunnel_key; | ||
52 | static int (*bpf_skb_set_tunnel_key)(void *ctx, void *key, int size, int flags) = | ||
53 | (void *) BPF_FUNC_skb_set_tunnel_key; | ||
54 | static int (*bpf_skb_get_tunnel_opt)(void *ctx, void *md, int size) = | ||
55 | (void *) BPF_FUNC_skb_get_tunnel_opt; | ||
56 | static int (*bpf_skb_set_tunnel_opt)(void *ctx, void *md, int size) = | ||
57 | (void *) BPF_FUNC_skb_set_tunnel_opt; | ||
50 | 58 | ||
51 | /* llvm builtin functions that eBPF C program may use to | 59 | /* llvm builtin functions that eBPF C program may use to |
52 | * emit BPF_LD_ABS and BPF_LD_IND instructions | 60 | * emit BPF_LD_ABS and BPF_LD_IND instructions |