Skip to content

Commit b416e20

Browse files
Taeungacmel
authored andcommitted
perf python scripting: Append examples to err msg about audit-libs-python
To print syscall names, the audit-libs-python package is required.. If not installed, it prints this error string: # perf script syscall-counts Install the audit-libs-python package to get syscall names. But the package name is different in Ubuntu, mention that in the error message, similar to a error message of util/trace-event-scripting.c: # perf script syscall-counts Install the audit-libs-python package to get syscall names. For example: # apt-get install python-audit (Ubuntu) # yum install audit-libs-python (Fedora) etc. Signed-off-by: Taeung Song <treeze.taeung@gmail.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Link: http://lkml.kernel.org/r/1455018790-13425-1-git-send-email-treeze.taeung@gmail.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent 37b4e20 commit b416e20

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

  • tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace

‎tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,10 @@ def clear_term():
7171
except:
7272
if not audit_package_warned:
7373
audit_package_warned = True
74-
print "Install the audit-libs-python package to get syscall names"
74+
print "Install the audit-libs-python package to get syscall names.\n" \
75+
"For example:\n # apt-get install python-audit (Ubuntu)" \
76+
"\n # yum install audit-libs-python (Fedora)" \
77+
"\n etc.\n"
7578

7679
def syscall_name(id):
7780
try:

0 commit comments

Comments
 (0)