12 lines
260 B
Plaintext
12 lines
260 B
Plaintext
# $NetBSD: cpus,v 1.3 2017/06/05 18:44:13 skrll Exp $
|
|
|
|
define cpus
|
|
set $cpu = 0
|
|
printf "\t cpu id curlwp\n"
|
|
while ($cpu < ncpu)
|
|
set $ci = cpu_infos[$cpu]
|
|
printf "%16lx %2d %16lx\n", $ci, $ci->ci_cpuid, $ci->ci_curlwp
|
|
set $cpu++
|
|
end
|
|
end
|