Commit fb50bb43 authored by Dongsheng Yang's avatar Dongsheng Yang Committed by Arnaldo Carvalho de Melo

perf tools: Add support for PERF_RECORD_MISC_GUEST_USER in thread__find_addr_map().

This patch remove a TODO in thread__find_addr_map() and add support of
PERF_RECORD_MISC_GUEST_USER.
Signed-off-by: default avatarDongsheng 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/3dd652201171a19c910b500984c7c3590e77603b.1387572416.git.yangds.fnst@cn.fujitsu.comSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent ad85ace0
...@@ -659,14 +659,9 @@ void thread__find_addr_map(struct thread *thread, ...@@ -659,14 +659,9 @@ void thread__find_addr_map(struct thread *thread,
al->level = 'g'; al->level = 'g';
mg = &machine->kmaps; mg = &machine->kmaps;
load_map = true; load_map = true;
} else { } else if (cpumode == PERF_RECORD_MISC_GUEST_USER && perf_guest) {
/*
* 'u' means guest os user space.
* TODO: We don't support guest user space. Might support late.
*/
if (cpumode == PERF_RECORD_MISC_GUEST_USER && perf_guest)
al->level = 'u'; al->level = 'u';
else } else {
al->level = 'H'; al->level = 'H';
al->map = NULL; al->map = NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment