projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad85ace
)
perf tools: Add support for PERF_RECORD_MISC_GUEST_USER in thread__find_addr_map().
author
Dongsheng Yang
<yangds.fnst@cn.fujitsu.com>
Fri, 20 Dec 2013 20:52:56 +0000
(15:52 -0500)
committer
Arnaldo Carvalho de Melo
<acme@redhat.com>
Mon, 23 Dec 2013 19:49:49 +0000
(16:49 -0300)
This patch remove a TODO in thread__find_addr_map() and add support of
PERF_RECORD_MISC_GUEST_USER.
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/3dd652201171a19c910b500984c7c3590e77603b.1387572416.git.yangds.fnst@cn.fujitsu.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/event.c
patch
|
blob
|
history
diff --git
a/tools/perf/util/event.c
b/tools/perf/util/event.c
index fe202279916113ac90e20b0bd55d7620c1fa2989..484e99464a0081c425bd15264675310a0cc1dde0 100644
(file)
--- a/
tools/perf/util/event.c
+++ b/
tools/perf/util/event.c
@@
-659,15
+659,10
@@
void thread__find_addr_map(struct thread *thread,
al->level = 'g';
mg = &machine->kmaps;
load_map = true;
+ } else if (cpumode == PERF_RECORD_MISC_GUEST_USER && perf_guest) {
+ al->level = 'u';
} else {
- /*
- * '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';
- else
- al->level = 'H';
+ al->level = 'H';
al->map = NULL;
if ((cpumode == PERF_RECORD_MISC_GUEST_USER ||