perf thread: Adopt get_main_thread from db-export.c
authorAndi Kleen <ak@linux.intel.com>
Tue, 24 May 2016 00:52:24 +0000 (17:52 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 30 May 2016 15:41:43 +0000 (12:41 -0300)
commit480ca357fd7f86a381a5b35a8157aa176eddbed4
treebd17401551a8cec3f0ebd7a496b298742865492b
parent711460514b1c80494f14001bdf30dd70fd401a8f
perf thread: Adopt get_main_thread from db-export.c

Move the get_main_thread function from db-export.c to thread.c so that
it can be used elsewhere.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Link: http://lkml.kernel.org/r/1464051145-19968-2-git-send-email-andi@firstfloor.org
[ Removed leftover bits from db-export.h ]
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/db-export.c
tools/perf/util/thread.c
tools/perf/util/thread.h