Searched refs:uts (Results 1 – 11 of 11) sorted by relevance
/tools/power/cpupower/utils/ |
D | cpupower-set.c | 35 struct utsname uts; in cmd_set() local 46 ret = uname(&uts); in cmd_set() 47 if (!ret && (!strcmp(uts.machine, "ppc64le") || in cmd_set() 48 !strcmp(uts.machine, "ppc64"))) { in cmd_set()
|
D | cpupower-info.c | 34 struct utsname uts; in cmd_info() local 44 ret = uname(&uts); in cmd_info() 45 if (!ret && (!strcmp(uts.machine, "ppc64le") || in cmd_info() 46 !strcmp(uts.machine, "ppc64"))) { in cmd_info()
|
D | cpupower.c | 179 struct utsname uts; in main() local 216 ret = uname(&uts); in main() 218 if (!ret && !strcmp(uts.machine, "x86_64") && in main()
|
/tools/perf/util/ |
D | env.c | 383 struct utsname uts; in perf_env__read_arch() local 388 if (!uname(&uts)) in perf_env__read_arch() 389 env->arch = strdup(uts.machine); in perf_env__read_arch() 454 static struct utsname uts = { .machine[0] = '\0', }; in perf_env__arch() local 455 if (uts.machine[0] == '\0' && uname(&uts) < 0) in perf_env__arch() 457 arch_name = uts.machine; in perf_env__arch()
|
D | cputopo.c | 159 struct utsname uts; in has_die_topology() local 161 if (uname(&uts) < 0) in has_die_topology() 164 if (strncmp(uts.machine, "x86_64", 6)) in has_die_topology()
|
D | header.c | 336 struct utsname uts; in write_hostname() local 339 ret = uname(&uts); in write_hostname() 343 return do_write_string(ff, uts.nodename); in write_hostname() 349 struct utsname uts; in write_osrelease() local 352 ret = uname(&uts); in write_osrelease() 356 return do_write_string(ff, uts.release); in write_osrelease() 362 struct utsname uts; in write_arch() local 365 ret = uname(&uts); in write_arch() 369 return do_write_string(ff, uts.machine); in write_arch()
|
D | symbol.c | 2367 struct utsname uts; in vmlinux_path__init() local 2388 if (uname(&uts) < 0) in vmlinux_path__init() 2391 kernel_version = uts.release; in vmlinux_path__init()
|
/tools/testing/selftests/powerpc/ |
D | utils.c | 129 struct utsname uts; in is_ppc64le() local 133 rc = uname(&uts); in is_ppc64le() 139 return strcmp(uts.machine, "ppc64le") == 0; in is_ppc64le()
|
/tools/perf/ |
D | builtin-top.c | 170 struct utsname uts; in ui__warn_map_erange() local 171 int err = uname(&uts); in ui__warn_map_erange() 187 err ? "[unknown]" : uts.machine, in ui__warn_map_erange() 188 err ? "[unknown]" : uts.release, perf_version_string); in ui__warn_map_erange()
|
D | builtin-script.c | 3642 struct utsname uts; in cmd_script() local 4044 uname(&uts); in cmd_script() 4048 if (!strcmp(uts.machine, session->header.env.arch)) in cmd_script() 4050 else if (!strcmp(uts.machine, "x86_64") && in cmd_script()
|
/tools/lib/bpf/ |
D | libbpf.c | 1722 struct utsname uts; in bpf_object__read_kconfig_file() local 1726 uname(&uts); in bpf_object__read_kconfig_file() 1727 len = snprintf(buf, PATH_MAX, "/boot/config-%s", uts.release); in bpf_object__read_kconfig_file()
|