diff options
author | Elliott Hughes <enh@google.com> | 2014-08-14 15:39:20 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2014-08-15 09:40:11 -0400 |
commit | c4d2df495c5bf05661772abf9b88f2696fd810c4 (patch) | |
tree | d6671586889e29b7eccb54dbaacf1f3d48eb6486 | |
parent | 1e2bb043f171084e5f34816a4268304512d35a46 (diff) |
perf tools: Add arm64 triplets
Adds the triplet used for arm64 by Android. Others will want to add
their own later.
Signed-off-by: Elliott Hughes <enh@google.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/20140814193920.A7D2D20572@enh.mtv.corp.google.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rw-r--r-- | tools/perf/arch/common.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/perf/arch/common.c b/tools/perf/arch/common.c index 42faf369211c..49776f190abf 100644 --- a/tools/perf/arch/common.c +++ b/tools/perf/arch/common.c | |||
@@ -12,6 +12,11 @@ const char *const arm_triplets[] = { | |||
12 | NULL | 12 | NULL |
13 | }; | 13 | }; |
14 | 14 | ||
15 | const char *const arm64_triplets[] = { | ||
16 | "aarch64-linux-android-", | ||
17 | NULL | ||
18 | }; | ||
19 | |||
15 | const char *const powerpc_triplets[] = { | 20 | const char *const powerpc_triplets[] = { |
16 | "powerpc-unknown-linux-gnu-", | 21 | "powerpc-unknown-linux-gnu-", |
17 | "powerpc64-unknown-linux-gnu-", | 22 | "powerpc64-unknown-linux-gnu-", |
@@ -105,6 +110,8 @@ static const char *normalize_arch(char *arch) | |||
105 | return "x86"; | 110 | return "x86"; |
106 | if (!strcmp(arch, "sun4u") || !strncmp(arch, "sparc", 5)) | 111 | if (!strcmp(arch, "sun4u") || !strncmp(arch, "sparc", 5)) |
107 | return "sparc"; | 112 | return "sparc"; |
113 | if (!strcmp(arch, "aarch64") || !strcmp(arch, "arm64")) | ||
114 | return "arm64"; | ||
108 | if (!strncmp(arch, "arm", 3) || !strcmp(arch, "sa110")) | 115 | if (!strncmp(arch, "arm", 3) || !strcmp(arch, "sa110")) |
109 | return "arm"; | 116 | return "arm"; |
110 | if (!strncmp(arch, "s390", 4)) | 117 | if (!strncmp(arch, "s390", 4)) |
@@ -159,6 +166,8 @@ static int perf_session_env__lookup_binutils_path(struct perf_session_env *env, | |||
159 | 166 | ||
160 | if (!strcmp(arch, "arm")) | 167 | if (!strcmp(arch, "arm")) |
161 | path_list = arm_triplets; | 168 | path_list = arm_triplets; |
169 | else if (!strcmp(arch, "arm64")) | ||
170 | path_list = arm64_triplets; | ||
162 | else if (!strcmp(arch, "powerpc")) | 171 | else if (!strcmp(arch, "powerpc")) |
163 | path_list = powerpc_triplets; | 172 | path_list = powerpc_triplets; |
164 | else if (!strcmp(arch, "sh")) | 173 | else if (!strcmp(arch, "sh")) |