OSDN Git Service

perf python scripting: Append examples to err msg about audit-libs-python
authorTaeung Song <treeze.taeung@gmail.com>
Tue, 9 Feb 2016 11:53:10 +0000 (20:53 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 12 Feb 2016 14:30:27 +0000 (11:30 -0300)
commitb416e204f88dd91d9e99f6deee3d57fbc90aee40
treeaa2421886039f86d31450490c88b776c1ef42089
parent37b4e2020a5f4dbecf22ee3efe92de6dbea1c5f0
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>
tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py