summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/call-graph-from-postgresql.py
diff options
context:
space:
mode:
authorNamhyung Kim <namhyung@kernel.org>2015-09-30 04:45:25 +0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2015-10-01 15:54:33 +0300
commit4b37af595742977f1bdd8c0fd0f3e6e55b36e7b7 (patch)
treee1b78253e3b4dfa9ce6c301baac105231ae7440e /tools/perf/scripts/python/call-graph-from-postgresql.py
parente5bed564485b340d87f2d8945643a393e55b8225 (diff)
downloadlinux-4b37af595742977f1bdd8c0fd0f3e6e55b36e7b7.tar.xz
perf top: Fix unresolved comm when -s comm is used
The perf top uses 'dso,symbol' sort keys by default so it overlooked a problem in task's comm resolving. When the sort key contains 'comm', some task's comm is not shown properly. This is because the perf_top__mmap_read_idx() checks the cpumode value improperly. The cpumode value of non-sample events are 0 (PERF_RECORD_MISC_CPUMODE_ UNKNOWN) so the events will be ignored by the switch statement. This patch allows it for non-sample events. Signed-off-by: Namhyung Kim <namhyung@kernel.org> Cc: David Ahern <dsahern@gmail.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Link: http://lkml.kernel.org/r/1443577526-3240-2-git-send-email-namhyung@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions