cpuinfo

package
v7.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CpuinfoX86EntryVendor_name = map[int32]string{
		0: "UNKNOWN",
		1: "INTEL",
		2: "AMD",
	}
	CpuinfoX86EntryVendor_value = map[string]int32{
		"UNKNOWN": 0,
		"INTEL":   1,
		"AMD":     2,
	}
)

Enum value maps for CpuinfoX86EntryVendor.

View Source
var (
	CpuinfoPpc64EntryEndianness_name = map[int32]string{
		0: "BIGENDIAN",
		1: "LITTLEENDIAN",
	}
	CpuinfoPpc64EntryEndianness_value = map[string]int32{
		"BIGENDIAN":    0,
		"LITTLEENDIAN": 1,
	}
)

Enum value maps for CpuinfoPpc64EntryEndianness.

View Source
var File_cpuinfo_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type CpuinfoEntry

type CpuinfoEntry struct {

	// Usually on SMP system there should be same CPUs
	// installed, but it might happen that system carries
	// various CPUs so @repeated used.
	X86Entry   []*CpuinfoX86Entry   `protobuf:"bytes,1,rep,name=x86_entry,json=x86Entry" json:"x86_entry,omitempty"`
	Ppc64Entry []*CpuinfoPpc64Entry `protobuf:"bytes,2,rep,name=ppc64_entry,json=ppc64Entry" json:"ppc64_entry,omitempty"`
	S390Entry  []*CpuinfoS390Entry  `protobuf:"bytes,3,rep,name=s390_entry,json=s390Entry" json:"s390_entry,omitempty"`
	// contains filtered or unexported fields
}

func (*CpuinfoEntry) Descriptor deprecated

func (*CpuinfoEntry) Descriptor() ([]byte, []int)

Deprecated: Use CpuinfoEntry.ProtoReflect.Descriptor instead.

func (*CpuinfoEntry) GetPpc64Entry

func (x *CpuinfoEntry) GetPpc64Entry() []*CpuinfoPpc64Entry

func (*CpuinfoEntry) GetS390Entry

func (x *CpuinfoEntry) GetS390Entry() []*CpuinfoS390Entry

func (*CpuinfoEntry) GetX86Entry

func (x *CpuinfoEntry) GetX86Entry() []*CpuinfoX86Entry

func (*CpuinfoEntry) ProtoMessage

func (*CpuinfoEntry) ProtoMessage()

func (*CpuinfoEntry) ProtoReflect

func (x *CpuinfoEntry) ProtoReflect() protoreflect.Message

func (*CpuinfoEntry) Reset

func (x *CpuinfoEntry) Reset()

func (*CpuinfoEntry) String

func (x *CpuinfoEntry) String() string

type CpuinfoPpc64Entry

type CpuinfoPpc64Entry struct {
	Endian *CpuinfoPpc64EntryEndianness `protobuf:"varint,1,req,name=endian,enum=CpuinfoPpc64EntryEndianness" json:"endian,omitempty"`
	Hwcap  []uint64                     `protobuf:"varint,2,rep,name=hwcap" json:"hwcap,omitempty"`
	// contains filtered or unexported fields
}

func (*CpuinfoPpc64Entry) Descriptor deprecated

func (*CpuinfoPpc64Entry) Descriptor() ([]byte, []int)

Deprecated: Use CpuinfoPpc64Entry.ProtoReflect.Descriptor instead.

func (*CpuinfoPpc64Entry) GetEndian

func (*CpuinfoPpc64Entry) GetHwcap

func (x *CpuinfoPpc64Entry) GetHwcap() []uint64

func (*CpuinfoPpc64Entry) ProtoMessage

func (*CpuinfoPpc64Entry) ProtoMessage()

func (*CpuinfoPpc64Entry) ProtoReflect

func (x *CpuinfoPpc64Entry) ProtoReflect() protoreflect.Message

func (*CpuinfoPpc64Entry) Reset

func (x *CpuinfoPpc64Entry) Reset()

func (*CpuinfoPpc64Entry) String

func (x *CpuinfoPpc64Entry) String() string

type CpuinfoPpc64EntryEndianness

type CpuinfoPpc64EntryEndianness int32
const (
	CpuinfoPpc64Entry_BIGENDIAN    CpuinfoPpc64EntryEndianness = 0
	CpuinfoPpc64Entry_LITTLEENDIAN CpuinfoPpc64EntryEndianness = 1
)

func (CpuinfoPpc64EntryEndianness) Descriptor

func (CpuinfoPpc64EntryEndianness) Enum

func (CpuinfoPpc64EntryEndianness) EnumDescriptor deprecated

func (CpuinfoPpc64EntryEndianness) EnumDescriptor() ([]byte, []int)

Deprecated: Use CpuinfoPpc64EntryEndianness.Descriptor instead.

func (CpuinfoPpc64EntryEndianness) Number

func (CpuinfoPpc64EntryEndianness) String

func (CpuinfoPpc64EntryEndianness) Type

func (*CpuinfoPpc64EntryEndianness) UnmarshalJSON deprecated

func (x *CpuinfoPpc64EntryEndianness) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

type CpuinfoS390Entry

type CpuinfoS390Entry struct {
	Hwcap []uint64 `protobuf:"varint,2,rep,name=hwcap" json:"hwcap,omitempty"`
	// contains filtered or unexported fields
}

func (*CpuinfoS390Entry) Descriptor deprecated

func (*CpuinfoS390Entry) Descriptor() ([]byte, []int)

Deprecated: Use CpuinfoS390Entry.ProtoReflect.Descriptor instead.

func (*CpuinfoS390Entry) GetHwcap

func (x *CpuinfoS390Entry) GetHwcap() []uint64

func (*CpuinfoS390Entry) ProtoMessage

func (*CpuinfoS390Entry) ProtoMessage()

func (*CpuinfoS390Entry) ProtoReflect

func (x *CpuinfoS390Entry) ProtoReflect() protoreflect.Message

func (*CpuinfoS390Entry) Reset

func (x *CpuinfoS390Entry) Reset()

func (*CpuinfoS390Entry) String

func (x *CpuinfoS390Entry) String() string

type CpuinfoX86Entry

type CpuinfoX86Entry struct {
	VendorId      *CpuinfoX86EntryVendor `protobuf:"varint,1,req,name=vendor_id,json=vendorId,enum=CpuinfoX86EntryVendor" json:"vendor_id,omitempty"`
	CpuFamily     *uint32                `protobuf:"varint,2,req,name=cpu_family,json=cpuFamily" json:"cpu_family,omitempty"`
	Model         *uint32                `protobuf:"varint,3,req,name=model" json:"model,omitempty"`
	Stepping      *uint32                `protobuf:"varint,4,req,name=stepping" json:"stepping,omitempty"`
	CapabilityVer *uint32                `protobuf:"varint,5,req,name=capability_ver,json=capabilityVer" json:"capability_ver,omitempty"`
	Capability    []uint32               `protobuf:"varint,6,rep,name=capability" json:"capability,omitempty"`
	ModelId       *string                `protobuf:"bytes,7,opt,name=model_id,json=modelId" json:"model_id,omitempty"`
	XfeaturesMask *uint64                `protobuf:"varint,8,opt,name=xfeatures_mask,json=xfeaturesMask" json:"xfeatures_mask,omitempty"`
	XsaveSize     *uint32                `protobuf:"varint,9,opt,name=xsave_size,json=xsaveSize" json:"xsave_size,omitempty"`
	XsaveSizeMax  *uint32                `protobuf:"varint,10,opt,name=xsave_size_max,json=xsaveSizeMax" json:"xsave_size_max,omitempty"`
	// contains filtered or unexported fields
}

func (*CpuinfoX86Entry) Descriptor deprecated

func (*CpuinfoX86Entry) Descriptor() ([]byte, []int)

Deprecated: Use CpuinfoX86Entry.ProtoReflect.Descriptor instead.

func (*CpuinfoX86Entry) GetCapability

func (x *CpuinfoX86Entry) GetCapability() []uint32

func (*CpuinfoX86Entry) GetCapabilityVer

func (x *CpuinfoX86Entry) GetCapabilityVer() uint32

func (*CpuinfoX86Entry) GetCpuFamily

func (x *CpuinfoX86Entry) GetCpuFamily() uint32

func (*CpuinfoX86Entry) GetModel

func (x *CpuinfoX86Entry) GetModel() uint32

func (*CpuinfoX86Entry) GetModelId

func (x *CpuinfoX86Entry) GetModelId() string

func (*CpuinfoX86Entry) GetStepping

func (x *CpuinfoX86Entry) GetStepping() uint32

func (*CpuinfoX86Entry) GetVendorId

func (x *CpuinfoX86Entry) GetVendorId() CpuinfoX86EntryVendor

func (*CpuinfoX86Entry) GetXfeaturesMask

func (x *CpuinfoX86Entry) GetXfeaturesMask() uint64

func (*CpuinfoX86Entry) GetXsaveSize

func (x *CpuinfoX86Entry) GetXsaveSize() uint32

func (*CpuinfoX86Entry) GetXsaveSizeMax

func (x *CpuinfoX86Entry) GetXsaveSizeMax() uint32

func (*CpuinfoX86Entry) ProtoMessage

func (*CpuinfoX86Entry) ProtoMessage()

func (*CpuinfoX86Entry) ProtoReflect

func (x *CpuinfoX86Entry) ProtoReflect() protoreflect.Message

func (*CpuinfoX86Entry) Reset

func (x *CpuinfoX86Entry) Reset()

func (*CpuinfoX86Entry) String

func (x *CpuinfoX86Entry) String() string

type CpuinfoX86EntryVendor

type CpuinfoX86EntryVendor int32
const (
	CpuinfoX86Entry_UNKNOWN CpuinfoX86EntryVendor = 0
	CpuinfoX86Entry_INTEL   CpuinfoX86EntryVendor = 1
	CpuinfoX86Entry_AMD     CpuinfoX86EntryVendor = 2
)

func (CpuinfoX86EntryVendor) Descriptor

func (CpuinfoX86EntryVendor) Enum

func (CpuinfoX86EntryVendor) EnumDescriptor deprecated

func (CpuinfoX86EntryVendor) EnumDescriptor() ([]byte, []int)

Deprecated: Use CpuinfoX86EntryVendor.Descriptor instead.

func (CpuinfoX86EntryVendor) Number

func (CpuinfoX86EntryVendor) String

func (x CpuinfoX86EntryVendor) String() string

func (CpuinfoX86EntryVendor) Type

func (*CpuinfoX86EntryVendor) UnmarshalJSON deprecated

func (x *CpuinfoX86EntryVendor) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

Jump to

Keyboard shortcuts

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