aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/perf/builtin-sched.c
diff options
context:
space:
mode:
authorNamhyung Kim <namhyung@kernel.org>2016-10-24 11:02:44 +0900
committerArnaldo Carvalho de Melo <acme@redhat.com>2016-10-25 15:05:09 -0300
commite107f129e2e0e75ddf1cd7995a9f5ffff2307766 (patch)
treea3a21de2cf475a8d668bcdbadf868184a4420f92 /tools/perf/builtin-sched.c
parentperf sched map: Apply cpu color when there's an activity (diff)
downloadwireguard-linux-e107f129e2e0e75ddf1cd7995a9f5ffff2307766.tar.xz
wireguard-linux-e107f129e2e0e75ddf1cd7995a9f5ffff2307766.zip
perf sched map: Always show task comm with -v
I'd like to see the name of tasks with perf sched map, but it only shows name of new tasks and then use short names after all. This is not good for long running tasks since it's hard for users to track the short names. This patch makes it show the names (except the idle task) when -v option is used. Probably we may make it as default behavior. Signed-off-by: Namhyung Kim <namhyung@kernel.org> Acked-by: Jiri Olsa <jolsa@kernel.org> Cc: David Ahern <dsahern@gmail.com> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Link: http://lkml.kernel.org/r/20161024020246.14928-2-namhyung@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/builtin-sched.c')
-rw-r--r--tools/perf/builtin-sched.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/builtin-sched.c b/tools/perf/builtin-sched.c
index a8ad85914466..1f33d15314a5 100644
--- a/tools/perf/builtin-sched.c
+++ b/tools/perf/builtin-sched.c
@@ -1493,7 +1493,7 @@ static int map_switch_event(struct perf_sched *sched, struct perf_evsel *evsel,
goto out;
color_fprintf(stdout, color, " %12.6f secs ", (double)timestamp / NSEC_PER_SEC);
- if (new_shortname) {
+ if (new_shortname || (verbose && sched_in->tid)) {
const char *pid_color = color;
if (thread__has_color(sched_in))