diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-07-01 05:17:20 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-07-01 05:17:40 -0400 |
commit | 88a69dfbc6ab1e3b51bba8c9103055e21089ebb9 (patch) | |
tree | de22b09f587fa1a1fa82e87127501add953b621d | |
parent | 61c45981ddbd718136d49464f00d2f11938aaa6e (diff) |
perf report: Fix HV bit mismerge
Fix:
builtin-report.c: In function ‘hist_entry__add’:
builtin-report.c:1015: error: case label not within a switch statement
builtin-report.c:1017: error: break statement not within loop or switch
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r-- | tools/perf/builtin-report.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/perf/builtin-report.c b/tools/perf/builtin-report.c index 197793051fa5..7d2b49adcdc5 100644 --- a/tools/perf/builtin-report.c +++ b/tools/perf/builtin-report.c | |||
@@ -964,6 +964,9 @@ resolve_callchain(struct thread *thread, struct map *map, | |||
964 | } | 964 | } |
965 | 965 | ||
966 | switch (context) { | 966 | switch (context) { |
967 | case PERF_CONTEXT_HV: | ||
968 | dso = hypervisor_dso; | ||
969 | break; | ||
967 | case PERF_CONTEXT_KERNEL: | 970 | case PERF_CONTEXT_KERNEL: |
968 | dso = kernel_dso; | 971 | dso = kernel_dso; |
969 | break; | 972 | break; |
@@ -1012,9 +1015,6 @@ hist_entry__add(struct thread *thread, struct map *map, struct dso *dso, | |||
1012 | }; | 1015 | }; |
1013 | int cmp; | 1016 | int cmp; |
1014 | 1017 | ||
1015 | case PERF_CONTEXT_HV: | ||
1016 | dso = hypervisor_dso; | ||
1017 | break; | ||
1018 | if ((sort__has_parent || callchain) && chain) | 1018 | if ((sort__has_parent || callchain) && chain) |
1019 | syms = resolve_callchain(thread, map, chain, &entry); | 1019 | syms = resolve_callchain(thread, map, chain, &entry); |
1020 | 1020 | ||