tools lib bpf: Report error when kernel doesn't support program type
authorWang Nan <wangnan0@huawei.com>
Wed, 13 Jul 2016 10:44:02 +0000 (10:44 +0000)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 14 Jul 2016 02:09:02 +0000 (23:09 -0300)
commit705fa2190dfb3d02f83adcd1abdb4e7dc3434597
tree3ebba97ae06aa134af99ceb31ec365025d56a489
parent5f44e4c810bf3ace5a97a84554d4eeccbb563ca5
tools lib bpf: Report error when kernel doesn't support program type

Now libbpf support tracepoint program type. Report meaningful error when kernel
version is less than 4.7.

Signed-off-by: Wang Nan <wangnan0@huawei.com>
Cc: Alexei Starovoitov <ast@kernel.org>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Zefan Li <lizefan@huawei.com>
Cc: pi3orama@163.com
Link: http://lkml.kernel.org/r/1468406646-21642-3-git-send-email-wangnan0@huawei.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/lib/bpf/libbpf.c
tools/lib/bpf/libbpf.h