Lines Matching refs:arch
18 zfree(&env->arch); in perf_env__exit()
100 if (env->arch) in perf_env__read_arch()
104 env->arch = strdup(uts.machine); in perf_env__read_arch()
106 return env->arch ? 0 : -ENOMEM; in perf_env__read_arch()
119 return env && !perf_env__read_arch(env) ? env->arch : "unknown"; in perf_env__raw_arch()
138 static const char *normalize_arch(char *arch) in normalize_arch() argument
140 if (!strcmp(arch, "x86_64")) in normalize_arch()
142 if (arch[0] == 'i' && arch[2] == '8' && arch[3] == '6') in normalize_arch()
144 if (!strcmp(arch, "sun4u") || !strncmp(arch, "sparc", 5)) in normalize_arch()
146 if (!strcmp(arch, "aarch64") || !strcmp(arch, "arm64")) in normalize_arch()
148 if (!strncmp(arch, "arm", 3) || !strcmp(arch, "sa110")) in normalize_arch()
150 if (!strncmp(arch, "s390", 4)) in normalize_arch()
152 if (!strncmp(arch, "parisc", 6)) in normalize_arch()
154 if (!strncmp(arch, "powerpc", 7) || !strncmp(arch, "ppc", 3)) in normalize_arch()
156 if (!strncmp(arch, "mips", 4)) in normalize_arch()
158 if (!strncmp(arch, "sh", 2) && isdigit(arch[2])) in normalize_arch()
161 return arch; in normalize_arch()
174 arch_name = env->arch; in perf_env__arch()