The cpuinfo_t
structure defines a CPU. Per
the information in Table 11.8, “sched Probe Arguments”, arguments to
both the enqueue
and
dequeue
probes include a pointer to a
cpuinfo_t
. Additionally, the
cpuinfo_t
that corresponds to the current
CPU is pointed to by the curcpu
variable.
The definition of the cpuinfo_t
structure
is as follows:
typedef struct cpuinfo { processorid_t cpu_id; /* CPU identifier */ psetid_t cpu_pset; /* not supported */ chipid_t cpu_chip; /* chip identifier */ lgrp_id_t cpu_lgrp; /* not supported */ cpuinfo_arch_t *cpu_info; /* CPU information */ } cpuinfo_t;
cpu_id
: Is the processor identifier.
cpu_chip
: Is the identifier of the physical
chip. Physical chips can contain several CPU cores.
cpu_info
: Is a pointer to the
cpuinfo_arch_t
structure that is associated
with the CPU.