aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/test_lirc_mode2.sh
diff options
context:
space:
mode:
authorSean Young <sean@mess.org>2018-12-06 13:01:03 +0000
committerAlexei Starovoitov <ast@kernel.org>2018-12-09 14:37:18 -0800
commit01d3240a04f4c09392e13c77b54d4423ebce2d72 (patch)
tree429aa466773d2210b59d0b5eaa68c418b211aafd /tools/testing/selftests/bpf/test_lirc_mode2.sh
parentMerge branch 'bpf_line_info' (diff)
downloadlinux-dev-01d3240a04f4c09392e13c77b54d4423ebce2d72.tar.xz
linux-dev-01d3240a04f4c09392e13c77b54d4423ebce2d72.zip
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>
Diffstat (limited to 'tools/testing/selftests/bpf/test_lirc_mode2.sh')
-rwxr-xr-xtools/testing/selftests/bpf/test_lirc_mode2.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/testing/selftests/bpf/test_lirc_mode2.sh b/tools/testing/selftests/bpf/test_lirc_mode2.sh
index 677686198df3..ec4e15948e40 100755
--- a/tools/testing/selftests/bpf/test_lirc_mode2.sh
+++ b/tools/testing/selftests/bpf/test_lirc_mode2.sh
@@ -21,13 +21,14 @@ do
if grep -q DRV_NAME=rc-loopback $i/uevent
then
LIRCDEV=$(grep DEVNAME= $i/lirc*/uevent | sed sQDEVNAME=Q/dev/Q)
+ INPUTDEV=$(grep DEVNAME= $i/input*/event*/uevent | sed sQDEVNAME=Q/dev/Q)
fi
done
if [ -n $LIRCDEV ];
then
TYPE=lirc_mode2
- ./test_lirc_mode2_user $LIRCDEV
+ ./test_lirc_mode2_user $LIRCDEV $INPUTDEV
ret=$?
if [ $ret -ne 0 ]; then
echo -e ${RED}"FAIL: $TYPE"${NC}