Documentation ¶
Index ¶
Constants ¶
View Source
const ( INTEL = 1 << iota AMD )
Internal bit assign to handle vendors
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct { Level uint16 Type string ThreadsPerCache uint32 LineSize uint32 Partitions uint32 Sets uint32 Size uint32 Ways uint32 Flags []string }
Cache represents a cache spec
type Processor ¶
type Processor struct { VendorID uint32 VendorSignature string BrandString string MaxStdLevel uint32 MaxExtLevel uint32 Family uint32 ExtFamily uint32 Model uint32 ExtModel uint32 Stepping uint32 Type uint32 Prefetch uint32 Caches []*Cache TLBs []*TLB BaseFrequency uint32 MaximumFrequency uint32 SMT uint32 LogicalCoreCount uint32 PhysicalCoreCount uint32 }
Processor represents a processor spec
func NewDecoder ¶
func NewDecoder() *Processor
NewDecoder creates and initializes a Processor as Decoder
Click to show internal directories.
Click to hide internal directories.