Lines Matching +full:test +full:- +full:cpu
2 # SPDX-License-Identifier: GPL-2.0+
7 # Usage: kvm-get-cpus-script.sh /path/to/cpu/arrays /path/to/put/script [ /path/to/state ]
9 # The CPU arrays are output by kvm-assign-cpus.sh, and are valid awk
13 # non-empty), and can also be output by this script.
15 cpuarrays="${1-/sys/devices/system/node}"
19 if ! test -f "$cpuarrays"
25 if ! test -d "$scriptdir" || ! test -x "$scriptdir" || ! test -w "$scriptdir"
35 if test -r "$statefile"
42 # Do we have the system architecture to guide CPU affinity?
48 # Return a comma-separated list of the next n CPUs.
54 if (cpu[curnode][curcpu[curnode]] == "")
58 s = s cpu[curnode][curcpu[curnode]];
65 # Dump out the current node/CPU state so that a later invocation of this
85 print "# No CPU state to dump." > fn;