Lines Matching refs:arch

107 static const char *normalize_arch(char *arch)  in normalize_arch()  argument
109 if (!strcmp(arch, "x86_64")) in normalize_arch()
111 if (arch[0] == 'i' && arch[2] == '8' && arch[3] == '6') in normalize_arch()
113 if (!strcmp(arch, "sun4u") || !strncmp(arch, "sparc", 5)) in normalize_arch()
116 if (!strcmp(arch, "aarch64") || !strcmp(arch, "arm64")) in normalize_arch()
119 if (!strncmp(arch, "arm", 3) || !strcmp(arch, "sa110")) in normalize_arch()
121 if (!strncmp(arch, "s390", 4)) in normalize_arch()
123 if (!strncmp(arch, "parisc", 6)) in normalize_arch()
125 if (!strncmp(arch, "powerpc", 7) || !strncmp(arch, "ppc", 3)) in normalize_arch()
127 if (!strncmp(arch, "mips", 4)) in normalize_arch()
129 if (!strncmp(arch, "sh", 2) && isdigit(arch[2])) in normalize_arch()
132 return arch; in normalize_arch()
140 const char *arch, *cross_env; in perf_session_env__lookup_binutils_path() local
145 arch = normalize_arch(env->arch); in perf_session_env__lookup_binutils_path()
154 if (!strcmp(normalize_arch(uts.machine), arch)) in perf_session_env__lookup_binutils_path()
172 if (!strcmp(arch, "arm")) in perf_session_env__lookup_binutils_path()
175 else if (!strcmp(arch, "arm64")) in perf_session_env__lookup_binutils_path()
178 else if (!strcmp(arch, "powerpc")) in perf_session_env__lookup_binutils_path()
180 else if (!strcmp(arch, "sh")) in perf_session_env__lookup_binutils_path()
182 else if (!strcmp(arch, "s390")) in perf_session_env__lookup_binutils_path()
184 else if (!strcmp(arch, "sparc")) in perf_session_env__lookup_binutils_path()
186 else if (!strcmp(arch, "x86")) in perf_session_env__lookup_binutils_path()
188 else if (!strcmp(arch, "mips")) in perf_session_env__lookup_binutils_path()
191 ui__error("binutils for %s not supported.\n", arch); in perf_session_env__lookup_binutils_path()
200 name, arch, name); in perf_session_env__lookup_binutils_path()
222 if (env->arch == NULL) in perf_session_env__lookup_objdump()