summaryrefslogtreecommitdiff
path: root/tools/lib
diff options
context:
space:
mode:
authorSean Young <sean@mess.org>2018-05-27 14:24:10 +0300
committerDaniel Borkmann <daniel@iogearbox.net>2018-05-30 13:40:14 +0300
commit6bdd533cee9aadbcd476af30bfff079abe68fcdb (patch)
treea153475f8949a8c9d6340b4f52c37b8912d0622d /tools/lib
parentf4364dcfc86df7c1ca47b256eaf6b6d0cdd0d936 (diff)
downloadlinux-6bdd533cee9aadbcd476af30bfff079abe68fcdb.tar.xz
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/lib')
-rw-r--r--tools/lib/bpf/libbpf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/lib/bpf/libbpf.c b/tools/lib/bpf/libbpf.c
index b1a60ac8424e..a1e96b5de5ff 100644
--- a/tools/lib/bpf/libbpf.c
+++ b/tools/lib/bpf/libbpf.c
@@ -1462,6 +1462,7 @@ static bool bpf_prog_type__needs_kver(enum bpf_prog_type type)
case BPF_PROG_TYPE_CGROUP_DEVICE:
case BPF_PROG_TYPE_SK_MSG:
case BPF_PROG_TYPE_CGROUP_SOCK_ADDR:
+ case BPF_PROG_TYPE_LIRC_MODE2:
return false;
case BPF_PROG_TYPE_UNSPEC:
case BPF_PROG_TYPE_KPROBE: