3 * cputypes.d - list CPU type info.
4 * Written using DTrace (Solaris 10 3/05).
6 * $Id: cputypes.d 3 2007-08-01 10:50:08Z brendan $
13 * PSET processor set ID
14 * LGRP latency group ID
15 * CLOCK clock speed, MHz
17 * FPU floating point identifier types
19 * SEE ALSO: psrinfo(1M)
20 * /usr/include/sys/processor.h
22 * COPYRIGHT: Copyright (c) 2005 Brendan Gregg.
26 * The contents of this file are subject to the terms of the
27 * Common Development and Distribution License, Version 1.0 only
28 * (the "License"). You may not use this file except in compliance
31 * You can obtain a copy of the license at Docs/cddl1.txt
32 * or http://www.opensolaris.org/os/licensing.
33 * See the License for the specific language governing permissions
34 * and limitations under the License.
38 * 27-Jun-2005 Brendan Gregg Created this.
39 * 27-Jun-2005 " " Last update.
42 #pragma D option quiet
43 #pragma D option bufsize=64k
47 printf("%4s %4s %4s %4s %6s %-16s %s\n",
48 "CPU", "CHIP", "PSET", "LGRP", "CLOCK", "TYPE", "FPU");
52 profile:::profile-10ms
55 printf("%4d %4d %4d %4d %6d %-16s %s\n",
56 cpu, curcpu->cpu_chip, curcpu->cpu_pset,
57 curcpu->cpu_lgrp, curcpu->cpu_info.pi_clock,
58 stringof(curcpu->cpu_info.pi_processor_type),
59 stringof(curcpu->cpu_info.pi_fputypes));