diff options
author | Arnaldo Carvalho de Melo <[email protected]> | 2014-05-26 16:02:29 -0300 |
---|---|---|
committer | Jiri Olsa <[email protected]> | 2014-06-03 21:34:00 +0200 |
commit | 1b5726220fe16ac38eb2db43e7bc82e69f449fca (patch) | |
tree | 10b0f7b5385bb2fc7017f94451ab9a672f4d744a /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 9b261365dd73a5014b49033327ad881708e81f33 (diff) |
perf trace: Warn the user when not available
When the audit-libs devel package is not found at build time we disable
the 'trace' command, as we are not able to map syscall numbers to
strings, but then the message the user is presented is cryptic:
[root@zoo linux]# trace ls
perf: 'ls' is not a perf-command. See 'perf --help'.
Fix it by presenting a more helpful message:
[root@zoo linux]# trace l
trace command not available: missing audit-libs devel package at build time.
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Cc: Adrian Hunter <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Don Zickus <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Mike Galbraith <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Stephane Eranian <[email protected]>
Link: http://lkml.kernel.org/n/[email protected]
Signed-off-by: Jiri Olsa <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions