Sean Young
e2bcbd7769
tools headers UAPI: remove stale lirc.h
...
The lirc.h file is an old copy of lirc.h from the kernel sources. It is
out of date, and the bpf lirc tests don't need a new copy anyway. As
long as /usr/include/linux/lirc.h is from kernel v5.2 or newer, the tests
will compile fine.
Signed-off-by: Sean Young <sean@mess.org >
Reviewed-by: Shuah Khan <skhan@linuxfoundation.org >
Link: https://lore.kernel.org/r/20220124153028.394409-1-sean@mess.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org >
2022-01-25 17:56:24 -08:00
Andrii Nakryiko
cbdb1461dc
selftests/bpf: Use explicit bpf_prog_test_load() calls everywhere
...
-Dbpf_prog_load_deprecated=bpf_prog_test_load trick is both ugly and
breaks when deprecation goes into effect due to macro magic. Convert all
the uses to explicit bpf_prog_test_load() calls which avoid deprecation
errors and makes everything less magical.
Signed-off-by: Andrii Nakryiko <andrii@kernel.org >
Signed-off-by: Alexei Starovoitov <ast@kernel.org >
Acked-by: Dave Marchevsky <davemarchevsky@fb.com >
Link: https://lore.kernel.org/bpf/20211103220845.2676888-12-andrii@kernel.org
2021-11-07 08:34:23 -08:00
Sean Young
01d3240a04
media: bpf: add bpf function to report mouse movement
...
Some IR remotes have a directional pad or other pointer-like thing that
can be used as a mouse. Make it possible to decode these types of IR
protocols in BPF.
Cc: netdev@vger.kernel.org
Signed-off-by: Sean Young <sean@mess.org >
Signed-off-by: Alexei Starovoitov <ast@kernel.org >
2018-12-09 14:37:18 -08:00
Sean Young
6bdd533cee
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 >
2018-05-30 12:40:14 +02:00