perf tools: Find the proc info under machine->root_dir.
authorDongsheng Yang <yangds.fnst@cn.fujitsu.com>
Fri, 20 Dec 2013 20:52:57 +0000 (15:52 -0500)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 23 Dec 2013 19:49:49 +0000 (16:49 -0300)
commit995634650ef1f907196bd7e9ae45354124a80e47
treeb7f00fda7bb4155f3f2c5177cac13017d2d5143b
parentfb50bb43d051d12aad9e2337d0d5d14d0d3dd281
perf tools: Find the proc info under machine->root_dir.

When we synthesize the threads, we are looking for the infomation under
/proc. But it is only for host.

This patch look for the path of proc under machine->root_dir, then
XXX__synthesize_threads() functions can support guest machines.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung.kim@lge.com>
Link: http://lkml.kernel.org/r/927b937da9177a079abafe4532fa9c9b60b5c4b7.1387572416.git.yangds.fnst@cn.fujitsu.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/event.c