diff options
Diffstat (limited to 'tools/perf/util/unwind-libunwind.c')
-rw-r--r-- | tools/perf/util/unwind-libunwind.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/util/unwind-libunwind.c b/tools/perf/util/unwind-libunwind.c index 647a1e6b4c7b..b029a5e9ae49 100644 --- a/tools/perf/util/unwind-libunwind.c +++ b/tools/perf/util/unwind-libunwind.c | |||
@@ -3,7 +3,7 @@ | |||
3 | #include "thread.h" | 3 | #include "thread.h" |
4 | #include "session.h" | 4 | #include "session.h" |
5 | #include "debug.h" | 5 | #include "debug.h" |
6 | #include "arch/common.h" | 6 | #include "env.h" |
7 | 7 | ||
8 | struct unwind_libunwind_ops __weak *local_unwind_libunwind_ops; | 8 | struct unwind_libunwind_ops __weak *local_unwind_libunwind_ops; |
9 | struct unwind_libunwind_ops __weak *x86_32_unwind_libunwind_ops; | 9 | struct unwind_libunwind_ops __weak *x86_32_unwind_libunwind_ops; |
@@ -39,7 +39,7 @@ int unwind__prepare_access(struct thread *thread, struct map *map, | |||
39 | if (dso_type == DSO__TYPE_UNKNOWN) | 39 | if (dso_type == DSO__TYPE_UNKNOWN) |
40 | return 0; | 40 | return 0; |
41 | 41 | ||
42 | arch = normalize_arch(thread->mg->machine->env->arch); | 42 | arch = perf_env__arch(thread->mg->machine->env); |
43 | 43 | ||
44 | if (!strcmp(arch, "x86")) { | 44 | if (!strcmp(arch, "x86")) { |
45 | if (dso_type != DSO__TYPE_64BIT) | 45 | if (dso_type != DSO__TYPE_64BIT) |