bpf tools: Add new API bpf_object__get_kversion()
authorWang Nan <wangnan0@huawei.com>
Fri, 6 Nov 2015 13:49:38 +0000 (13:49 +0000)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 6 Nov 2015 18:56:41 +0000 (15:56 -0300)
commit45825d8ab8ef6287f5d05aea141419d8d4278852
tree86d651dd9ee3f1f4b911193c6ccd536a649b82dd
parent6371ca3b541c82d8aa6a9002bd52d92bcdda5944
bpf tools: Add new API bpf_object__get_kversion()

bpf_object__get_kversion() can be used to fetch value of object's
'version' section. Following patch will use it for error reporting.

Signed-off-by: Wang Nan <wangnan0@huawei.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Zefan Li <lizefan@huawei.com>
Cc: pi3orama@163.com
Link: http://lkml.kernel.org/r/1446817783-86722-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