aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/bpf_helpers.h
diff options
context:
space:
mode:
authorSean Young <sean@mess.org>2018-05-27 07:24:10 -0400
committerDaniel Borkmann <daniel@iogearbox.net>2018-05-30 06:40:14 -0400
commit6bdd533cee9aadbcd476af30bfff079abe68fcdb (patch)
treea153475f8949a8c9d6340b4f52c37b8912d0622d /tools/testing/selftests/bpf/bpf_helpers.h
parentf4364dcfc86df7c1ca47b256eaf6b6d0cdd0d936 (diff)
bpf: add selftest for lirc_mode2 type program
This is simple test over rc-loopback. Acked-by: Yonghong Song <yhs@fb.com> Signed-off-by: Sean Young <sean@mess.org> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'tools/testing/selftests/bpf/bpf_helpers.h')
-rw-r--r--tools/testing/selftests/bpf/bpf_helpers.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/testing/selftests/bpf/bpf_helpers.h b/tools/testing/selftests/bpf/bpf_helpers.h
index 334d3e8c5e89..a66a9d91acf4 100644
--- a/tools/testing/selftests/bpf/bpf_helpers.h
+++ b/tools/testing/selftests/bpf/bpf_helpers.h
@@ -126,6 +126,11 @@ static int (*bpf_lwt_seg6_action)(void *ctx, unsigned int action, void *param,
126static int (*bpf_lwt_seg6_adjust_srh)(void *ctx, unsigned int offset, 126static int (*bpf_lwt_seg6_adjust_srh)(void *ctx, unsigned int offset,
127 unsigned int len) = 127 unsigned int len) =
128 (void *) BPF_FUNC_lwt_seg6_adjust_srh; 128 (void *) BPF_FUNC_lwt_seg6_adjust_srh;
129static int (*bpf_rc_repeat)(void *ctx) =
130 (void *) BPF_FUNC_rc_repeat;
131static int (*bpf_rc_keydown)(void *ctx, unsigned int protocol,
132 unsigned long long scancode, unsigned int toggle) =
133 (void *) BPF_FUNC_rc_keydown;
129 134
130/* llvm builtin functions that eBPF C program may use to 135/* llvm builtin functions that eBPF C program may use to
131 * emit BPF_LD_ABS and BPF_LD_IND instructions 136 * emit BPF_LD_ABS and BPF_LD_IND instructions