|
@@ -12,6 +12,11 @@ const char *const arm_triplets[] = {
|
|
NULL
|
|
NULL
|
|
};
|
|
};
|
|
|
|
|
|
|
|
+const char *const arm64_triplets[] = {
|
|
|
|
+ "aarch64-linux-android-",
|
|
|
|
+ NULL
|
|
|
|
+};
|
|
|
|
+
|
|
const char *const powerpc_triplets[] = {
|
|
const char *const powerpc_triplets[] = {
|
|
"powerpc-unknown-linux-gnu-",
|
|
"powerpc-unknown-linux-gnu-",
|
|
"powerpc64-unknown-linux-gnu-",
|
|
"powerpc64-unknown-linux-gnu-",
|
|
@@ -105,6 +110,8 @@ static const char *normalize_arch(char *arch)
|
|
return "x86";
|
|
return "x86";
|
|
if (!strcmp(arch, "sun4u") || !strncmp(arch, "sparc", 5))
|
|
if (!strcmp(arch, "sun4u") || !strncmp(arch, "sparc", 5))
|
|
return "sparc";
|
|
return "sparc";
|
|
|
|
+ if (!strcmp(arch, "aarch64") || !strcmp(arch, "arm64"))
|
|
|
|
+ return "arm64";
|
|
if (!strncmp(arch, "arm", 3) || !strcmp(arch, "sa110"))
|
|
if (!strncmp(arch, "arm", 3) || !strcmp(arch, "sa110"))
|
|
return "arm";
|
|
return "arm";
|
|
if (!strncmp(arch, "s390", 4))
|
|
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"))
|
|
if (!strcmp(arch, "arm"))
|
|
path_list = arm_triplets;
|
|
path_list = arm_triplets;
|
|
|
|
+ else if (!strcmp(arch, "arm64"))
|
|
|
|
+ path_list = arm64_triplets;
|
|
else if (!strcmp(arch, "powerpc"))
|
|
else if (!strcmp(arch, "powerpc"))
|
|
path_list = powerpc_triplets;
|
|
path_list = powerpc_triplets;
|
|
else if (!strcmp(arch, "sh"))
|
|
else if (!strcmp(arch, "sh"))
|