Searched refs:uts (Results 1 – 12 of 12) sorted by relevance
| /tools/power/cpupower/utils/ |
| A 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()
|
| A D | cpupower-set.c | 38 struct utsname uts; in cmd_set() local 53 ret = uname(&uts); in cmd_set() 54 if (!ret && (!strcmp(uts.machine, "ppc64le") || in cmd_set() 55 !strcmp(uts.machine, "ppc64"))) { in cmd_set()
|
| A D | cpupower.c | 180 struct utsname uts; in main() local 217 ret = uname(&uts); in main() 219 if (!ret && !strcmp(uts.machine, "x86_64") && in main()
|
| /tools/testing/selftests/bpf/ |
| A D | unpriv_helpers.c | 18 struct utsname uts; in open_config() local 22 if (uname(&uts)) { in open_config() 27 snprintf(buf, sizeof(buf), "/boot/config-%s", uts.release); in open_config()
|
| /tools/perf/util/ |
| A D | cputopo.c | 225 struct utsname uts; in has_die_topology() local 227 if (uname(&uts) < 0) in has_die_topology() 230 if (strncmp(uts.machine, "x86_64", 6) && in has_die_topology() 231 strncmp(uts.machine, "s390x", 5)) in has_die_topology()
|
| A D | env.c | 416 struct utsname uts; in perf_env__read_arch() local 421 if (!uname(&uts)) in perf_env__read_arch() 422 env->arch = strdup(uts.machine); in perf_env__read_arch() 599 static struct utsname uts = { .machine[0] = '\0', }; in perf_env__arch() local 600 if (uts.machine[0] == '\0' && uname(&uts) < 0) in perf_env__arch() 602 arch_name = uts.machine; in perf_env__arch()
|
| A D | header.c | 346 struct utsname uts; in write_hostname() local 349 ret = uname(&uts); in write_hostname() 353 return do_write_string(ff, uts.nodename); in write_hostname() 359 struct utsname uts; in write_osrelease() local 362 ret = uname(&uts); in write_osrelease() 366 return do_write_string(ff, uts.release); in write_osrelease() 372 struct utsname uts; in write_arch() local 375 ret = uname(&uts); in write_arch() 379 return do_write_string(ff, uts.machine); in write_arch()
|
| A D | symbol.c | 2334 struct utsname uts; in vmlinux_path__init() local 2355 if (uname(&uts) < 0) in vmlinux_path__init() 2358 kernel_version = uts.release; in vmlinux_path__init()
|
| /tools/testing/selftests/powerpc/ |
| A D | utils.c | 480 struct utsname uts; in is_ppc64le() local 484 rc = uname(&uts); in is_ppc64le() 490 return strcmp(uts.machine, "ppc64le") == 0; in is_ppc64le()
|
| /tools/perf/ |
| A D | builtin-top.c | 172 struct utsname uts; in ui__warn_map_erange() local 173 int err = uname(&uts); in ui__warn_map_erange() 190 err ? "[unknown]" : uts.machine, in ui__warn_map_erange() 191 err ? "[unknown]" : uts.release, perf_version_string); in ui__warn_map_erange()
|
| A D | builtin-script.c | 3708 struct utsname uts; in cmd_script() local 4126 uname(&uts); in cmd_script() 4130 if (!strcmp(uts.machine, env->arch)) in cmd_script() 4132 else if (!strcmp(uts.machine, "x86_64") && in cmd_script()
|
| /tools/lib/bpf/ |
| A D | libbpf.c | 2279 struct utsname uts; in bpf_object__read_kconfig_file() local 2283 uname(&uts); in bpf_object__read_kconfig_file() 2284 len = snprintf(buf, PATH_MAX, "/boot/config-%s", uts.release); in bpf_object__read_kconfig_file()
|
Completed in 62 milliseconds