perf top: Register idle thread
authorNamhyung Kim <namhyung@kernel.org>
Wed, 30 Sep 2015 01:45:26 +0000 (10:45 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 1 Oct 2015 12:54:33 +0000 (09:54 -0300)
commitc53d138d41a7f33cf085762c64b4b61e8d223e1c
treeb7bf1dfc21e2f79bd375e19c226daa9a0dcb6fb8
parent4b37af595742977f1bdd8c0fd0f3e6e55b36e7b7
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>
tools/perf/builtin-top.c
tools/perf/util/session.c
tools/perf/util/session.h