api

package
v0.48.0-rc.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 1, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CPU added in v0.43.0

type CPU struct {
	ID       uint32      `xml:"id,attr"`
	SocketID uint32      `xml:"socket_id,attr"`
	DieID    uint32      `xml:"die_id,attr"`
	CoreID   uint32      `xml:"core_id,attr"`
	Siblings CPUSiblings `xml:"siblings,attr"`
}

type CPUSiblings added in v0.44.2

type CPUSiblings []uint32

func (*CPUSiblings) UnmarshalXMLAttr added in v0.44.2

func (b *CPUSiblings) UnmarshalXMLAttr(attr xml.Attr) error

type CPUs added in v0.43.0

type CPUs struct {
	Num int   `xml:"num,attr"`
	CPU []CPU `xml:"cpu"`
}

type Capabilities

type Capabilities struct {
	XMLName xml.Name `xml:"capabilities"`
	Host    Host     `xml:"host"`
}

func (*Capabilities) GetTSCCounter

func (c *Capabilities) GetTSCCounter() (*Counter, error)

type Cell added in v0.43.0

type Cell struct {
	ID        uint32    `xml:"id,attr"`
	Memory    Memory    `xml:"memory"`
	Pages     []Pages   `xml:"pages"`
	Distances Distances `xml:"distances"`
	Cpus      CPUs      `xml:"cpus"`
}

type Cells added in v0.43.0

type Cells struct {
	Num  uint32 `xml:"num,attr"`
	Cell []Cell `xml:"cell"`
}

type Counter

type Counter struct {
	Name      string    `xml:"name,attr"`
	Frequency int64     `xml:"frequency,attr"`
	Scaling   yesnobool `xml:"scaling,attr"`
}

type Distances added in v0.43.0

type Distances struct {
	Sibling []Sibling `xml:"sibling"`
}

type Host

type Host struct {
	UUID     string   `xml:"uuid"`
	CPU      HostCPU  `xml:"cpu"`
	Topology Topology `xml:"topology"`
}

type HostCPU

type HostCPU struct {
	Arch    string    `xml:"arch"`
	Model   string    `xml:"model"`
	Vendor  string    `xml:"vendor"`
	Counter []Counter `xml:"counter"`
}

type Memory added in v0.43.0

type Memory struct {
	Amount uint64 `xml:",chardata"`
	Unit   string `xml:"unit,attr"`
}

type Pages added in v0.43.0

type Pages struct {
	Count uint64 `xml:",chardata"`
	Unit  string `xml:"unit,attr"`
	Size  uint32 `xml:"size,attr"`
}

type Sibling added in v0.43.0

type Sibling struct {
	ID    uint32 `xml:"id,attr"`
	Value uint64 `xml:"value,attr"`
}

type Topology added in v0.43.0

type Topology struct {
	Cells Cells `xml:"cells"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL