aboutsummaryrefslogtreecommitdiffstats
path: root/samples/bpf/bpf_helpers.h
diff options
context:
space:
mode:
Diffstat (limited to 'samples/bpf/bpf_helpers.h')
-rw-r--r--samples/bpf/bpf_helpers.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/samples/bpf/bpf_helpers.h b/samples/bpf/bpf_helpers.h
index 3a44d3a272af..21aa1b44c30c 100644
--- a/samples/bpf/bpf_helpers.h
+++ b/samples/bpf/bpf_helpers.h
@@ -33,6 +33,10 @@ static int (*bpf_get_current_comm)(void *buf, int buf_size) =
33 (void *) BPF_FUNC_get_current_comm; 33 (void *) BPF_FUNC_get_current_comm;
34static int (*bpf_perf_event_read)(void *map, int index) = 34static int (*bpf_perf_event_read)(void *map, int index) =
35 (void *) BPF_FUNC_perf_event_read; 35 (void *) BPF_FUNC_perf_event_read;
36static int (*bpf_clone_redirect)(void *ctx, int ifindex, int flags) =
37 (void *) BPF_FUNC_clone_redirect;
38static int (*bpf_redirect)(int ifindex, int flags) =
39 (void *) BPF_FUNC_redirect;
36 40
37/* llvm builtin functions that eBPF C program may use to 41/* llvm builtin functions that eBPF C program may use to
38 * emit BPF_LD_ABS and BPF_LD_IND instructions 42 * emit BPF_LD_ABS and BPF_LD_IND instructions