aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/session.h
diff options
context:
space:
mode:
authorNamhyung Kim <namhyung@kernel.org>2015-09-30 10:45:26 +0900
committerArnaldo Carvalho de Melo <acme@redhat.com>2015-10-01 09:54:33 -0300
commitc53d138d41a7f33cf085762c64b4b61e8d223e1c (patch)
treeb7bf1dfc21e2f79bd375e19c226daa9a0dcb6fb8 /tools/perf/util/session.h
parentperf top: Fix unresolved comm when -s comm is used (diff)
downloadlinux-dev-c53d138d41a7f33cf085762c64b4b61e8d223e1c.tar.xz
linux-dev-c53d138d41a7f33cf085762c64b4b61e8d223e1c.zip
perf top: Register idle thread
The perf top didn't add the idle/swapper thread to the machine's thread list and its comm was displayed as ':0'. Fix it. 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-3-git-send-email-namhyung@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/session.h')
-rw-r--r--tools/perf/util/session.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/util/session.h b/tools/perf/util/session.h
index b44afc75d1cc..3e900c0efc73 100644
--- a/tools/perf/util/session.h
+++ b/tools/perf/util/session.h
@@ -89,6 +89,8 @@ struct machine *perf_session__findnew_machine(struct perf_session *session, pid_
}
struct thread *perf_session__findnew(struct perf_session *session, pid_t pid);
+struct thread *perf_session__register_idle_thread(struct perf_session *session);
+
size_t perf_session__fprintf(struct perf_session *session, FILE *fp);
size_t perf_session__fprintf_dsos(struct perf_session *session, FILE *fp);