diff options
author | Arnaldo Carvalho de Melo <[email protected]> | 2018-07-31 11:58:57 -0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2018-07-31 11:58:57 -0300 |
commit | 739e2edc848af30fefa66d6c422c00ca9a701c06 (patch) | |
tree | d49fbe91824a2d4861736069b93db15790664446 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 95f04328e42dc7d1eb08f3cb38150c1f2ec09f57 (diff) |
perf bpf: Show better message when failing to load an object
Before:
libbpf: license of tools/perf/examples/bpf/etcsnoop.c is GPL
libbpf: section(6) version, size 4, link 0, flags 3, type=1
libbpf: kernel version of tools/perf/examples/bpf/etcsnoop.c is 41200
libbpf: section(7) .symtab, size 120, link 1, flags 0, type=2
bpf: config program 'syscalls:sys_enter_openat'
libbpf: load bpf program failed: Operation not permitted
libbpf: failed to load program 'syscalls:sys_enter_openat'
libbpf: failed to load object 'tools/perf/examples/bpf/etcsnoop.c'
bpf: load objects failed
After: (just the last line changes)
bpf: load objects failed: err=-4009: (Incorrect kernel version)
Cc: Adrian Hunter <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Wang Nan <[email protected]>
Link: https://lkml.kernel.org/n/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions