perf thread_map: Add method to map all threads in the system
authorArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 1 Dec 2017 14:44:30 +0000 (11:44 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 5 Dec 2017 13:24:32 +0000 (10:24 -0300)
commit8d3cd4c3d3ab5f4f9edd5c593b7743f7fbd3526d
tree9998d115faf80cc0cd0c29e7a6dd3bc31cba7d34
parentb984aff7811bbac75b3f05931643d815067cf45c
perf thread_map: Add method to map all threads in the system

Reusing the thread_map__new_by_uid() proc scanning already in place to
return a map with all threads in the system.

Based-on-a-patch-by: Jin Yao <yao.jin@linux.intel.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Kan Liang <kan.liang@intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://lkml.kernel.org/n/tip-khh28q0wwqbqtrk32bfe07hd@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/thread_map.c
tools/perf/util/thread_map.h