diff options
| author | Sean Young <[email protected]> | 2018-05-27 11:24:10 +0000 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2018-05-30 10:40:14 +0000 |
| commit | 6bdd533cee9aadbcd476af30bfff079abe68fcdb (patch) | |
| tree | a153475f8949a8c9d6340b4f52c37b8912d0622d /tools/testing/selftests/bpf/bpf_helpers.h | |
| parent | media: rc: introduce BPF_PROG_LIRC_MODE2 (diff) | |
| download | kernel-6bdd533cee9aadbcd476af30bfff079abe68fcdb.tar.gz kernel-6bdd533cee9aadbcd476af30bfff079abe68fcdb.zip | |
bpf: add selftest for lirc_mode2 type program
This is simple test over rc-loopback.
Acked-by: Yonghong Song <[email protected]>
Signed-off-by: Sean Young <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/bpf_helpers.h')
| -rw-r--r-- | tools/testing/selftests/bpf/bpf_helpers.h | 5 |
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, static int (*bpf_lwt_seg6_adjust_srh)(void *ctx, unsigned int offset, unsigned int len) = (void *) BPF_FUNC_lwt_seg6_adjust_srh; +static int (*bpf_rc_repeat)(void *ctx) = + (void *) BPF_FUNC_rc_repeat; +static int (*bpf_rc_keydown)(void *ctx, unsigned int protocol, + unsigned long long scancode, unsigned int toggle) = + (void *) BPF_FUNC_rc_keydown; /* llvm builtin functions that eBPF C program may use to * emit BPF_LD_ABS and BPF_LD_IND instructions |
