* [PATCH] Add arm64 triples to perf.
@ 2014-08-14 19:39 Elliott Hughes
2014-08-15 13:41 ` Arnaldo Carvalho de Melo
2014-08-18 8:22 ` [tip:perf/core] perf tools: Add arm64 triplets tip-bot for Elliott Hughes
0 siblings, 2 replies; 3+ messages in thread
From: Elliott Hughes @ 2014-08-14 19:39 UTC (permalink / raw)
To: linux-kernel, acme, mingo, paulus, a.p.zijlstra, enh
Adds the triple used for arm64 by Android. Others will want to add
their own later.
Signed-off-by: Elliott Hughes <enh@google.com>
---
tools/perf/arch/common.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/tools/perf/arch/common.c b/tools/perf/arch/common.c
index 42faf36..49776f1 100644
--- a/tools/perf/arch/common.c
+++ b/tools/perf/arch/common.c
@@ -12,6 +12,11 @@ const char *const arm_triplets[] = {
NULL
};
+const char *const arm64_triplets[] = {
+ "aarch64-linux-android-",
+ NULL
+};
+
const char *const powerpc_triplets[] = {
"powerpc-unknown-linux-gnu-",
"powerpc64-unknown-linux-gnu-",
@@ -105,6 +110,8 @@ static const char *normalize_arch(char *arch)
return "x86";
if (!strcmp(arch, "sun4u") || !strncmp(arch, "sparc", 5))
return "sparc";
+ if (!strcmp(arch, "aarch64") || !strcmp(arch, "arm64"))
+ return "arm64";
if (!strncmp(arch, "arm", 3) || !strcmp(arch, "sa110"))
return "arm";
if (!strncmp(arch, "s390", 4))
@@ -159,6 +166,8 @@ static int perf_session_env__lookup_binutils_path(struct perf_session_env *env,
if (!strcmp(arch, "arm"))
path_list = arm_triplets;
+ else if (!strcmp(arch, "arm64"))
+ path_list = arm64_triplets;
else if (!strcmp(arch, "powerpc"))
path_list = powerpc_triplets;
else if (!strcmp(arch, "sh"))
--
2.1.0.rc2.206.gedb03e5
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] Add arm64 triples to perf.
2014-08-14 19:39 [PATCH] Add arm64 triples to perf Elliott Hughes
@ 2014-08-15 13:41 ` Arnaldo Carvalho de Melo
2014-08-18 8:22 ` [tip:perf/core] perf tools: Add arm64 triplets tip-bot for Elliott Hughes
1 sibling, 0 replies; 3+ messages in thread
From: Arnaldo Carvalho de Melo @ 2014-08-15 13:41 UTC (permalink / raw)
To: Elliott Hughes; +Cc: linux-kernel, mingo, paulus, a.p.zijlstra
Em Thu, Aug 14, 2014 at 12:39:20PM -0700, Elliott Hughes escreveu:
>
> Adds the triple used for arm64 by Android. Others will want to add
> their own later.
>
> Signed-off-by: Elliott Hughes <enh@google.com>
Thanks, applied.
- Arnaldo
^ permalink raw reply [flat|nested] 3+ messages in thread
* [tip:perf/core] perf tools: Add arm64 triplets
2014-08-14 19:39 [PATCH] Add arm64 triples to perf Elliott Hughes
2014-08-15 13:41 ` Arnaldo Carvalho de Melo
@ 2014-08-18 8:22 ` tip-bot for Elliott Hughes
1 sibling, 0 replies; 3+ messages in thread
From: tip-bot for Elliott Hughes @ 2014-08-18 8:22 UTC (permalink / raw)
To: linux-tip-commits
Cc: acme, linux-kernel, paulus, mingo, hpa, mingo, enh, a.p.zijlstra,
tglx
Commit-ID: c4d2df495c5bf05661772abf9b88f2696fd810c4
Gitweb: http://git.kernel.org/tip/c4d2df495c5bf05661772abf9b88f2696fd810c4
Author: Elliott Hughes <enh@google.com>
AuthorDate: Thu, 14 Aug 2014 12:39:20 -0700
Committer: Arnaldo Carvalho de Melo <acme@redhat.com>
CommitDate: Fri, 15 Aug 2014 10:40:11 -0300
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>
---
tools/perf/arch/common.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/tools/perf/arch/common.c b/tools/perf/arch/common.c
index 42faf36..49776f1 100644
--- a/tools/perf/arch/common.c
+++ b/tools/perf/arch/common.c
@@ -12,6 +12,11 @@ const char *const arm_triplets[] = {
NULL
};
+const char *const arm64_triplets[] = {
+ "aarch64-linux-android-",
+ NULL
+};
+
const char *const powerpc_triplets[] = {
"powerpc-unknown-linux-gnu-",
"powerpc64-unknown-linux-gnu-",
@@ -105,6 +110,8 @@ static const char *normalize_arch(char *arch)
return "x86";
if (!strcmp(arch, "sun4u") || !strncmp(arch, "sparc", 5))
return "sparc";
+ if (!strcmp(arch, "aarch64") || !strcmp(arch, "arm64"))
+ return "arm64";
if (!strncmp(arch, "arm", 3) || !strcmp(arch, "sa110"))
return "arm";
if (!strncmp(arch, "s390", 4))
@@ -159,6 +166,8 @@ static int perf_session_env__lookup_binutils_path(struct perf_session_env *env,
if (!strcmp(arch, "arm"))
path_list = arm_triplets;
+ else if (!strcmp(arch, "arm64"))
+ path_list = arm64_triplets;
else if (!strcmp(arch, "powerpc"))
path_list = powerpc_triplets;
else if (!strcmp(arch, "sh"))
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-08-18 8:22 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-14 19:39 [PATCH] Add arm64 triples to perf Elliott Hughes
2014-08-15 13:41 ` Arnaldo Carvalho de Melo
2014-08-18 8:22 ` [tip:perf/core] perf tools: Add arm64 triplets tip-bot for Elliott Hughes
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.