|
@@ -0,0 +1,3612 @@
|
|
|
+// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
|
|
+// source: github.com/containerd/cgroups/v2/stats/metrics.proto
|
|
|
+
|
|
|
+package stats
|
|
|
+
|
|
|
+import (
|
|
|
+ fmt "fmt"
|
|
|
+ _ "github.com/gogo/protobuf/gogoproto"
|
|
|
+ proto "github.com/gogo/protobuf/proto"
|
|
|
+ io "io"
|
|
|
+ math "math"
|
|
|
+ reflect "reflect"
|
|
|
+ strings "strings"
|
|
|
+)
|
|
|
+
|
|
|
+// Reference imports to suppress errors if they are not otherwise used.
|
|
|
+var _ = proto.Marshal
|
|
|
+var _ = fmt.Errorf
|
|
|
+var _ = math.Inf
|
|
|
+
|
|
|
+// This is a compile-time assertion to ensure that this generated file
|
|
|
+// is compatible with the proto package it is being compiled against.
|
|
|
+// A compilation error at this line likely means your copy of the
|
|
|
+// proto package needs to be updated.
|
|
|
+const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
|
|
|
+
|
|
|
+type Metrics struct {
|
|
|
+ Pids *PidsStat `protobuf:"bytes,1,opt,name=pids,proto3" json:"pids,omitempty"`
|
|
|
+ CPU *CPUStat `protobuf:"bytes,2,opt,name=cpu,proto3" json:"cpu,omitempty"`
|
|
|
+ Memory *MemoryStat `protobuf:"bytes,4,opt,name=memory,proto3" json:"memory,omitempty"`
|
|
|
+ Rdma *RdmaStat `protobuf:"bytes,5,opt,name=rdma,proto3" json:"rdma,omitempty"`
|
|
|
+ Io *IOStat `protobuf:"bytes,6,opt,name=io,proto3" json:"io,omitempty"`
|
|
|
+ Hugetlb []*HugeTlbStat `protobuf:"bytes,7,rep,name=hugetlb,proto3" json:"hugetlb,omitempty"`
|
|
|
+ XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
+ XXX_unrecognized []byte `json:"-"`
|
|
|
+ XXX_sizecache int32 `json:"-"`
|
|
|
+}
|
|
|
+
|
|
|
+func (m *Metrics) Reset() { *m = Metrics{} }
|
|
|
+func (*Metrics) ProtoMessage() {}
|
|
|
+func (*Metrics) Descriptor() ([]byte, []int) {
|
|
|
+ return fileDescriptor_2fc6005842049e6b, []int{0}
|
|
|
+}
|
|
|
+func (m *Metrics) XXX_Unmarshal(b []byte) error {
|
|
|
+ return m.Unmarshal(b)
|
|
|
+}
|
|
|
+func (m *Metrics) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
+ if deterministic {
|
|
|
+ return xxx_messageInfo_Metrics.Marshal(b, m, deterministic)
|
|
|
+ } else {
|
|
|
+ b = b[:cap(b)]
|
|
|
+ n, err := m.MarshalTo(b)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ return b[:n], nil
|
|
|
+ }
|
|
|
+}
|
|
|
+func (m *Metrics) XXX_Merge(src proto.Message) {
|
|
|
+ xxx_messageInfo_Metrics.Merge(m, src)
|
|
|
+}
|
|
|
+func (m *Metrics) XXX_Size() int {
|
|
|
+ return m.Size()
|
|
|
+}
|
|
|
+func (m *Metrics) XXX_DiscardUnknown() {
|
|
|
+ xxx_messageInfo_Metrics.DiscardUnknown(m)
|
|
|
+}
|
|
|
+
|
|
|
+var xxx_messageInfo_Metrics proto.InternalMessageInfo
|
|
|
+
|
|
|
+type PidsStat struct {
|
|
|
+ Current uint64 `protobuf:"varint,1,opt,name=current,proto3" json:"current,omitempty"`
|
|
|
+ Limit uint64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
|
|
|
+ XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
+ XXX_unrecognized []byte `json:"-"`
|
|
|
+ XXX_sizecache int32 `json:"-"`
|
|
|
+}
|
|
|
+
|
|
|
+func (m *PidsStat) Reset() { *m = PidsStat{} }
|
|
|
+func (*PidsStat) ProtoMessage() {}
|
|
|
+func (*PidsStat) Descriptor() ([]byte, []int) {
|
|
|
+ return fileDescriptor_2fc6005842049e6b, []int{1}
|
|
|
+}
|
|
|
+func (m *PidsStat) XXX_Unmarshal(b []byte) error {
|
|
|
+ return m.Unmarshal(b)
|
|
|
+}
|
|
|
+func (m *PidsStat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
+ if deterministic {
|
|
|
+ return xxx_messageInfo_PidsStat.Marshal(b, m, deterministic)
|
|
|
+ } else {
|
|
|
+ b = b[:cap(b)]
|
|
|
+ n, err := m.MarshalTo(b)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ return b[:n], nil
|
|
|
+ }
|
|
|
+}
|
|
|
+func (m *PidsStat) XXX_Merge(src proto.Message) {
|
|
|
+ xxx_messageInfo_PidsStat.Merge(m, src)
|
|
|
+}
|
|
|
+func (m *PidsStat) XXX_Size() int {
|
|
|
+ return m.Size()
|
|
|
+}
|
|
|
+func (m *PidsStat) XXX_DiscardUnknown() {
|
|
|
+ xxx_messageInfo_PidsStat.DiscardUnknown(m)
|
|
|
+}
|
|
|
+
|
|
|
+var xxx_messageInfo_PidsStat proto.InternalMessageInfo
|
|
|
+
|
|
|
+type CPUStat struct {
|
|
|
+ UsageUsec uint64 `protobuf:"varint,1,opt,name=usage_usec,json=usageUsec,proto3" json:"usage_usec,omitempty"`
|
|
|
+ UserUsec uint64 `protobuf:"varint,2,opt,name=user_usec,json=userUsec,proto3" json:"user_usec,omitempty"`
|
|
|
+ SystemUsec uint64 `protobuf:"varint,3,opt,name=system_usec,json=systemUsec,proto3" json:"system_usec,omitempty"`
|
|
|
+ NrPeriods uint64 `protobuf:"varint,4,opt,name=nr_periods,json=nrPeriods,proto3" json:"nr_periods,omitempty"`
|
|
|
+ NrThrottled uint64 `protobuf:"varint,5,opt,name=nr_throttled,json=nrThrottled,proto3" json:"nr_throttled,omitempty"`
|
|
|
+ ThrottledUsec uint64 `protobuf:"varint,6,opt,name=throttled_usec,json=throttledUsec,proto3" json:"throttled_usec,omitempty"`
|
|
|
+ XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
+ XXX_unrecognized []byte `json:"-"`
|
|
|
+ XXX_sizecache int32 `json:"-"`
|
|
|
+}
|
|
|
+
|
|
|
+func (m *CPUStat) Reset() { *m = CPUStat{} }
|
|
|
+func (*CPUStat) ProtoMessage() {}
|
|
|
+func (*CPUStat) Descriptor() ([]byte, []int) {
|
|
|
+ return fileDescriptor_2fc6005842049e6b, []int{2}
|
|
|
+}
|
|
|
+func (m *CPUStat) XXX_Unmarshal(b []byte) error {
|
|
|
+ return m.Unmarshal(b)
|
|
|
+}
|
|
|
+func (m *CPUStat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
+ if deterministic {
|
|
|
+ return xxx_messageInfo_CPUStat.Marshal(b, m, deterministic)
|
|
|
+ } else {
|
|
|
+ b = b[:cap(b)]
|
|
|
+ n, err := m.MarshalTo(b)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ return b[:n], nil
|
|
|
+ }
|
|
|
+}
|
|
|
+func (m *CPUStat) XXX_Merge(src proto.Message) {
|
|
|
+ xxx_messageInfo_CPUStat.Merge(m, src)
|
|
|
+}
|
|
|
+func (m *CPUStat) XXX_Size() int {
|
|
|
+ return m.Size()
|
|
|
+}
|
|
|
+func (m *CPUStat) XXX_DiscardUnknown() {
|
|
|
+ xxx_messageInfo_CPUStat.DiscardUnknown(m)
|
|
|
+}
|
|
|
+
|
|
|
+var xxx_messageInfo_CPUStat proto.InternalMessageInfo
|
|
|
+
|
|
|
+type MemoryStat struct {
|
|
|
+ Anon uint64 `protobuf:"varint,1,opt,name=anon,proto3" json:"anon,omitempty"`
|
|
|
+ File uint64 `protobuf:"varint,2,opt,name=file,proto3" json:"file,omitempty"`
|
|
|
+ KernelStack uint64 `protobuf:"varint,3,opt,name=kernel_stack,json=kernelStack,proto3" json:"kernel_stack,omitempty"`
|
|
|
+ Slab uint64 `protobuf:"varint,4,opt,name=slab,proto3" json:"slab,omitempty"`
|
|
|
+ Sock uint64 `protobuf:"varint,5,opt,name=sock,proto3" json:"sock,omitempty"`
|
|
|
+ Shmem uint64 `protobuf:"varint,6,opt,name=shmem,proto3" json:"shmem,omitempty"`
|
|
|
+ FileMapped uint64 `protobuf:"varint,7,opt,name=file_mapped,json=fileMapped,proto3" json:"file_mapped,omitempty"`
|
|
|
+ FileDirty uint64 `protobuf:"varint,8,opt,name=file_dirty,json=fileDirty,proto3" json:"file_dirty,omitempty"`
|
|
|
+ FileWriteback uint64 `protobuf:"varint,9,opt,name=file_writeback,json=fileWriteback,proto3" json:"file_writeback,omitempty"`
|
|
|
+ AnonThp uint64 `protobuf:"varint,10,opt,name=anon_thp,json=anonThp,proto3" json:"anon_thp,omitempty"`
|
|
|
+ InactiveAnon uint64 `protobuf:"varint,11,opt,name=inactive_anon,json=inactiveAnon,proto3" json:"inactive_anon,omitempty"`
|
|
|
+ ActiveAnon uint64 `protobuf:"varint,12,opt,name=active_anon,json=activeAnon,proto3" json:"active_anon,omitempty"`
|
|
|
+ InactiveFile uint64 `protobuf:"varint,13,opt,name=inactive_file,json=inactiveFile,proto3" json:"inactive_file,omitempty"`
|
|
|
+ ActiveFile uint64 `protobuf:"varint,14,opt,name=active_file,json=activeFile,proto3" json:"active_file,omitempty"`
|
|
|
+ Unevictable uint64 `protobuf:"varint,15,opt,name=unevictable,proto3" json:"unevictable,omitempty"`
|
|
|
+ SlabReclaimable uint64 `protobuf:"varint,16,opt,name=slab_reclaimable,json=slabReclaimable,proto3" json:"slab_reclaimable,omitempty"`
|
|
|
+ SlabUnreclaimable uint64 `protobuf:"varint,17,opt,name=slab_unreclaimable,json=slabUnreclaimable,proto3" json:"slab_unreclaimable,omitempty"`
|
|
|
+ Pgfault uint64 `protobuf:"varint,18,opt,name=pgfault,proto3" json:"pgfault,omitempty"`
|
|
|
+ Pgmajfault uint64 `protobuf:"varint,19,opt,name=pgmajfault,proto3" json:"pgmajfault,omitempty"`
|
|
|
+ WorkingsetRefault uint64 `protobuf:"varint,20,opt,name=workingset_refault,json=workingsetRefault,proto3" json:"workingset_refault,omitempty"`
|
|
|
+ WorkingsetActivate uint64 `protobuf:"varint,21,opt,name=workingset_activate,json=workingsetActivate,proto3" json:"workingset_activate,omitempty"`
|
|
|
+ WorkingsetNodereclaim uint64 `protobuf:"varint,22,opt,name=workingset_nodereclaim,json=workingsetNodereclaim,proto3" json:"workingset_nodereclaim,omitempty"`
|
|
|
+ Pgrefill uint64 `protobuf:"varint,23,opt,name=pgrefill,proto3" json:"pgrefill,omitempty"`
|
|
|
+ Pgscan uint64 `protobuf:"varint,24,opt,name=pgscan,proto3" json:"pgscan,omitempty"`
|
|
|
+ Pgsteal uint64 `protobuf:"varint,25,opt,name=pgsteal,proto3" json:"pgsteal,omitempty"`
|
|
|
+ Pgactivate uint64 `protobuf:"varint,26,opt,name=pgactivate,proto3" json:"pgactivate,omitempty"`
|
|
|
+ Pgdeactivate uint64 `protobuf:"varint,27,opt,name=pgdeactivate,proto3" json:"pgdeactivate,omitempty"`
|
|
|
+ Pglazyfree uint64 `protobuf:"varint,28,opt,name=pglazyfree,proto3" json:"pglazyfree,omitempty"`
|
|
|
+ Pglazyfreed uint64 `protobuf:"varint,29,opt,name=pglazyfreed,proto3" json:"pglazyfreed,omitempty"`
|
|
|
+ ThpFaultAlloc uint64 `protobuf:"varint,30,opt,name=thp_fault_alloc,json=thpFaultAlloc,proto3" json:"thp_fault_alloc,omitempty"`
|
|
|
+ ThpCollapseAlloc uint64 `protobuf:"varint,31,opt,name=thp_collapse_alloc,json=thpCollapseAlloc,proto3" json:"thp_collapse_alloc,omitempty"`
|
|
|
+ Usage uint64 `protobuf:"varint,32,opt,name=usage,proto3" json:"usage,omitempty"`
|
|
|
+ UsageLimit uint64 `protobuf:"varint,33,opt,name=usage_limit,json=usageLimit,proto3" json:"usage_limit,omitempty"`
|
|
|
+ SwapUsage uint64 `protobuf:"varint,34,opt,name=swap_usage,json=swapUsage,proto3" json:"swap_usage,omitempty"`
|
|
|
+ SwapLimit uint64 `protobuf:"varint,35,opt,name=swap_limit,json=swapLimit,proto3" json:"swap_limit,omitempty"`
|
|
|
+ XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
+ XXX_unrecognized []byte `json:"-"`
|
|
|
+ XXX_sizecache int32 `json:"-"`
|
|
|
+}
|
|
|
+
|
|
|
+func (m *MemoryStat) Reset() { *m = MemoryStat{} }
|
|
|
+func (*MemoryStat) ProtoMessage() {}
|
|
|
+func (*MemoryStat) Descriptor() ([]byte, []int) {
|
|
|
+ return fileDescriptor_2fc6005842049e6b, []int{3}
|
|
|
+}
|
|
|
+func (m *MemoryStat) XXX_Unmarshal(b []byte) error {
|
|
|
+ return m.Unmarshal(b)
|
|
|
+}
|
|
|
+func (m *MemoryStat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
+ if deterministic {
|
|
|
+ return xxx_messageInfo_MemoryStat.Marshal(b, m, deterministic)
|
|
|
+ } else {
|
|
|
+ b = b[:cap(b)]
|
|
|
+ n, err := m.MarshalTo(b)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ return b[:n], nil
|
|
|
+ }
|
|
|
+}
|
|
|
+func (m *MemoryStat) XXX_Merge(src proto.Message) {
|
|
|
+ xxx_messageInfo_MemoryStat.Merge(m, src)
|
|
|
+}
|
|
|
+func (m *MemoryStat) XXX_Size() int {
|
|
|
+ return m.Size()
|
|
|
+}
|
|
|
+func (m *MemoryStat) XXX_DiscardUnknown() {
|
|
|
+ xxx_messageInfo_MemoryStat.DiscardUnknown(m)
|
|
|
+}
|
|
|
+
|
|
|
+var xxx_messageInfo_MemoryStat proto.InternalMessageInfo
|
|
|
+
|
|
|
+type RdmaStat struct {
|
|
|
+ Current []*RdmaEntry `protobuf:"bytes,1,rep,name=current,proto3" json:"current,omitempty"`
|
|
|
+ Limit []*RdmaEntry `protobuf:"bytes,2,rep,name=limit,proto3" json:"limit,omitempty"`
|
|
|
+ XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
+ XXX_unrecognized []byte `json:"-"`
|
|
|
+ XXX_sizecache int32 `json:"-"`
|
|
|
+}
|
|
|
+
|
|
|
+func (m *RdmaStat) Reset() { *m = RdmaStat{} }
|
|
|
+func (*RdmaStat) ProtoMessage() {}
|
|
|
+func (*RdmaStat) Descriptor() ([]byte, []int) {
|
|
|
+ return fileDescriptor_2fc6005842049e6b, []int{4}
|
|
|
+}
|
|
|
+func (m *RdmaStat) XXX_Unmarshal(b []byte) error {
|
|
|
+ return m.Unmarshal(b)
|
|
|
+}
|
|
|
+func (m *RdmaStat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
+ if deterministic {
|
|
|
+ return xxx_messageInfo_RdmaStat.Marshal(b, m, deterministic)
|
|
|
+ } else {
|
|
|
+ b = b[:cap(b)]
|
|
|
+ n, err := m.MarshalTo(b)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ return b[:n], nil
|
|
|
+ }
|
|
|
+}
|
|
|
+func (m *RdmaStat) XXX_Merge(src proto.Message) {
|
|
|
+ xxx_messageInfo_RdmaStat.Merge(m, src)
|
|
|
+}
|
|
|
+func (m *RdmaStat) XXX_Size() int {
|
|
|
+ return m.Size()
|
|
|
+}
|
|
|
+func (m *RdmaStat) XXX_DiscardUnknown() {
|
|
|
+ xxx_messageInfo_RdmaStat.DiscardUnknown(m)
|
|
|
+}
|
|
|
+
|
|
|
+var xxx_messageInfo_RdmaStat proto.InternalMessageInfo
|
|
|
+
|
|
|
+type RdmaEntry struct {
|
|
|
+ Device string `protobuf:"bytes,1,opt,name=device,proto3" json:"device,omitempty"`
|
|
|
+ HcaHandles uint32 `protobuf:"varint,2,opt,name=hca_handles,json=hcaHandles,proto3" json:"hca_handles,omitempty"`
|
|
|
+ HcaObjects uint32 `protobuf:"varint,3,opt,name=hca_objects,json=hcaObjects,proto3" json:"hca_objects,omitempty"`
|
|
|
+ XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
+ XXX_unrecognized []byte `json:"-"`
|
|
|
+ XXX_sizecache int32 `json:"-"`
|
|
|
+}
|
|
|
+
|
|
|
+func (m *RdmaEntry) Reset() { *m = RdmaEntry{} }
|
|
|
+func (*RdmaEntry) ProtoMessage() {}
|
|
|
+func (*RdmaEntry) Descriptor() ([]byte, []int) {
|
|
|
+ return fileDescriptor_2fc6005842049e6b, []int{5}
|
|
|
+}
|
|
|
+func (m *RdmaEntry) XXX_Unmarshal(b []byte) error {
|
|
|
+ return m.Unmarshal(b)
|
|
|
+}
|
|
|
+func (m *RdmaEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
+ if deterministic {
|
|
|
+ return xxx_messageInfo_RdmaEntry.Marshal(b, m, deterministic)
|
|
|
+ } else {
|
|
|
+ b = b[:cap(b)]
|
|
|
+ n, err := m.MarshalTo(b)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ return b[:n], nil
|
|
|
+ }
|
|
|
+}
|
|
|
+func (m *RdmaEntry) XXX_Merge(src proto.Message) {
|
|
|
+ xxx_messageInfo_RdmaEntry.Merge(m, src)
|
|
|
+}
|
|
|
+func (m *RdmaEntry) XXX_Size() int {
|
|
|
+ return m.Size()
|
|
|
+}
|
|
|
+func (m *RdmaEntry) XXX_DiscardUnknown() {
|
|
|
+ xxx_messageInfo_RdmaEntry.DiscardUnknown(m)
|
|
|
+}
|
|
|
+
|
|
|
+var xxx_messageInfo_RdmaEntry proto.InternalMessageInfo
|
|
|
+
|
|
|
+type IOStat struct {
|
|
|
+ Usage []*IOEntry `protobuf:"bytes,1,rep,name=usage,proto3" json:"usage,omitempty"`
|
|
|
+ XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
+ XXX_unrecognized []byte `json:"-"`
|
|
|
+ XXX_sizecache int32 `json:"-"`
|
|
|
+}
|
|
|
+
|
|
|
+func (m *IOStat) Reset() { *m = IOStat{} }
|
|
|
+func (*IOStat) ProtoMessage() {}
|
|
|
+func (*IOStat) Descriptor() ([]byte, []int) {
|
|
|
+ return fileDescriptor_2fc6005842049e6b, []int{6}
|
|
|
+}
|
|
|
+func (m *IOStat) XXX_Unmarshal(b []byte) error {
|
|
|
+ return m.Unmarshal(b)
|
|
|
+}
|
|
|
+func (m *IOStat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
+ if deterministic {
|
|
|
+ return xxx_messageInfo_IOStat.Marshal(b, m, deterministic)
|
|
|
+ } else {
|
|
|
+ b = b[:cap(b)]
|
|
|
+ n, err := m.MarshalTo(b)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ return b[:n], nil
|
|
|
+ }
|
|
|
+}
|
|
|
+func (m *IOStat) XXX_Merge(src proto.Message) {
|
|
|
+ xxx_messageInfo_IOStat.Merge(m, src)
|
|
|
+}
|
|
|
+func (m *IOStat) XXX_Size() int {
|
|
|
+ return m.Size()
|
|
|
+}
|
|
|
+func (m *IOStat) XXX_DiscardUnknown() {
|
|
|
+ xxx_messageInfo_IOStat.DiscardUnknown(m)
|
|
|
+}
|
|
|
+
|
|
|
+var xxx_messageInfo_IOStat proto.InternalMessageInfo
|
|
|
+
|
|
|
+type IOEntry struct {
|
|
|
+ Major uint64 `protobuf:"varint,1,opt,name=major,proto3" json:"major,omitempty"`
|
|
|
+ Minor uint64 `protobuf:"varint,2,opt,name=minor,proto3" json:"minor,omitempty"`
|
|
|
+ Rbytes uint64 `protobuf:"varint,3,opt,name=rbytes,proto3" json:"rbytes,omitempty"`
|
|
|
+ Wbytes uint64 `protobuf:"varint,4,opt,name=wbytes,proto3" json:"wbytes,omitempty"`
|
|
|
+ Rios uint64 `protobuf:"varint,5,opt,name=rios,proto3" json:"rios,omitempty"`
|
|
|
+ Wios uint64 `protobuf:"varint,6,opt,name=wios,proto3" json:"wios,omitempty"`
|
|
|
+ XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
+ XXX_unrecognized []byte `json:"-"`
|
|
|
+ XXX_sizecache int32 `json:"-"`
|
|
|
+}
|
|
|
+
|
|
|
+func (m *IOEntry) Reset() { *m = IOEntry{} }
|
|
|
+func (*IOEntry) ProtoMessage() {}
|
|
|
+func (*IOEntry) Descriptor() ([]byte, []int) {
|
|
|
+ return fileDescriptor_2fc6005842049e6b, []int{7}
|
|
|
+}
|
|
|
+func (m *IOEntry) XXX_Unmarshal(b []byte) error {
|
|
|
+ return m.Unmarshal(b)
|
|
|
+}
|
|
|
+func (m *IOEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
+ if deterministic {
|
|
|
+ return xxx_messageInfo_IOEntry.Marshal(b, m, deterministic)
|
|
|
+ } else {
|
|
|
+ b = b[:cap(b)]
|
|
|
+ n, err := m.MarshalTo(b)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ return b[:n], nil
|
|
|
+ }
|
|
|
+}
|
|
|
+func (m *IOEntry) XXX_Merge(src proto.Message) {
|
|
|
+ xxx_messageInfo_IOEntry.Merge(m, src)
|
|
|
+}
|
|
|
+func (m *IOEntry) XXX_Size() int {
|
|
|
+ return m.Size()
|
|
|
+}
|
|
|
+func (m *IOEntry) XXX_DiscardUnknown() {
|
|
|
+ xxx_messageInfo_IOEntry.DiscardUnknown(m)
|
|
|
+}
|
|
|
+
|
|
|
+var xxx_messageInfo_IOEntry proto.InternalMessageInfo
|
|
|
+
|
|
|
+type HugeTlbStat struct {
|
|
|
+ Current uint64 `protobuf:"varint,1,opt,name=current,proto3" json:"current,omitempty"`
|
|
|
+ Max uint64 `protobuf:"varint,2,opt,name=max,proto3" json:"max,omitempty"`
|
|
|
+ Pagesize string `protobuf:"bytes,3,opt,name=pagesize,proto3" json:"pagesize,omitempty"`
|
|
|
+ XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
+ XXX_unrecognized []byte `json:"-"`
|
|
|
+ XXX_sizecache int32 `json:"-"`
|
|
|
+}
|
|
|
+
|
|
|
+func (m *HugeTlbStat) Reset() { *m = HugeTlbStat{} }
|
|
|
+func (*HugeTlbStat) ProtoMessage() {}
|
|
|
+func (*HugeTlbStat) Descriptor() ([]byte, []int) {
|
|
|
+ return fileDescriptor_2fc6005842049e6b, []int{8}
|
|
|
+}
|
|
|
+func (m *HugeTlbStat) XXX_Unmarshal(b []byte) error {
|
|
|
+ return m.Unmarshal(b)
|
|
|
+}
|
|
|
+func (m *HugeTlbStat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
+ if deterministic {
|
|
|
+ return xxx_messageInfo_HugeTlbStat.Marshal(b, m, deterministic)
|
|
|
+ } else {
|
|
|
+ b = b[:cap(b)]
|
|
|
+ n, err := m.MarshalTo(b)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ return b[:n], nil
|
|
|
+ }
|
|
|
+}
|
|
|
+func (m *HugeTlbStat) XXX_Merge(src proto.Message) {
|
|
|
+ xxx_messageInfo_HugeTlbStat.Merge(m, src)
|
|
|
+}
|
|
|
+func (m *HugeTlbStat) XXX_Size() int {
|
|
|
+ return m.Size()
|
|
|
+}
|
|
|
+func (m *HugeTlbStat) XXX_DiscardUnknown() {
|
|
|
+ xxx_messageInfo_HugeTlbStat.DiscardUnknown(m)
|
|
|
+}
|
|
|
+
|
|
|
+var xxx_messageInfo_HugeTlbStat proto.InternalMessageInfo
|
|
|
+
|
|
|
+func init() {
|
|
|
+ proto.RegisterType((*Metrics)(nil), "io.containerd.cgroups.v2.Metrics")
|
|
|
+ proto.RegisterType((*PidsStat)(nil), "io.containerd.cgroups.v2.PidsStat")
|
|
|
+ proto.RegisterType((*CPUStat)(nil), "io.containerd.cgroups.v2.CPUStat")
|
|
|
+ proto.RegisterType((*MemoryStat)(nil), "io.containerd.cgroups.v2.MemoryStat")
|
|
|
+ proto.RegisterType((*RdmaStat)(nil), "io.containerd.cgroups.v2.RdmaStat")
|
|
|
+ proto.RegisterType((*RdmaEntry)(nil), "io.containerd.cgroups.v2.RdmaEntry")
|
|
|
+ proto.RegisterType((*IOStat)(nil), "io.containerd.cgroups.v2.IOStat")
|
|
|
+ proto.RegisterType((*IOEntry)(nil), "io.containerd.cgroups.v2.IOEntry")
|
|
|
+ proto.RegisterType((*HugeTlbStat)(nil), "io.containerd.cgroups.v2.HugeTlbStat")
|
|
|
+}
|
|
|
+
|
|
|
+func init() {
|
|
|
+ proto.RegisterFile("github.com/containerd/cgroups/v2/stats/metrics.proto", fileDescriptor_2fc6005842049e6b)
|
|
|
+}
|
|
|
+
|
|
|
+var fileDescriptor_2fc6005842049e6b = []byte{
|
|
|
+ // 1118 bytes of a gzipped FileDescriptorProto
|
|
|
+ 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x56, 0x4d, 0x6f, 0x1c, 0x45,
|
|
|
+ 0x10, 0xcd, 0xda, 0x9b, 0xfd, 0xe8, 0xb5, 0x13, 0xa7, 0xe3, 0x84, 0x4e, 0x42, 0xd6, 0xf6, 0x86,
|
|
|
+ 0xa0, 0x20, 0xc1, 0x2e, 0x32, 0x5f, 0x02, 0x05, 0x21, 0x27, 0x10, 0x05, 0x09, 0x13, 0x6b, 0xe2,
|
|
|
+ 0x15, 0xc7, 0x51, 0xef, 0x4c, 0x7b, 0x76, 0xec, 0xf9, 0x52, 0x77, 0x8f, 0xcd, 0xe6, 0xc4, 0x81,
|
|
|
+ 0x2b, 0xe2, 0x6f, 0xe5, 0x06, 0x47, 0x4e, 0x88, 0xf8, 0xc4, 0xcf, 0x40, 0x55, 0xd5, 0xb3, 0x33,
|
|
|
+ 0x1c, 0x6c, 0xb8, 0x75, 0xbd, 0x7a, 0xaf, 0xa6, 0xfa, 0xf5, 0x76, 0xf5, 0xb2, 0x8f, 0xa3, 0xd8,
|
|
|
+ 0xce, 0xcb, 0xd9, 0x38, 0xc8, 0xd3, 0x49, 0x90, 0x67, 0x56, 0xc6, 0x99, 0xd2, 0xe1, 0x24, 0x88,
|
|
|
+ 0x74, 0x5e, 0x16, 0x66, 0x72, 0xba, 0x3b, 0x31, 0x56, 0x5a, 0x33, 0x49, 0x95, 0xd5, 0x71, 0x60,
|
|
|
+ 0xc6, 0x85, 0xce, 0x6d, 0xce, 0x45, 0x9c, 0x8f, 0x6b, 0xf6, 0xd8, 0xb1, 0xc7, 0xa7, 0xbb, 0x77,
|
|
|
+ 0x37, 0xa3, 0x3c, 0xca, 0x91, 0x34, 0x81, 0x15, 0xf1, 0x47, 0x7f, 0xaf, 0xb0, 0xee, 0x3e, 0x55,
|
|
|
+ 0xe0, 0x9f, 0xb2, 0x76, 0x11, 0x87, 0x46, 0xb4, 0xb6, 0x5b, 0x8f, 0x06, 0xbb, 0xa3, 0xf1, 0x45,
|
|
|
+ 0xa5, 0xc6, 0x07, 0x71, 0x68, 0x5e, 0x5a, 0x69, 0x3d, 0xe4, 0xf3, 0xc7, 0x6c, 0x35, 0x28, 0x4a,
|
|
|
+ 0xb1, 0x82, 0xb2, 0x9d, 0x8b, 0x65, 0x4f, 0x0f, 0xa6, 0xa0, 0x7a, 0xd2, 0x3d, 0xff, 0x73, 0x6b,
|
|
|
+ 0xf5, 0xe9, 0xc1, 0xd4, 0x03, 0x19, 0x7f, 0xcc, 0x3a, 0xa9, 0x4a, 0x73, 0xbd, 0x10, 0x6d, 0x2c,
|
|
|
+ 0xf0, 0xce, 0xc5, 0x05, 0xf6, 0x91, 0x87, 0x5f, 0x76, 0x1a, 0xe8, 0x59, 0x87, 0xa9, 0x14, 0x57,
|
|
|
+ 0xff, 0xab, 0x67, 0x2f, 0x4c, 0x25, 0xf5, 0x0c, 0x7c, 0xfe, 0x21, 0x5b, 0x89, 0x73, 0xd1, 0x41,
|
|
|
+ 0xd5, 0xf6, 0xc5, 0xaa, 0x6f, 0x5f, 0xa0, 0x66, 0x25, 0xce, 0xf9, 0x57, 0xac, 0x3b, 0x2f, 0x23,
|
|
|
+ 0x65, 0x93, 0x99, 0xe8, 0x6e, 0xaf, 0x3e, 0x1a, 0xec, 0x3e, 0xbc, 0x58, 0xf6, 0xbc, 0x8c, 0xd4,
|
|
|
+ 0x61, 0x32, 0x43, 0x6d, 0xa5, 0x1a, 0x7d, 0xc1, 0x7a, 0x95, 0x71, 0x5c, 0xb0, 0x6e, 0x50, 0x6a,
|
|
|
+ 0xad, 0x32, 0x8b, 0x6e, 0xb7, 0xbd, 0x2a, 0xe4, 0x9b, 0xec, 0x6a, 0x12, 0xa7, 0xb1, 0x45, 0x3b,
|
|
|
+ 0xdb, 0x1e, 0x05, 0xa3, 0xdf, 0x5a, 0xac, 0xeb, 0xec, 0xe3, 0xf7, 0x19, 0x2b, 0x8d, 0x8c, 0x94,
|
|
|
+ 0x5f, 0x1a, 0x15, 0x38, 0x79, 0x1f, 0x91, 0xa9, 0x51, 0x01, 0xbf, 0xc7, 0xfa, 0xa5, 0x51, 0x9a,
|
|
|
+ 0xb2, 0x54, 0xa4, 0x07, 0x00, 0x26, 0xb7, 0xd8, 0xc0, 0x2c, 0x8c, 0x55, 0x29, 0xa5, 0x57, 0x31,
|
|
|
+ 0xcd, 0x08, 0x42, 0xc2, 0x7d, 0xc6, 0x32, 0xed, 0x17, 0x4a, 0xc7, 0x79, 0x68, 0xf0, 0x44, 0xda,
|
|
|
+ 0x5e, 0x3f, 0xd3, 0x07, 0x04, 0xf0, 0x1d, 0xb6, 0x96, 0x69, 0xdf, 0xce, 0x75, 0x6e, 0x6d, 0xa2,
|
|
|
+ 0x42, 0xb4, 0xbd, 0xed, 0x0d, 0x32, 0x7d, 0x58, 0x41, 0xfc, 0x21, 0xbb, 0xb6, 0xcc, 0xd3, 0x57,
|
|
|
+ 0x3a, 0x48, 0x5a, 0x5f, 0xa2, 0xf0, 0xa1, 0xd1, 0xaf, 0x7d, 0xc6, 0xea, 0xf3, 0xe4, 0x9c, 0xb5,
|
|
|
+ 0x65, 0x96, 0x67, 0x6e, 0x3b, 0xb8, 0x06, 0xec, 0x28, 0x4e, 0x94, 0xdb, 0x04, 0xae, 0xa1, 0x81,
|
|
|
+ 0x13, 0xa5, 0x33, 0x95, 0xf8, 0xc6, 0xca, 0xe0, 0xc4, 0xed, 0x60, 0x40, 0xd8, 0x4b, 0x80, 0x40,
|
|
|
+ 0x66, 0x12, 0x39, 0x73, 0xcd, 0xe3, 0x1a, 0xb1, 0x3c, 0x38, 0x71, 0xfd, 0xe2, 0x1a, 0x9c, 0x36,
|
|
|
+ 0xf3, 0x54, 0xa5, 0xae, 0x3f, 0x0a, 0xc0, 0x21, 0xf8, 0x90, 0x9f, 0xca, 0xa2, 0x50, 0xa1, 0xe8,
|
|
|
+ 0x92, 0x43, 0x00, 0xed, 0x23, 0x02, 0x0e, 0x21, 0x21, 0x8c, 0xb5, 0x5d, 0x88, 0x1e, 0x39, 0x04,
|
|
|
+ 0xc8, 0xd7, 0x00, 0xc0, 0xf6, 0x31, 0x7d, 0xa6, 0x63, 0xab, 0x66, 0xd0, 0x62, 0x9f, 0xb6, 0x0f,
|
|
|
+ 0xe8, 0x0f, 0x15, 0xc8, 0xef, 0xb0, 0x1e, 0xec, 0xd1, 0xb7, 0xf3, 0x42, 0x30, 0xfa, 0x05, 0x40,
|
|
|
+ 0x7c, 0x38, 0x2f, 0xf8, 0x03, 0xb6, 0x1e, 0x67, 0x32, 0xb0, 0xf1, 0xa9, 0xf2, 0xd1, 0x93, 0x01,
|
|
|
+ 0xe6, 0xd7, 0x2a, 0x70, 0x0f, 0xbc, 0xd9, 0x62, 0x83, 0x26, 0x65, 0x8d, 0xda, 0x6c, 0x10, 0x9a,
|
|
|
+ 0x55, 0xd0, 0xc5, 0xf5, 0x7f, 0x57, 0x79, 0x06, 0x6e, 0xd6, 0x55, 0x90, 0x72, 0xad, 0x59, 0x05,
|
|
|
+ 0x09, 0xdb, 0x6c, 0x50, 0x66, 0xea, 0x34, 0x0e, 0xac, 0x9c, 0x25, 0x4a, 0x5c, 0x27, 0xb7, 0x1b,
|
|
|
+ 0x10, 0x7f, 0x8f, 0x6d, 0x80, 0xc3, 0xbe, 0x56, 0x41, 0x22, 0xe3, 0x14, 0x69, 0x1b, 0x48, 0xbb,
|
|
|
+ 0x0e, 0xb8, 0x57, 0xc3, 0xfc, 0x03, 0xc6, 0x91, 0x5a, 0x66, 0x4d, 0xf2, 0x0d, 0x24, 0xdf, 0x80,
|
|
|
+ 0xcc, 0xb4, 0x99, 0x80, 0x3b, 0x52, 0x44, 0x47, 0xb2, 0x4c, 0xac, 0xe0, 0xe4, 0x90, 0x0b, 0xf9,
|
|
|
+ 0x90, 0xb1, 0x22, 0x4a, 0xe5, 0x31, 0x25, 0x6f, 0x52, 0xd7, 0x35, 0x02, 0x1f, 0x3a, 0xcb, 0xf5,
|
|
|
+ 0x49, 0x9c, 0x45, 0x46, 0x59, 0x5f, 0x2b, 0xe2, 0x6d, 0xd2, 0x87, 0xea, 0x8c, 0x47, 0x09, 0x3e,
|
|
|
+ 0x61, 0x37, 0x1b, 0x74, 0xdc, 0xbd, 0xb4, 0x4a, 0xdc, 0x42, 0x7e, 0xa3, 0xd2, 0x9e, 0xcb, 0xf0,
|
|
|
+ 0x4f, 0xd8, 0xed, 0x86, 0x20, 0xcb, 0x43, 0xe5, 0xfa, 0x16, 0xb7, 0x51, 0x73, 0xab, 0xce, 0x7e,
|
|
|
+ 0x5f, 0x27, 0xf9, 0x5d, 0xd6, 0x2b, 0x22, 0xad, 0x8e, 0xe2, 0x24, 0x11, 0x6f, 0xd1, 0xc5, 0xac,
|
|
|
+ 0x62, 0x7e, 0x9b, 0x75, 0x8a, 0xc8, 0x04, 0x32, 0x13, 0x02, 0x33, 0x2e, 0x22, 0x13, 0x8c, 0x55,
|
|
|
+ 0x32, 0x11, 0x77, 0x2a, 0x13, 0x30, 0x24, 0x13, 0x96, 0xcd, 0xde, 0xad, 0x4c, 0xa8, 0x10, 0x3e,
|
|
|
+ 0x62, 0x6b, 0x45, 0x14, 0xaa, 0x25, 0xe3, 0x1e, 0x9d, 0x7f, 0x13, 0xa3, 0x1a, 0x89, 0x7c, 0xb5,
|
|
|
+ 0x38, 0xd2, 0x4a, 0x89, 0xb7, 0xab, 0x1a, 0x15, 0x02, 0xc7, 0x5f, 0x47, 0xa1, 0xb8, 0x4f, 0xc7,
|
|
|
+ 0xdf, 0x80, 0xf8, 0xbb, 0xec, 0xba, 0x9d, 0x17, 0x3e, 0x1a, 0xe9, 0xcb, 0x24, 0xc9, 0x03, 0x31,
|
|
|
+ 0xac, 0xae, 0x7b, 0xf1, 0x0c, 0xd0, 0x3d, 0x00, 0xf9, 0xfb, 0x8c, 0x03, 0x2f, 0xc8, 0x93, 0x44,
|
|
|
+ 0x16, 0x46, 0x39, 0xea, 0x16, 0x52, 0x37, 0xec, 0xbc, 0x78, 0xea, 0x12, 0xc4, 0xde, 0x64, 0x57,
|
|
|
+ 0x71, 0xa0, 0x89, 0x6d, 0xba, 0x9a, 0x18, 0xc0, 0xaf, 0x95, 0x06, 0x1f, 0x0d, 0xc8, 0x1d, 0x6a,
|
|
|
+ 0x17, 0xa1, 0xef, 0x00, 0x81, 0xab, 0x69, 0xce, 0x64, 0xe1, 0x93, 0x76, 0x44, 0x57, 0x13, 0x90,
|
|
|
+ 0x29, 0xea, 0xab, 0x34, 0xc9, 0x1f, 0xd4, 0x69, 0x54, 0x8f, 0x7e, 0x6e, 0xb1, 0x5e, 0xf5, 0x4a,
|
|
|
+ 0xf0, 0x2f, 0x9b, 0x03, 0x1a, 0xa6, 0xfd, 0x83, 0xcb, 0x9f, 0x96, 0x6f, 0x32, 0xab, 0x17, 0xf5,
|
|
|
+ 0x14, 0xff, 0xbc, 0x9e, 0xe2, 0xff, 0x5b, 0xec, 0x46, 0xbd, 0x62, 0xfd, 0x25, 0x06, 0x3f, 0x8b,
|
|
|
+ 0x10, 0xee, 0x9a, 0xc2, 0xc1, 0xd8, 0xf7, 0x5c, 0x04, 0x56, 0xcc, 0x03, 0xe9, 0xcf, 0x65, 0x16,
|
|
|
+ 0x26, 0xca, 0xe0, 0x84, 0x5c, 0xf7, 0xd8, 0x3c, 0x90, 0xcf, 0x09, 0xa9, 0x08, 0xf9, 0xec, 0x58,
|
|
|
+ 0x05, 0xd6, 0xe0, 0x98, 0x24, 0xc2, 0x0b, 0x42, 0x46, 0x7b, 0xac, 0x43, 0x8f, 0x1b, 0xff, 0xac,
|
|
|
+ 0x32, 0x9b, 0x36, 0xba, 0x73, 0xd9, 0x6b, 0xe8, 0x3a, 0x45, 0xfe, 0xe8, 0x97, 0x16, 0xeb, 0x3a,
|
|
|
+ 0x08, 0x4e, 0x2c, 0x95, 0xc7, 0xb9, 0x76, 0x03, 0x9c, 0x02, 0x44, 0xe3, 0x2c, 0xd7, 0xd5, 0x63,
|
|
|
+ 0x86, 0x01, 0x6c, 0x4a, 0xcf, 0x16, 0x56, 0x19, 0x37, 0xbd, 0x5d, 0x04, 0xf8, 0x19, 0xe1, 0x34,
|
|
|
+ 0xba, 0x5d, 0x04, 0xc3, 0x5b, 0xc7, 0xb9, 0xa9, 0x86, 0x37, 0xac, 0x01, 0x3b, 0x03, 0x8c, 0x66,
|
|
|
+ 0x37, 0xae, 0x47, 0x53, 0x36, 0x68, 0x3c, 0xbc, 0x97, 0xbc, 0xb1, 0x1b, 0x6c, 0x35, 0x95, 0x3f,
|
|
|
+ 0xba, 0xa6, 0x60, 0x89, 0x57, 0x53, 0x46, 0xca, 0xc4, 0xaf, 0x14, 0x36, 0xd5, 0xf7, 0x96, 0xf1,
|
|
|
+ 0x13, 0xf1, 0xfa, 0xcd, 0xf0, 0xca, 0x1f, 0x6f, 0x86, 0x57, 0x7e, 0x3a, 0x1f, 0xb6, 0x5e, 0x9f,
|
|
|
+ 0x0f, 0x5b, 0xbf, 0x9f, 0x0f, 0x5b, 0x7f, 0x9d, 0x0f, 0x5b, 0xb3, 0x0e, 0xfe, 0x87, 0xfa, 0xe8,
|
|
|
+ 0x9f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x79, 0xd2, 0xcd, 0xe2, 0xab, 0x09, 0x00, 0x00,
|
|
|
+}
|
|
|
+
|
|
|
+func (m *Metrics) Marshal() (dAtA []byte, err error) {
|
|
|
+ size := m.Size()
|
|
|
+ dAtA = make([]byte, size)
|
|
|
+ n, err := m.MarshalTo(dAtA)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ return dAtA[:n], nil
|
|
|
+}
|
|
|
+
|
|
|
+func (m *Metrics) MarshalTo(dAtA []byte) (int, error) {
|
|
|
+ var i int
|
|
|
+ _ = i
|
|
|
+ var l int
|
|
|
+ _ = l
|
|
|
+ if m.Pids != nil {
|
|
|
+ dAtA[i] = 0xa
|
|
|
+ i++
|
|
|
+ i = encodeVarintMetrics(dAtA, i, uint64(m.Pids.Size()))
|
|
|
+ n1, err := m.Pids.MarshalTo(dAtA[i:])
|
|
|
+ if err != nil {
|
|
|
+ return 0, err
|
|
|
+ }
|
|
|
+ i += n1
|
|
|
+ }
|
|
|
+ if m.CPU != nil {
|
|
|
+ dAtA[i] = 0x12
|
|
|
+ i++
|
|
|
+ i = encodeVarintMetrics(dAtA, i, uint64(m.CPU.Size()))
|
|
|
+ n2, err := m.CPU.MarshalTo(dAtA[i:])
|
|
|
+ if err != nil {
|
|
|
+ return 0, err
|
|
|
+ }
|
|
|
+ i += n2
|
|
|
+ }
|
|
|
+ if m.Memory != nil {
|
|
|
+ dAtA[i] = 0x22
|
|
|
+ i++
|
|
|
+ i = encodeVarintMetrics(dAtA, i, uint64(m.Memory.Size()))
|
|
|
+ n3, err := m.Memory.MarshalTo(dAtA[i:])
|
|
|
+ if err != nil {
|
|
|
+ return 0, err
|
|
|
+ }
|
|
|
+ i += n3
|
|
|
+ }
|
|
|
+ if m.Rdma != nil {
|
|
|
+ dAtA[i] = 0x2a
|
|
|
+ i++
|
|
|
+ i = encodeVarintMetrics(dAtA, i, uint64(m.Rdma.Size()))
|
|
|
+ n4, err := m.Rdma.MarshalTo(dAtA[i:])
|
|
|
+ if err != nil {
|
|
|
+ return 0, err
|
|
|
+ }
|
|
|
+ i += n4
|
|
|
+ }
|
|
|
+ if m.Io != nil {
|
|
|
+ dAtA[i] = 0x32
|
|
|
+ i++
|
|
|
+ i = encodeVarintMetrics(dAtA, i, uint64(m.Io.Size()))
|
|
|
+ n5, err := m.Io.MarshalTo(dAtA[i:])
|
|
|
+ if err != nil {
|
|
|
+ return 0, err
|
|
|
+ }
|
|
|
+ i += n5
|
|
|
+ }
|
|
|
+ if len(m.Hugetlb) > 0 {
|
|
|
+ for _, msg := range m.Hugetlb {
|
|
|
+ dAtA[i] = 0x3a
|
|
|
+ i++
|
|
|
+ i = encodeVarintMetrics(dAtA, i, uint64(msg.Size()))
|
|
|
+ n, err := msg.MarshalTo(dAtA[i:])
|
|
|
+ if err != nil {
|
|
|
+ return 0, err
|
|
|
+ }
|
|
|
+ i += n
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if m.XXX_unrecognized != nil {
|
|
|
+ i += copy(dAtA[i:], m.XXX_unrecognized)
|
|
|
+ }
|
|
|
+ return i, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (m *PidsStat) Marshal() (dAtA []byte, err error) {
|
|
|
+ size := m.Size()
|
|
|
+ dAtA = make([]byte, size)
|
|
|
+ n, err := m.MarshalTo(dAtA)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ return dAtA[:n], nil
|
|
|
+}
|
|
|
+
|
|
|
+func (m *PidsStat) MarshalTo(dAtA []byte) (int, error) {
|
|
|
+ var i int
|
|
|
+ _ = i
|
|
|
+ var l int
|
|
|
+ _ = l
|
|
|
+ if m.Current != 0 {
|
|
|
+ dAtA[i] = 0x8
|
|
|
+ i++
|
|
|
+ i = encodeVarintMetrics(dAtA, i, uint64(m.Current))
|
|
|
+ }
|
|
|
+ if m.Limit != 0 {
|
|
|
+ dAtA[i] = 0x10
|
|
|
+ i++
|
|
|
+ i = encodeVarintMetrics(dAtA, i, uint64(m.Limit))
|
|
|
+ }
|
|
|
+ if m.XXX_unrecognized != nil {
|
|
|
+ i += copy(dAtA[i:], m.XXX_unrecognized)
|
|
|
+ }
|
|
|
+ return i, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (m *CPUStat) Marshal() (dAtA []byte, err error) {
|
|
|
+ size := m.Size()
|
|
|
+ dAtA = make([]byte, size)
|
|
|
+ n, err := m.MarshalTo(dAtA)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ return dAtA[:n], nil
|
|
|
+}
|
|
|
+
|
|
|
+func (m *CPUStat) MarshalTo(dAtA []byte) (int, error) {
|
|
|
+ var i int
|
|
|
+ _ = i
|
|
|
+ var l int
|
|
|
+ _ = l
|
|
|
+ if m.UsageUsec != 0 {
|
|
|
+ dAtA[i] = 0x8
|
|
|
+ i++
|
|
|
+ i = encodeVarintMetrics(dAtA, i, uint64(m.UsageUsec))
|
|
|
+ }
|
|
|
+ if m.UserUsec != 0 {
|
|
|
+ dAtA[i] = 0x10
|
|
|
+ i++
|
|
|
+ i = encodeVarintMetrics(dAtA, i, uint64(m.UserUsec))
|
|
|
+ }
|
|
|
+ if m.SystemUsec != 0 {
|
|
|
+ dAtA[i] = 0x18
|
|
|
+ i++
|
|
|
+ i = encodeVarintMetrics(dAtA, i, uint64(m.SystemUsec))
|
|
|
+ }
|
|
|
+ if m.NrPeriods != 0 {
|
|
|
+ dAtA[i] = 0x20
|
|
|
+ i++
|
|
|
+ i = encodeVarintMetrics(dAtA, i, uint64(m.NrPeriods))
|
|
|
+ }
|
|
|
+ if m.NrThrottled != 0 {
|
|
|
+ dAtA[i] = 0x28
|
|
|
+ i++
|
|
|
+ i = encodeVarintMetrics(dAtA, i, uint64(m.NrThrottled))
|
|
|
+ }
|
|
|
+ if m.ThrottledUsec != 0 {
|
|
|
+ dAtA[i] = 0x30
|
|
|
+ i++
|
|
|
+ i = encodeVarintMetrics(dAtA, i, uint64(m.ThrottledUsec))
|
|
|
+ }
|
|
|
+ if m.XXX_unrecognized != nil {
|
|
|
+ i += copy(dAtA[i:], m.XXX_unrecognized)
|
|
|
+ }
|
|
|
+ return i, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (m *MemoryStat) Marshal() (dAtA []byte, err error) {
|
|
|
+ size := m.Size()
|
|
|
+ dAtA = make([]byte, size)
|
|
|
+ n, err := m.MarshalTo(dAtA)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ return dAtA[:n], nil
|
|
|
+}
|
|
|
+
|
|
|
+func (m *MemoryStat) MarshalTo(dAtA []byte) (int, error) {
|
|
|
+ var i int
|
|
|
+ _ = i
|
|
|
+ var l int
|
|
|
+ _ = l
|
|
|
+ if m.Anon != 0 {
|
|
|
+ dAtA[i] = 0x8
|
|
|
+ i++
|
|
|
+ i = encodeVarintMetrics(dAtA, i, uint64(m.Anon))
|
|
|
+ }
|
|
|
+ if m.File != 0 {
|
|
|
+ dAtA[i] = 0x10
|
|
|
+ i++
|
|
|
+ i = encodeVarintMetrics(dAtA, i, uint64(m.File))
|
|
|
+ }
|
|
|
+ if m.KernelStack != 0 {
|
|
|
+ dAtA[i] = 0x18
|
|
|
+ i++
|
|
|
+ i = encodeVarintMetrics(dAtA, i, uint64(m.KernelStack))
|
|
|
+ }
|
|
|
+ if m.Slab != 0 {
|
|
|
+ dAtA[i] = 0x20
|
|
|
+ i++
|
|
|
+ i = encodeVarintMetrics(dAtA, i, uint64(m.Slab))
|
|
|
+ }
|
|
|
+ if m.Sock != 0 {
|
|
|
+ dAtA[i] = 0x28
|
|
|
+ i++
|
|
|
+ i = encodeVarintMetrics(dAtA, i, uint64(m.Sock))
|
|
|
+ }
|
|
|
+ if m.Shmem != 0 {
|
|
|
+ dAtA[i] = 0x30
|
|
|
+ i++
|
|
|
+ i = encodeVarintMetrics(dAtA, i, uint64(m.Shmem))
|
|
|
+ }
|
|
|
+ if m.FileMapped != 0 {
|
|
|
+ dAtA[i] = 0x38
|
|
|
+ i++
|
|
|
+ i = encodeVarintMetrics(dAtA, i, uint64(m.FileMapped))
|
|
|
+ }
|
|
|
+ if m.FileDirty != 0 {
|
|
|
+ dAtA[i] = 0x40
|
|
|
+ i++
|
|
|
+ i = encodeVarintMetrics(dAtA, i, uint64(m.FileDirty))
|
|
|
+ }
|
|
|
+ if m.FileWriteback != 0 {
|
|
|
+ dAtA[i] = 0x48
|
|
|
+ i++
|
|
|
+ i = encodeVarintMetrics(dAtA, i, uint64(m.FileWriteback))
|
|
|
+ }
|
|
|
+ if m.AnonThp != 0 {
|
|
|
+ dAtA[i] = 0x50
|
|
|
+ i++
|
|
|
+ i = encodeVarintMetrics(dAtA, i, uint64(m.AnonThp))
|
|
|
+ }
|
|
|
+ if m.InactiveAnon != 0 {
|
|
|
+ dAtA[i] = 0x58
|
|
|
+ i++
|
|
|
+ i = encodeVarintMetrics(dAtA, i, uint64(m.InactiveAnon))
|
|
|
+ }
|
|
|
+ if m.ActiveAnon != 0 {
|
|
|
+ dAtA[i] = 0x60
|
|
|
+ i++
|
|
|
+ i = encodeVarintMetrics(dAtA, i, uint64(m.ActiveAnon))
|
|
|
+ }
|
|
|
+ if m.InactiveFile != 0 {
|
|
|
+ dAtA[i] = 0x68
|
|
|
+ i++
|
|
|
+ i = encodeVarintMetrics(dAtA, i, uint64(m.InactiveFile))
|
|
|
+ }
|
|
|
+ if m.ActiveFile != 0 {
|
|
|
+ dAtA[i] = 0x70
|
|
|
+ i++
|
|
|
+ i = encodeVarintMetrics(dAtA, i, uint64(m.ActiveFile))
|
|
|
+ }
|
|
|
+ if m.Unevictable != 0 {
|
|
|
+ dAtA[i] = 0x78
|
|
|
+ i++
|
|
|
+ i = encodeVarintMetrics(dAtA, i, uint64(m.Unevictable))
|
|
|
+ }
|
|
|
+ if m.SlabReclaimable != 0 {
|
|
|
+ dAtA[i] = 0x80
|
|
|
+ i++
|
|
|
+ dAtA[i] = 0x1
|
|
|
+ i++
|
|
|
+ i = encodeVarintMetrics(dAtA, i, uint64(m.SlabReclaimable))
|
|
|
+ }
|
|
|
+ if m.SlabUnreclaimable != 0 {
|
|
|
+ dAtA[i] = 0x88
|
|
|
+ i++
|
|
|
+ dAtA[i] = 0x1
|
|
|
+ i++
|
|
|
+ i = encodeVarintMetrics(dAtA, i, uint64(m.SlabUnreclaimable))
|
|
|
+ }
|
|
|
+ if m.Pgfault != 0 {
|
|
|
+ dAtA[i] = 0x90
|
|
|
+ i++
|
|
|
+ dAtA[i] = 0x1
|
|
|
+ i++
|
|
|
+ i = encodeVarintMetrics(dAtA, i, uint64(m.Pgfault))
|
|
|
+ }
|
|
|
+ if m.Pgmajfault != 0 {
|
|
|
+ dAtA[i] = 0x98
|
|
|
+ i++
|
|
|
+ dAtA[i] = 0x1
|
|
|
+ i++
|
|
|
+ i = encodeVarintMetrics(dAtA, i, uint64(m.Pgmajfault))
|
|
|
+ }
|
|
|
+ if m.WorkingsetRefault != 0 {
|
|
|
+ dAtA[i] = 0xa0
|
|
|
+ i++
|
|
|
+ dAtA[i] = 0x1
|
|
|
+ i++
|
|
|
+ i = encodeVarintMetrics(dAtA, i, uint64(m.WorkingsetRefault))
|
|
|
+ }
|
|
|
+ if m.WorkingsetActivate != 0 {
|
|
|
+ dAtA[i] = 0xa8
|
|
|
+ i++
|
|
|
+ dAtA[i] = 0x1
|
|
|
+ i++
|
|
|
+ i = encodeVarintMetrics(dAtA, i, uint64(m.WorkingsetActivate))
|
|
|
+ }
|
|
|
+ if m.WorkingsetNodereclaim != 0 {
|
|
|
+ dAtA[i] = 0xb0
|
|
|
+ i++
|
|
|
+ dAtA[i] = 0x1
|
|
|
+ i++
|
|
|
+ i = encodeVarintMetrics(dAtA, i, uint64(m.WorkingsetNodereclaim))
|
|
|
+ }
|
|
|
+ if m.Pgrefill != 0 {
|
|
|
+ dAtA[i] = 0xb8
|
|
|
+ i++
|
|
|
+ dAtA[i] = 0x1
|
|
|
+ i++
|
|
|
+ i = encodeVarintMetrics(dAtA, i, uint64(m.Pgrefill))
|
|
|
+ }
|
|
|
+ if m.Pgscan != 0 {
|
|
|
+ dAtA[i] = 0xc0
|
|
|
+ i++
|
|
|
+ dAtA[i] = 0x1
|
|
|
+ i++
|
|
|
+ i = encodeVarintMetrics(dAtA, i, uint64(m.Pgscan))
|
|
|
+ }
|
|
|
+ if m.Pgsteal != 0 {
|
|
|
+ dAtA[i] = 0xc8
|
|
|
+ i++
|
|
|
+ dAtA[i] = 0x1
|
|
|
+ i++
|
|
|
+ i = encodeVarintMetrics(dAtA, i, uint64(m.Pgsteal))
|
|
|
+ }
|
|
|
+ if m.Pgactivate != 0 {
|
|
|
+ dAtA[i] = 0xd0
|
|
|
+ i++
|
|
|
+ dAtA[i] = 0x1
|
|
|
+ i++
|
|
|
+ i = encodeVarintMetrics(dAtA, i, uint64(m.Pgactivate))
|
|
|
+ }
|
|
|
+ if m.Pgdeactivate != 0 {
|
|
|
+ dAtA[i] = 0xd8
|
|
|
+ i++
|
|
|
+ dAtA[i] = 0x1
|
|
|
+ i++
|
|
|
+ i = encodeVarintMetrics(dAtA, i, uint64(m.Pgdeactivate))
|
|
|
+ }
|
|
|
+ if m.Pglazyfree != 0 {
|
|
|
+ dAtA[i] = 0xe0
|
|
|
+ i++
|
|
|
+ dAtA[i] = 0x1
|
|
|
+ i++
|
|
|
+ i = encodeVarintMetrics(dAtA, i, uint64(m.Pglazyfree))
|
|
|
+ }
|
|
|
+ if m.Pglazyfreed != 0 {
|
|
|
+ dAtA[i] = 0xe8
|
|
|
+ i++
|
|
|
+ dAtA[i] = 0x1
|
|
|
+ i++
|
|
|
+ i = encodeVarintMetrics(dAtA, i, uint64(m.Pglazyfreed))
|
|
|
+ }
|
|
|
+ if m.ThpFaultAlloc != 0 {
|
|
|
+ dAtA[i] = 0xf0
|
|
|
+ i++
|
|
|
+ dAtA[i] = 0x1
|
|
|
+ i++
|
|
|
+ i = encodeVarintMetrics(dAtA, i, uint64(m.ThpFaultAlloc))
|
|
|
+ }
|
|
|
+ if m.ThpCollapseAlloc != 0 {
|
|
|
+ dAtA[i] = 0xf8
|
|
|
+ i++
|
|
|
+ dAtA[i] = 0x1
|
|
|
+ i++
|
|
|
+ i = encodeVarintMetrics(dAtA, i, uint64(m.ThpCollapseAlloc))
|
|
|
+ }
|
|
|
+ if m.Usage != 0 {
|
|
|
+ dAtA[i] = 0x80
|
|
|
+ i++
|
|
|
+ dAtA[i] = 0x2
|
|
|
+ i++
|
|
|
+ i = encodeVarintMetrics(dAtA, i, uint64(m.Usage))
|
|
|
+ }
|
|
|
+ if m.UsageLimit != 0 {
|
|
|
+ dAtA[i] = 0x88
|
|
|
+ i++
|
|
|
+ dAtA[i] = 0x2
|
|
|
+ i++
|
|
|
+ i = encodeVarintMetrics(dAtA, i, uint64(m.UsageLimit))
|
|
|
+ }
|
|
|
+ if m.SwapUsage != 0 {
|
|
|
+ dAtA[i] = 0x90
|
|
|
+ i++
|
|
|
+ dAtA[i] = 0x2
|
|
|
+ i++
|
|
|
+ i = encodeVarintMetrics(dAtA, i, uint64(m.SwapUsage))
|
|
|
+ }
|
|
|
+ if m.SwapLimit != 0 {
|
|
|
+ dAtA[i] = 0x98
|
|
|
+ i++
|
|
|
+ dAtA[i] = 0x2
|
|
|
+ i++
|
|
|
+ i = encodeVarintMetrics(dAtA, i, uint64(m.SwapLimit))
|
|
|
+ }
|
|
|
+ if m.XXX_unrecognized != nil {
|
|
|
+ i += copy(dAtA[i:], m.XXX_unrecognized)
|
|
|
+ }
|
|
|
+ return i, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (m *RdmaStat) Marshal() (dAtA []byte, err error) {
|
|
|
+ size := m.Size()
|
|
|
+ dAtA = make([]byte, size)
|
|
|
+ n, err := m.MarshalTo(dAtA)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ return dAtA[:n], nil
|
|
|
+}
|
|
|
+
|
|
|
+func (m *RdmaStat) MarshalTo(dAtA []byte) (int, error) {
|
|
|
+ var i int
|
|
|
+ _ = i
|
|
|
+ var l int
|
|
|
+ _ = l
|
|
|
+ if len(m.Current) > 0 {
|
|
|
+ for _, msg := range m.Current {
|
|
|
+ dAtA[i] = 0xa
|
|
|
+ i++
|
|
|
+ i = encodeVarintMetrics(dAtA, i, uint64(msg.Size()))
|
|
|
+ n, err := msg.MarshalTo(dAtA[i:])
|
|
|
+ if err != nil {
|
|
|
+ return 0, err
|
|
|
+ }
|
|
|
+ i += n
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if len(m.Limit) > 0 {
|
|
|
+ for _, msg := range m.Limit {
|
|
|
+ dAtA[i] = 0x12
|
|
|
+ i++
|
|
|
+ i = encodeVarintMetrics(dAtA, i, uint64(msg.Size()))
|
|
|
+ n, err := msg.MarshalTo(dAtA[i:])
|
|
|
+ if err != nil {
|
|
|
+ return 0, err
|
|
|
+ }
|
|
|
+ i += n
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if m.XXX_unrecognized != nil {
|
|
|
+ i += copy(dAtA[i:], m.XXX_unrecognized)
|
|
|
+ }
|
|
|
+ return i, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (m *RdmaEntry) Marshal() (dAtA []byte, err error) {
|
|
|
+ size := m.Size()
|
|
|
+ dAtA = make([]byte, size)
|
|
|
+ n, err := m.MarshalTo(dAtA)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ return dAtA[:n], nil
|
|
|
+}
|
|
|
+
|
|
|
+func (m *RdmaEntry) MarshalTo(dAtA []byte) (int, error) {
|
|
|
+ var i int
|
|
|
+ _ = i
|
|
|
+ var l int
|
|
|
+ _ = l
|
|
|
+ if len(m.Device) > 0 {
|
|
|
+ dAtA[i] = 0xa
|
|
|
+ i++
|
|
|
+ i = encodeVarintMetrics(dAtA, i, uint64(len(m.Device)))
|
|
|
+ i += copy(dAtA[i:], m.Device)
|
|
|
+ }
|
|
|
+ if m.HcaHandles != 0 {
|
|
|
+ dAtA[i] = 0x10
|
|
|
+ i++
|
|
|
+ i = encodeVarintMetrics(dAtA, i, uint64(m.HcaHandles))
|
|
|
+ }
|
|
|
+ if m.HcaObjects != 0 {
|
|
|
+ dAtA[i] = 0x18
|
|
|
+ i++
|
|
|
+ i = encodeVarintMetrics(dAtA, i, uint64(m.HcaObjects))
|
|
|
+ }
|
|
|
+ if m.XXX_unrecognized != nil {
|
|
|
+ i += copy(dAtA[i:], m.XXX_unrecognized)
|
|
|
+ }
|
|
|
+ return i, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (m *IOStat) Marshal() (dAtA []byte, err error) {
|
|
|
+ size := m.Size()
|
|
|
+ dAtA = make([]byte, size)
|
|
|
+ n, err := m.MarshalTo(dAtA)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ return dAtA[:n], nil
|
|
|
+}
|
|
|
+
|
|
|
+func (m *IOStat) MarshalTo(dAtA []byte) (int, error) {
|
|
|
+ var i int
|
|
|
+ _ = i
|
|
|
+ var l int
|
|
|
+ _ = l
|
|
|
+ if len(m.Usage) > 0 {
|
|
|
+ for _, msg := range m.Usage {
|
|
|
+ dAtA[i] = 0xa
|
|
|
+ i++
|
|
|
+ i = encodeVarintMetrics(dAtA, i, uint64(msg.Size()))
|
|
|
+ n, err := msg.MarshalTo(dAtA[i:])
|
|
|
+ if err != nil {
|
|
|
+ return 0, err
|
|
|
+ }
|
|
|
+ i += n
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if m.XXX_unrecognized != nil {
|
|
|
+ i += copy(dAtA[i:], m.XXX_unrecognized)
|
|
|
+ }
|
|
|
+ return i, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (m *IOEntry) Marshal() (dAtA []byte, err error) {
|
|
|
+ size := m.Size()
|
|
|
+ dAtA = make([]byte, size)
|
|
|
+ n, err := m.MarshalTo(dAtA)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ return dAtA[:n], nil
|
|
|
+}
|
|
|
+
|
|
|
+func (m *IOEntry) MarshalTo(dAtA []byte) (int, error) {
|
|
|
+ var i int
|
|
|
+ _ = i
|
|
|
+ var l int
|
|
|
+ _ = l
|
|
|
+ if m.Major != 0 {
|
|
|
+ dAtA[i] = 0x8
|
|
|
+ i++
|
|
|
+ i = encodeVarintMetrics(dAtA, i, uint64(m.Major))
|
|
|
+ }
|
|
|
+ if m.Minor != 0 {
|
|
|
+ dAtA[i] = 0x10
|
|
|
+ i++
|
|
|
+ i = encodeVarintMetrics(dAtA, i, uint64(m.Minor))
|
|
|
+ }
|
|
|
+ if m.Rbytes != 0 {
|
|
|
+ dAtA[i] = 0x18
|
|
|
+ i++
|
|
|
+ i = encodeVarintMetrics(dAtA, i, uint64(m.Rbytes))
|
|
|
+ }
|
|
|
+ if m.Wbytes != 0 {
|
|
|
+ dAtA[i] = 0x20
|
|
|
+ i++
|
|
|
+ i = encodeVarintMetrics(dAtA, i, uint64(m.Wbytes))
|
|
|
+ }
|
|
|
+ if m.Rios != 0 {
|
|
|
+ dAtA[i] = 0x28
|
|
|
+ i++
|
|
|
+ i = encodeVarintMetrics(dAtA, i, uint64(m.Rios))
|
|
|
+ }
|
|
|
+ if m.Wios != 0 {
|
|
|
+ dAtA[i] = 0x30
|
|
|
+ i++
|
|
|
+ i = encodeVarintMetrics(dAtA, i, uint64(m.Wios))
|
|
|
+ }
|
|
|
+ if m.XXX_unrecognized != nil {
|
|
|
+ i += copy(dAtA[i:], m.XXX_unrecognized)
|
|
|
+ }
|
|
|
+ return i, nil
|
|
|
+}
|
|
|
+
|
|
|
+func (m *HugeTlbStat) Marshal() (dAtA []byte, err error) {
|
|
|
+ size := m.Size()
|
|
|
+ dAtA = make([]byte, size)
|
|
|
+ n, err := m.MarshalTo(dAtA)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ return dAtA[:n], nil
|
|
|
+}
|
|
|
+
|
|
|
+func (m *HugeTlbStat) MarshalTo(dAtA []byte) (int, error) {
|
|
|
+ var i int
|
|
|
+ _ = i
|
|
|
+ var l int
|
|
|
+ _ = l
|
|
|
+ if m.Current != 0 {
|
|
|
+ dAtA[i] = 0x8
|
|
|
+ i++
|
|
|
+ i = encodeVarintMetrics(dAtA, i, uint64(m.Current))
|
|
|
+ }
|
|
|
+ if m.Max != 0 {
|
|
|
+ dAtA[i] = 0x10
|
|
|
+ i++
|
|
|
+ i = encodeVarintMetrics(dAtA, i, uint64(m.Max))
|
|
|
+ }
|
|
|
+ if len(m.Pagesize) > 0 {
|
|
|
+ dAtA[i] = 0x1a
|
|
|
+ i++
|
|
|
+ i = encodeVarintMetrics(dAtA, i, uint64(len(m.Pagesize)))
|
|
|
+ i += copy(dAtA[i:], m.Pagesize)
|
|
|
+ }
|
|
|
+ if m.XXX_unrecognized != nil {
|
|
|
+ i += copy(dAtA[i:], m.XXX_unrecognized)
|
|
|
+ }
|
|
|
+ return i, nil
|
|
|
+}
|
|
|
+
|
|
|
+func encodeVarintMetrics(dAtA []byte, offset int, v uint64) int {
|
|
|
+ for v >= 1<<7 {
|
|
|
+ dAtA[offset] = uint8(v&0x7f | 0x80)
|
|
|
+ v >>= 7
|
|
|
+ offset++
|
|
|
+ }
|
|
|
+ dAtA[offset] = uint8(v)
|
|
|
+ return offset + 1
|
|
|
+}
|
|
|
+func (m *Metrics) Size() (n int) {
|
|
|
+ if m == nil {
|
|
|
+ return 0
|
|
|
+ }
|
|
|
+ var l int
|
|
|
+ _ = l
|
|
|
+ if m.Pids != nil {
|
|
|
+ l = m.Pids.Size()
|
|
|
+ n += 1 + l + sovMetrics(uint64(l))
|
|
|
+ }
|
|
|
+ if m.CPU != nil {
|
|
|
+ l = m.CPU.Size()
|
|
|
+ n += 1 + l + sovMetrics(uint64(l))
|
|
|
+ }
|
|
|
+ if m.Memory != nil {
|
|
|
+ l = m.Memory.Size()
|
|
|
+ n += 1 + l + sovMetrics(uint64(l))
|
|
|
+ }
|
|
|
+ if m.Rdma != nil {
|
|
|
+ l = m.Rdma.Size()
|
|
|
+ n += 1 + l + sovMetrics(uint64(l))
|
|
|
+ }
|
|
|
+ if m.Io != nil {
|
|
|
+ l = m.Io.Size()
|
|
|
+ n += 1 + l + sovMetrics(uint64(l))
|
|
|
+ }
|
|
|
+ if len(m.Hugetlb) > 0 {
|
|
|
+ for _, e := range m.Hugetlb {
|
|
|
+ l = e.Size()
|
|
|
+ n += 1 + l + sovMetrics(uint64(l))
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if m.XXX_unrecognized != nil {
|
|
|
+ n += len(m.XXX_unrecognized)
|
|
|
+ }
|
|
|
+ return n
|
|
|
+}
|
|
|
+
|
|
|
+func (m *PidsStat) Size() (n int) {
|
|
|
+ if m == nil {
|
|
|
+ return 0
|
|
|
+ }
|
|
|
+ var l int
|
|
|
+ _ = l
|
|
|
+ if m.Current != 0 {
|
|
|
+ n += 1 + sovMetrics(uint64(m.Current))
|
|
|
+ }
|
|
|
+ if m.Limit != 0 {
|
|
|
+ n += 1 + sovMetrics(uint64(m.Limit))
|
|
|
+ }
|
|
|
+ if m.XXX_unrecognized != nil {
|
|
|
+ n += len(m.XXX_unrecognized)
|
|
|
+ }
|
|
|
+ return n
|
|
|
+}
|
|
|
+
|
|
|
+func (m *CPUStat) Size() (n int) {
|
|
|
+ if m == nil {
|
|
|
+ return 0
|
|
|
+ }
|
|
|
+ var l int
|
|
|
+ _ = l
|
|
|
+ if m.UsageUsec != 0 {
|
|
|
+ n += 1 + sovMetrics(uint64(m.UsageUsec))
|
|
|
+ }
|
|
|
+ if m.UserUsec != 0 {
|
|
|
+ n += 1 + sovMetrics(uint64(m.UserUsec))
|
|
|
+ }
|
|
|
+ if m.SystemUsec != 0 {
|
|
|
+ n += 1 + sovMetrics(uint64(m.SystemUsec))
|
|
|
+ }
|
|
|
+ if m.NrPeriods != 0 {
|
|
|
+ n += 1 + sovMetrics(uint64(m.NrPeriods))
|
|
|
+ }
|
|
|
+ if m.NrThrottled != 0 {
|
|
|
+ n += 1 + sovMetrics(uint64(m.NrThrottled))
|
|
|
+ }
|
|
|
+ if m.ThrottledUsec != 0 {
|
|
|
+ n += 1 + sovMetrics(uint64(m.ThrottledUsec))
|
|
|
+ }
|
|
|
+ if m.XXX_unrecognized != nil {
|
|
|
+ n += len(m.XXX_unrecognized)
|
|
|
+ }
|
|
|
+ return n
|
|
|
+}
|
|
|
+
|
|
|
+func (m *MemoryStat) Size() (n int) {
|
|
|
+ if m == nil {
|
|
|
+ return 0
|
|
|
+ }
|
|
|
+ var l int
|
|
|
+ _ = l
|
|
|
+ if m.Anon != 0 {
|
|
|
+ n += 1 + sovMetrics(uint64(m.Anon))
|
|
|
+ }
|
|
|
+ if m.File != 0 {
|
|
|
+ n += 1 + sovMetrics(uint64(m.File))
|
|
|
+ }
|
|
|
+ if m.KernelStack != 0 {
|
|
|
+ n += 1 + sovMetrics(uint64(m.KernelStack))
|
|
|
+ }
|
|
|
+ if m.Slab != 0 {
|
|
|
+ n += 1 + sovMetrics(uint64(m.Slab))
|
|
|
+ }
|
|
|
+ if m.Sock != 0 {
|
|
|
+ n += 1 + sovMetrics(uint64(m.Sock))
|
|
|
+ }
|
|
|
+ if m.Shmem != 0 {
|
|
|
+ n += 1 + sovMetrics(uint64(m.Shmem))
|
|
|
+ }
|
|
|
+ if m.FileMapped != 0 {
|
|
|
+ n += 1 + sovMetrics(uint64(m.FileMapped))
|
|
|
+ }
|
|
|
+ if m.FileDirty != 0 {
|
|
|
+ n += 1 + sovMetrics(uint64(m.FileDirty))
|
|
|
+ }
|
|
|
+ if m.FileWriteback != 0 {
|
|
|
+ n += 1 + sovMetrics(uint64(m.FileWriteback))
|
|
|
+ }
|
|
|
+ if m.AnonThp != 0 {
|
|
|
+ n += 1 + sovMetrics(uint64(m.AnonThp))
|
|
|
+ }
|
|
|
+ if m.InactiveAnon != 0 {
|
|
|
+ n += 1 + sovMetrics(uint64(m.InactiveAnon))
|
|
|
+ }
|
|
|
+ if m.ActiveAnon != 0 {
|
|
|
+ n += 1 + sovMetrics(uint64(m.ActiveAnon))
|
|
|
+ }
|
|
|
+ if m.InactiveFile != 0 {
|
|
|
+ n += 1 + sovMetrics(uint64(m.InactiveFile))
|
|
|
+ }
|
|
|
+ if m.ActiveFile != 0 {
|
|
|
+ n += 1 + sovMetrics(uint64(m.ActiveFile))
|
|
|
+ }
|
|
|
+ if m.Unevictable != 0 {
|
|
|
+ n += 1 + sovMetrics(uint64(m.Unevictable))
|
|
|
+ }
|
|
|
+ if m.SlabReclaimable != 0 {
|
|
|
+ n += 2 + sovMetrics(uint64(m.SlabReclaimable))
|
|
|
+ }
|
|
|
+ if m.SlabUnreclaimable != 0 {
|
|
|
+ n += 2 + sovMetrics(uint64(m.SlabUnreclaimable))
|
|
|
+ }
|
|
|
+ if m.Pgfault != 0 {
|
|
|
+ n += 2 + sovMetrics(uint64(m.Pgfault))
|
|
|
+ }
|
|
|
+ if m.Pgmajfault != 0 {
|
|
|
+ n += 2 + sovMetrics(uint64(m.Pgmajfault))
|
|
|
+ }
|
|
|
+ if m.WorkingsetRefault != 0 {
|
|
|
+ n += 2 + sovMetrics(uint64(m.WorkingsetRefault))
|
|
|
+ }
|
|
|
+ if m.WorkingsetActivate != 0 {
|
|
|
+ n += 2 + sovMetrics(uint64(m.WorkingsetActivate))
|
|
|
+ }
|
|
|
+ if m.WorkingsetNodereclaim != 0 {
|
|
|
+ n += 2 + sovMetrics(uint64(m.WorkingsetNodereclaim))
|
|
|
+ }
|
|
|
+ if m.Pgrefill != 0 {
|
|
|
+ n += 2 + sovMetrics(uint64(m.Pgrefill))
|
|
|
+ }
|
|
|
+ if m.Pgscan != 0 {
|
|
|
+ n += 2 + sovMetrics(uint64(m.Pgscan))
|
|
|
+ }
|
|
|
+ if m.Pgsteal != 0 {
|
|
|
+ n += 2 + sovMetrics(uint64(m.Pgsteal))
|
|
|
+ }
|
|
|
+ if m.Pgactivate != 0 {
|
|
|
+ n += 2 + sovMetrics(uint64(m.Pgactivate))
|
|
|
+ }
|
|
|
+ if m.Pgdeactivate != 0 {
|
|
|
+ n += 2 + sovMetrics(uint64(m.Pgdeactivate))
|
|
|
+ }
|
|
|
+ if m.Pglazyfree != 0 {
|
|
|
+ n += 2 + sovMetrics(uint64(m.Pglazyfree))
|
|
|
+ }
|
|
|
+ if m.Pglazyfreed != 0 {
|
|
|
+ n += 2 + sovMetrics(uint64(m.Pglazyfreed))
|
|
|
+ }
|
|
|
+ if m.ThpFaultAlloc != 0 {
|
|
|
+ n += 2 + sovMetrics(uint64(m.ThpFaultAlloc))
|
|
|
+ }
|
|
|
+ if m.ThpCollapseAlloc != 0 {
|
|
|
+ n += 2 + sovMetrics(uint64(m.ThpCollapseAlloc))
|
|
|
+ }
|
|
|
+ if m.Usage != 0 {
|
|
|
+ n += 2 + sovMetrics(uint64(m.Usage))
|
|
|
+ }
|
|
|
+ if m.UsageLimit != 0 {
|
|
|
+ n += 2 + sovMetrics(uint64(m.UsageLimit))
|
|
|
+ }
|
|
|
+ if m.SwapUsage != 0 {
|
|
|
+ n += 2 + sovMetrics(uint64(m.SwapUsage))
|
|
|
+ }
|
|
|
+ if m.SwapLimit != 0 {
|
|
|
+ n += 2 + sovMetrics(uint64(m.SwapLimit))
|
|
|
+ }
|
|
|
+ if m.XXX_unrecognized != nil {
|
|
|
+ n += len(m.XXX_unrecognized)
|
|
|
+ }
|
|
|
+ return n
|
|
|
+}
|
|
|
+
|
|
|
+func (m *RdmaStat) Size() (n int) {
|
|
|
+ if m == nil {
|
|
|
+ return 0
|
|
|
+ }
|
|
|
+ var l int
|
|
|
+ _ = l
|
|
|
+ if len(m.Current) > 0 {
|
|
|
+ for _, e := range m.Current {
|
|
|
+ l = e.Size()
|
|
|
+ n += 1 + l + sovMetrics(uint64(l))
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if len(m.Limit) > 0 {
|
|
|
+ for _, e := range m.Limit {
|
|
|
+ l = e.Size()
|
|
|
+ n += 1 + l + sovMetrics(uint64(l))
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if m.XXX_unrecognized != nil {
|
|
|
+ n += len(m.XXX_unrecognized)
|
|
|
+ }
|
|
|
+ return n
|
|
|
+}
|
|
|
+
|
|
|
+func (m *RdmaEntry) Size() (n int) {
|
|
|
+ if m == nil {
|
|
|
+ return 0
|
|
|
+ }
|
|
|
+ var l int
|
|
|
+ _ = l
|
|
|
+ l = len(m.Device)
|
|
|
+ if l > 0 {
|
|
|
+ n += 1 + l + sovMetrics(uint64(l))
|
|
|
+ }
|
|
|
+ if m.HcaHandles != 0 {
|
|
|
+ n += 1 + sovMetrics(uint64(m.HcaHandles))
|
|
|
+ }
|
|
|
+ if m.HcaObjects != 0 {
|
|
|
+ n += 1 + sovMetrics(uint64(m.HcaObjects))
|
|
|
+ }
|
|
|
+ if m.XXX_unrecognized != nil {
|
|
|
+ n += len(m.XXX_unrecognized)
|
|
|
+ }
|
|
|
+ return n
|
|
|
+}
|
|
|
+
|
|
|
+func (m *IOStat) Size() (n int) {
|
|
|
+ if m == nil {
|
|
|
+ return 0
|
|
|
+ }
|
|
|
+ var l int
|
|
|
+ _ = l
|
|
|
+ if len(m.Usage) > 0 {
|
|
|
+ for _, e := range m.Usage {
|
|
|
+ l = e.Size()
|
|
|
+ n += 1 + l + sovMetrics(uint64(l))
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if m.XXX_unrecognized != nil {
|
|
|
+ n += len(m.XXX_unrecognized)
|
|
|
+ }
|
|
|
+ return n
|
|
|
+}
|
|
|
+
|
|
|
+func (m *IOEntry) Size() (n int) {
|
|
|
+ if m == nil {
|
|
|
+ return 0
|
|
|
+ }
|
|
|
+ var l int
|
|
|
+ _ = l
|
|
|
+ if m.Major != 0 {
|
|
|
+ n += 1 + sovMetrics(uint64(m.Major))
|
|
|
+ }
|
|
|
+ if m.Minor != 0 {
|
|
|
+ n += 1 + sovMetrics(uint64(m.Minor))
|
|
|
+ }
|
|
|
+ if m.Rbytes != 0 {
|
|
|
+ n += 1 + sovMetrics(uint64(m.Rbytes))
|
|
|
+ }
|
|
|
+ if m.Wbytes != 0 {
|
|
|
+ n += 1 + sovMetrics(uint64(m.Wbytes))
|
|
|
+ }
|
|
|
+ if m.Rios != 0 {
|
|
|
+ n += 1 + sovMetrics(uint64(m.Rios))
|
|
|
+ }
|
|
|
+ if m.Wios != 0 {
|
|
|
+ n += 1 + sovMetrics(uint64(m.Wios))
|
|
|
+ }
|
|
|
+ if m.XXX_unrecognized != nil {
|
|
|
+ n += len(m.XXX_unrecognized)
|
|
|
+ }
|
|
|
+ return n
|
|
|
+}
|
|
|
+
|
|
|
+func (m *HugeTlbStat) Size() (n int) {
|
|
|
+ if m == nil {
|
|
|
+ return 0
|
|
|
+ }
|
|
|
+ var l int
|
|
|
+ _ = l
|
|
|
+ if m.Current != 0 {
|
|
|
+ n += 1 + sovMetrics(uint64(m.Current))
|
|
|
+ }
|
|
|
+ if m.Max != 0 {
|
|
|
+ n += 1 + sovMetrics(uint64(m.Max))
|
|
|
+ }
|
|
|
+ l = len(m.Pagesize)
|
|
|
+ if l > 0 {
|
|
|
+ n += 1 + l + sovMetrics(uint64(l))
|
|
|
+ }
|
|
|
+ if m.XXX_unrecognized != nil {
|
|
|
+ n += len(m.XXX_unrecognized)
|
|
|
+ }
|
|
|
+ return n
|
|
|
+}
|
|
|
+
|
|
|
+func sovMetrics(x uint64) (n int) {
|
|
|
+ for {
|
|
|
+ n++
|
|
|
+ x >>= 7
|
|
|
+ if x == 0 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return n
|
|
|
+}
|
|
|
+func sozMetrics(x uint64) (n int) {
|
|
|
+ return sovMetrics(uint64((x << 1) ^ uint64((int64(x) >> 63))))
|
|
|
+}
|
|
|
+func (this *Metrics) String() string {
|
|
|
+ if this == nil {
|
|
|
+ return "nil"
|
|
|
+ }
|
|
|
+ s := strings.Join([]string{`&Metrics{`,
|
|
|
+ `Pids:` + strings.Replace(fmt.Sprintf("%v", this.Pids), "PidsStat", "PidsStat", 1) + `,`,
|
|
|
+ `CPU:` + strings.Replace(fmt.Sprintf("%v", this.CPU), "CPUStat", "CPUStat", 1) + `,`,
|
|
|
+ `Memory:` + strings.Replace(fmt.Sprintf("%v", this.Memory), "MemoryStat", "MemoryStat", 1) + `,`,
|
|
|
+ `Rdma:` + strings.Replace(fmt.Sprintf("%v", this.Rdma), "RdmaStat", "RdmaStat", 1) + `,`,
|
|
|
+ `Io:` + strings.Replace(fmt.Sprintf("%v", this.Io), "IOStat", "IOStat", 1) + `,`,
|
|
|
+ `Hugetlb:` + strings.Replace(fmt.Sprintf("%v", this.Hugetlb), "HugeTlbStat", "HugeTlbStat", 1) + `,`,
|
|
|
+ `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
|
|
|
+ `}`,
|
|
|
+ }, "")
|
|
|
+ return s
|
|
|
+}
|
|
|
+func (this *PidsStat) String() string {
|
|
|
+ if this == nil {
|
|
|
+ return "nil"
|
|
|
+ }
|
|
|
+ s := strings.Join([]string{`&PidsStat{`,
|
|
|
+ `Current:` + fmt.Sprintf("%v", this.Current) + `,`,
|
|
|
+ `Limit:` + fmt.Sprintf("%v", this.Limit) + `,`,
|
|
|
+ `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
|
|
|
+ `}`,
|
|
|
+ }, "")
|
|
|
+ return s
|
|
|
+}
|
|
|
+func (this *CPUStat) String() string {
|
|
|
+ if this == nil {
|
|
|
+ return "nil"
|
|
|
+ }
|
|
|
+ s := strings.Join([]string{`&CPUStat{`,
|
|
|
+ `UsageUsec:` + fmt.Sprintf("%v", this.UsageUsec) + `,`,
|
|
|
+ `UserUsec:` + fmt.Sprintf("%v", this.UserUsec) + `,`,
|
|
|
+ `SystemUsec:` + fmt.Sprintf("%v", this.SystemUsec) + `,`,
|
|
|
+ `NrPeriods:` + fmt.Sprintf("%v", this.NrPeriods) + `,`,
|
|
|
+ `NrThrottled:` + fmt.Sprintf("%v", this.NrThrottled) + `,`,
|
|
|
+ `ThrottledUsec:` + fmt.Sprintf("%v", this.ThrottledUsec) + `,`,
|
|
|
+ `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
|
|
|
+ `}`,
|
|
|
+ }, "")
|
|
|
+ return s
|
|
|
+}
|
|
|
+func (this *MemoryStat) String() string {
|
|
|
+ if this == nil {
|
|
|
+ return "nil"
|
|
|
+ }
|
|
|
+ s := strings.Join([]string{`&MemoryStat{`,
|
|
|
+ `Anon:` + fmt.Sprintf("%v", this.Anon) + `,`,
|
|
|
+ `File:` + fmt.Sprintf("%v", this.File) + `,`,
|
|
|
+ `KernelStack:` + fmt.Sprintf("%v", this.KernelStack) + `,`,
|
|
|
+ `Slab:` + fmt.Sprintf("%v", this.Slab) + `,`,
|
|
|
+ `Sock:` + fmt.Sprintf("%v", this.Sock) + `,`,
|
|
|
+ `Shmem:` + fmt.Sprintf("%v", this.Shmem) + `,`,
|
|
|
+ `FileMapped:` + fmt.Sprintf("%v", this.FileMapped) + `,`,
|
|
|
+ `FileDirty:` + fmt.Sprintf("%v", this.FileDirty) + `,`,
|
|
|
+ `FileWriteback:` + fmt.Sprintf("%v", this.FileWriteback) + `,`,
|
|
|
+ `AnonThp:` + fmt.Sprintf("%v", this.AnonThp) + `,`,
|
|
|
+ `InactiveAnon:` + fmt.Sprintf("%v", this.InactiveAnon) + `,`,
|
|
|
+ `ActiveAnon:` + fmt.Sprintf("%v", this.ActiveAnon) + `,`,
|
|
|
+ `InactiveFile:` + fmt.Sprintf("%v", this.InactiveFile) + `,`,
|
|
|
+ `ActiveFile:` + fmt.Sprintf("%v", this.ActiveFile) + `,`,
|
|
|
+ `Unevictable:` + fmt.Sprintf("%v", this.Unevictable) + `,`,
|
|
|
+ `SlabReclaimable:` + fmt.Sprintf("%v", this.SlabReclaimable) + `,`,
|
|
|
+ `SlabUnreclaimable:` + fmt.Sprintf("%v", this.SlabUnreclaimable) + `,`,
|
|
|
+ `Pgfault:` + fmt.Sprintf("%v", this.Pgfault) + `,`,
|
|
|
+ `Pgmajfault:` + fmt.Sprintf("%v", this.Pgmajfault) + `,`,
|
|
|
+ `WorkingsetRefault:` + fmt.Sprintf("%v", this.WorkingsetRefault) + `,`,
|
|
|
+ `WorkingsetActivate:` + fmt.Sprintf("%v", this.WorkingsetActivate) + `,`,
|
|
|
+ `WorkingsetNodereclaim:` + fmt.Sprintf("%v", this.WorkingsetNodereclaim) + `,`,
|
|
|
+ `Pgrefill:` + fmt.Sprintf("%v", this.Pgrefill) + `,`,
|
|
|
+ `Pgscan:` + fmt.Sprintf("%v", this.Pgscan) + `,`,
|
|
|
+ `Pgsteal:` + fmt.Sprintf("%v", this.Pgsteal) + `,`,
|
|
|
+ `Pgactivate:` + fmt.Sprintf("%v", this.Pgactivate) + `,`,
|
|
|
+ `Pgdeactivate:` + fmt.Sprintf("%v", this.Pgdeactivate) + `,`,
|
|
|
+ `Pglazyfree:` + fmt.Sprintf("%v", this.Pglazyfree) + `,`,
|
|
|
+ `Pglazyfreed:` + fmt.Sprintf("%v", this.Pglazyfreed) + `,`,
|
|
|
+ `ThpFaultAlloc:` + fmt.Sprintf("%v", this.ThpFaultAlloc) + `,`,
|
|
|
+ `ThpCollapseAlloc:` + fmt.Sprintf("%v", this.ThpCollapseAlloc) + `,`,
|
|
|
+ `Usage:` + fmt.Sprintf("%v", this.Usage) + `,`,
|
|
|
+ `UsageLimit:` + fmt.Sprintf("%v", this.UsageLimit) + `,`,
|
|
|
+ `SwapUsage:` + fmt.Sprintf("%v", this.SwapUsage) + `,`,
|
|
|
+ `SwapLimit:` + fmt.Sprintf("%v", this.SwapLimit) + `,`,
|
|
|
+ `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
|
|
|
+ `}`,
|
|
|
+ }, "")
|
|
|
+ return s
|
|
|
+}
|
|
|
+func (this *RdmaStat) String() string {
|
|
|
+ if this == nil {
|
|
|
+ return "nil"
|
|
|
+ }
|
|
|
+ s := strings.Join([]string{`&RdmaStat{`,
|
|
|
+ `Current:` + strings.Replace(fmt.Sprintf("%v", this.Current), "RdmaEntry", "RdmaEntry", 1) + `,`,
|
|
|
+ `Limit:` + strings.Replace(fmt.Sprintf("%v", this.Limit), "RdmaEntry", "RdmaEntry", 1) + `,`,
|
|
|
+ `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
|
|
|
+ `}`,
|
|
|
+ }, "")
|
|
|
+ return s
|
|
|
+}
|
|
|
+func (this *RdmaEntry) String() string {
|
|
|
+ if this == nil {
|
|
|
+ return "nil"
|
|
|
+ }
|
|
|
+ s := strings.Join([]string{`&RdmaEntry{`,
|
|
|
+ `Device:` + fmt.Sprintf("%v", this.Device) + `,`,
|
|
|
+ `HcaHandles:` + fmt.Sprintf("%v", this.HcaHandles) + `,`,
|
|
|
+ `HcaObjects:` + fmt.Sprintf("%v", this.HcaObjects) + `,`,
|
|
|
+ `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
|
|
|
+ `}`,
|
|
|
+ }, "")
|
|
|
+ return s
|
|
|
+}
|
|
|
+func (this *IOStat) String() string {
|
|
|
+ if this == nil {
|
|
|
+ return "nil"
|
|
|
+ }
|
|
|
+ s := strings.Join([]string{`&IOStat{`,
|
|
|
+ `Usage:` + strings.Replace(fmt.Sprintf("%v", this.Usage), "IOEntry", "IOEntry", 1) + `,`,
|
|
|
+ `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
|
|
|
+ `}`,
|
|
|
+ }, "")
|
|
|
+ return s
|
|
|
+}
|
|
|
+func (this *IOEntry) String() string {
|
|
|
+ if this == nil {
|
|
|
+ return "nil"
|
|
|
+ }
|
|
|
+ s := strings.Join([]string{`&IOEntry{`,
|
|
|
+ `Major:` + fmt.Sprintf("%v", this.Major) + `,`,
|
|
|
+ `Minor:` + fmt.Sprintf("%v", this.Minor) + `,`,
|
|
|
+ `Rbytes:` + fmt.Sprintf("%v", this.Rbytes) + `,`,
|
|
|
+ `Wbytes:` + fmt.Sprintf("%v", this.Wbytes) + `,`,
|
|
|
+ `Rios:` + fmt.Sprintf("%v", this.Rios) + `,`,
|
|
|
+ `Wios:` + fmt.Sprintf("%v", this.Wios) + `,`,
|
|
|
+ `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
|
|
|
+ `}`,
|
|
|
+ }, "")
|
|
|
+ return s
|
|
|
+}
|
|
|
+func (this *HugeTlbStat) String() string {
|
|
|
+ if this == nil {
|
|
|
+ return "nil"
|
|
|
+ }
|
|
|
+ s := strings.Join([]string{`&HugeTlbStat{`,
|
|
|
+ `Current:` + fmt.Sprintf("%v", this.Current) + `,`,
|
|
|
+ `Max:` + fmt.Sprintf("%v", this.Max) + `,`,
|
|
|
+ `Pagesize:` + fmt.Sprintf("%v", this.Pagesize) + `,`,
|
|
|
+ `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
|
|
|
+ `}`,
|
|
|
+ }, "")
|
|
|
+ return s
|
|
|
+}
|
|
|
+func valueToStringMetrics(v interface{}) string {
|
|
|
+ rv := reflect.ValueOf(v)
|
|
|
+ if rv.IsNil() {
|
|
|
+ return "nil"
|
|
|
+ }
|
|
|
+ pv := reflect.Indirect(rv).Interface()
|
|
|
+ return fmt.Sprintf("*%v", pv)
|
|
|
+}
|
|
|
+func (m *Metrics) Unmarshal(dAtA []byte) error {
|
|
|
+ l := len(dAtA)
|
|
|
+ iNdEx := 0
|
|
|
+ for iNdEx < l {
|
|
|
+ preIndex := iNdEx
|
|
|
+ var wire uint64
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowMetrics
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ wire |= uint64(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ fieldNum := int32(wire >> 3)
|
|
|
+ wireType := int(wire & 0x7)
|
|
|
+ if wireType == 4 {
|
|
|
+ return fmt.Errorf("proto: Metrics: wiretype end group for non-group")
|
|
|
+ }
|
|
|
+ if fieldNum <= 0 {
|
|
|
+ return fmt.Errorf("proto: Metrics: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
+ }
|
|
|
+ switch fieldNum {
|
|
|
+ case 1:
|
|
|
+ if wireType != 2 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field Pids", wireType)
|
|
|
+ }
|
|
|
+ var msglen int
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowMetrics
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ msglen |= int(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if msglen < 0 {
|
|
|
+ return ErrInvalidLengthMetrics
|
|
|
+ }
|
|
|
+ postIndex := iNdEx + msglen
|
|
|
+ if postIndex < 0 {
|
|
|
+ return ErrInvalidLengthMetrics
|
|
|
+ }
|
|
|
+ if postIndex > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ if m.Pids == nil {
|
|
|
+ m.Pids = &PidsStat{}
|
|
|
+ }
|
|
|
+ if err := m.Pids.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ iNdEx = postIndex
|
|
|
+ case 2:
|
|
|
+ if wireType != 2 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field CPU", wireType)
|
|
|
+ }
|
|
|
+ var msglen int
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowMetrics
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ msglen |= int(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if msglen < 0 {
|
|
|
+ return ErrInvalidLengthMetrics
|
|
|
+ }
|
|
|
+ postIndex := iNdEx + msglen
|
|
|
+ if postIndex < 0 {
|
|
|
+ return ErrInvalidLengthMetrics
|
|
|
+ }
|
|
|
+ if postIndex > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ if m.CPU == nil {
|
|
|
+ m.CPU = &CPUStat{}
|
|
|
+ }
|
|
|
+ if err := m.CPU.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ iNdEx = postIndex
|
|
|
+ case 4:
|
|
|
+ if wireType != 2 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field Memory", wireType)
|
|
|
+ }
|
|
|
+ var msglen int
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowMetrics
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ msglen |= int(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if msglen < 0 {
|
|
|
+ return ErrInvalidLengthMetrics
|
|
|
+ }
|
|
|
+ postIndex := iNdEx + msglen
|
|
|
+ if postIndex < 0 {
|
|
|
+ return ErrInvalidLengthMetrics
|
|
|
+ }
|
|
|
+ if postIndex > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ if m.Memory == nil {
|
|
|
+ m.Memory = &MemoryStat{}
|
|
|
+ }
|
|
|
+ if err := m.Memory.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ iNdEx = postIndex
|
|
|
+ case 5:
|
|
|
+ if wireType != 2 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field Rdma", wireType)
|
|
|
+ }
|
|
|
+ var msglen int
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowMetrics
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ msglen |= int(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if msglen < 0 {
|
|
|
+ return ErrInvalidLengthMetrics
|
|
|
+ }
|
|
|
+ postIndex := iNdEx + msglen
|
|
|
+ if postIndex < 0 {
|
|
|
+ return ErrInvalidLengthMetrics
|
|
|
+ }
|
|
|
+ if postIndex > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ if m.Rdma == nil {
|
|
|
+ m.Rdma = &RdmaStat{}
|
|
|
+ }
|
|
|
+ if err := m.Rdma.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ iNdEx = postIndex
|
|
|
+ case 6:
|
|
|
+ if wireType != 2 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field Io", wireType)
|
|
|
+ }
|
|
|
+ var msglen int
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowMetrics
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ msglen |= int(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if msglen < 0 {
|
|
|
+ return ErrInvalidLengthMetrics
|
|
|
+ }
|
|
|
+ postIndex := iNdEx + msglen
|
|
|
+ if postIndex < 0 {
|
|
|
+ return ErrInvalidLengthMetrics
|
|
|
+ }
|
|
|
+ if postIndex > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ if m.Io == nil {
|
|
|
+ m.Io = &IOStat{}
|
|
|
+ }
|
|
|
+ if err := m.Io.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ iNdEx = postIndex
|
|
|
+ case 7:
|
|
|
+ if wireType != 2 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field Hugetlb", wireType)
|
|
|
+ }
|
|
|
+ var msglen int
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowMetrics
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ msglen |= int(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if msglen < 0 {
|
|
|
+ return ErrInvalidLengthMetrics
|
|
|
+ }
|
|
|
+ postIndex := iNdEx + msglen
|
|
|
+ if postIndex < 0 {
|
|
|
+ return ErrInvalidLengthMetrics
|
|
|
+ }
|
|
|
+ if postIndex > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ m.Hugetlb = append(m.Hugetlb, &HugeTlbStat{})
|
|
|
+ if err := m.Hugetlb[len(m.Hugetlb)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ iNdEx = postIndex
|
|
|
+ default:
|
|
|
+ iNdEx = preIndex
|
|
|
+ skippy, err := skipMetrics(dAtA[iNdEx:])
|
|
|
+ if err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ if skippy < 0 {
|
|
|
+ return ErrInvalidLengthMetrics
|
|
|
+ }
|
|
|
+ if (iNdEx + skippy) < 0 {
|
|
|
+ return ErrInvalidLengthMetrics
|
|
|
+ }
|
|
|
+ if (iNdEx + skippy) > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
|
|
|
+ iNdEx += skippy
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ if iNdEx > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ return nil
|
|
|
+}
|
|
|
+func (m *PidsStat) Unmarshal(dAtA []byte) error {
|
|
|
+ l := len(dAtA)
|
|
|
+ iNdEx := 0
|
|
|
+ for iNdEx < l {
|
|
|
+ preIndex := iNdEx
|
|
|
+ var wire uint64
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowMetrics
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ wire |= uint64(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ fieldNum := int32(wire >> 3)
|
|
|
+ wireType := int(wire & 0x7)
|
|
|
+ if wireType == 4 {
|
|
|
+ return fmt.Errorf("proto: PidsStat: wiretype end group for non-group")
|
|
|
+ }
|
|
|
+ if fieldNum <= 0 {
|
|
|
+ return fmt.Errorf("proto: PidsStat: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
+ }
|
|
|
+ switch fieldNum {
|
|
|
+ case 1:
|
|
|
+ if wireType != 0 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field Current", wireType)
|
|
|
+ }
|
|
|
+ m.Current = 0
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowMetrics
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ m.Current |= uint64(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ case 2:
|
|
|
+ if wireType != 0 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType)
|
|
|
+ }
|
|
|
+ m.Limit = 0
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowMetrics
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ m.Limit |= uint64(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ default:
|
|
|
+ iNdEx = preIndex
|
|
|
+ skippy, err := skipMetrics(dAtA[iNdEx:])
|
|
|
+ if err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ if skippy < 0 {
|
|
|
+ return ErrInvalidLengthMetrics
|
|
|
+ }
|
|
|
+ if (iNdEx + skippy) < 0 {
|
|
|
+ return ErrInvalidLengthMetrics
|
|
|
+ }
|
|
|
+ if (iNdEx + skippy) > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
|
|
|
+ iNdEx += skippy
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ if iNdEx > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ return nil
|
|
|
+}
|
|
|
+func (m *CPUStat) Unmarshal(dAtA []byte) error {
|
|
|
+ l := len(dAtA)
|
|
|
+ iNdEx := 0
|
|
|
+ for iNdEx < l {
|
|
|
+ preIndex := iNdEx
|
|
|
+ var wire uint64
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowMetrics
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ wire |= uint64(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ fieldNum := int32(wire >> 3)
|
|
|
+ wireType := int(wire & 0x7)
|
|
|
+ if wireType == 4 {
|
|
|
+ return fmt.Errorf("proto: CPUStat: wiretype end group for non-group")
|
|
|
+ }
|
|
|
+ if fieldNum <= 0 {
|
|
|
+ return fmt.Errorf("proto: CPUStat: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
+ }
|
|
|
+ switch fieldNum {
|
|
|
+ case 1:
|
|
|
+ if wireType != 0 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field UsageUsec", wireType)
|
|
|
+ }
|
|
|
+ m.UsageUsec = 0
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowMetrics
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ m.UsageUsec |= uint64(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ case 2:
|
|
|
+ if wireType != 0 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field UserUsec", wireType)
|
|
|
+ }
|
|
|
+ m.UserUsec = 0
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowMetrics
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ m.UserUsec |= uint64(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ case 3:
|
|
|
+ if wireType != 0 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field SystemUsec", wireType)
|
|
|
+ }
|
|
|
+ m.SystemUsec = 0
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowMetrics
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ m.SystemUsec |= uint64(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ case 4:
|
|
|
+ if wireType != 0 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field NrPeriods", wireType)
|
|
|
+ }
|
|
|
+ m.NrPeriods = 0
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowMetrics
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ m.NrPeriods |= uint64(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ case 5:
|
|
|
+ if wireType != 0 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field NrThrottled", wireType)
|
|
|
+ }
|
|
|
+ m.NrThrottled = 0
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowMetrics
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ m.NrThrottled |= uint64(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ case 6:
|
|
|
+ if wireType != 0 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field ThrottledUsec", wireType)
|
|
|
+ }
|
|
|
+ m.ThrottledUsec = 0
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowMetrics
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ m.ThrottledUsec |= uint64(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ default:
|
|
|
+ iNdEx = preIndex
|
|
|
+ skippy, err := skipMetrics(dAtA[iNdEx:])
|
|
|
+ if err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ if skippy < 0 {
|
|
|
+ return ErrInvalidLengthMetrics
|
|
|
+ }
|
|
|
+ if (iNdEx + skippy) < 0 {
|
|
|
+ return ErrInvalidLengthMetrics
|
|
|
+ }
|
|
|
+ if (iNdEx + skippy) > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
|
|
|
+ iNdEx += skippy
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ if iNdEx > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ return nil
|
|
|
+}
|
|
|
+func (m *MemoryStat) Unmarshal(dAtA []byte) error {
|
|
|
+ l := len(dAtA)
|
|
|
+ iNdEx := 0
|
|
|
+ for iNdEx < l {
|
|
|
+ preIndex := iNdEx
|
|
|
+ var wire uint64
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowMetrics
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ wire |= uint64(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ fieldNum := int32(wire >> 3)
|
|
|
+ wireType := int(wire & 0x7)
|
|
|
+ if wireType == 4 {
|
|
|
+ return fmt.Errorf("proto: MemoryStat: wiretype end group for non-group")
|
|
|
+ }
|
|
|
+ if fieldNum <= 0 {
|
|
|
+ return fmt.Errorf("proto: MemoryStat: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
+ }
|
|
|
+ switch fieldNum {
|
|
|
+ case 1:
|
|
|
+ if wireType != 0 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field Anon", wireType)
|
|
|
+ }
|
|
|
+ m.Anon = 0
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowMetrics
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ m.Anon |= uint64(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ case 2:
|
|
|
+ if wireType != 0 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field File", wireType)
|
|
|
+ }
|
|
|
+ m.File = 0
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowMetrics
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ m.File |= uint64(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ case 3:
|
|
|
+ if wireType != 0 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field KernelStack", wireType)
|
|
|
+ }
|
|
|
+ m.KernelStack = 0
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowMetrics
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ m.KernelStack |= uint64(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ case 4:
|
|
|
+ if wireType != 0 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field Slab", wireType)
|
|
|
+ }
|
|
|
+ m.Slab = 0
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowMetrics
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ m.Slab |= uint64(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ case 5:
|
|
|
+ if wireType != 0 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field Sock", wireType)
|
|
|
+ }
|
|
|
+ m.Sock = 0
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowMetrics
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ m.Sock |= uint64(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ case 6:
|
|
|
+ if wireType != 0 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field Shmem", wireType)
|
|
|
+ }
|
|
|
+ m.Shmem = 0
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowMetrics
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ m.Shmem |= uint64(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ case 7:
|
|
|
+ if wireType != 0 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field FileMapped", wireType)
|
|
|
+ }
|
|
|
+ m.FileMapped = 0
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowMetrics
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ m.FileMapped |= uint64(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ case 8:
|
|
|
+ if wireType != 0 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field FileDirty", wireType)
|
|
|
+ }
|
|
|
+ m.FileDirty = 0
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowMetrics
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ m.FileDirty |= uint64(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ case 9:
|
|
|
+ if wireType != 0 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field FileWriteback", wireType)
|
|
|
+ }
|
|
|
+ m.FileWriteback = 0
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowMetrics
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ m.FileWriteback |= uint64(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ case 10:
|
|
|
+ if wireType != 0 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field AnonThp", wireType)
|
|
|
+ }
|
|
|
+ m.AnonThp = 0
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowMetrics
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ m.AnonThp |= uint64(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ case 11:
|
|
|
+ if wireType != 0 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field InactiveAnon", wireType)
|
|
|
+ }
|
|
|
+ m.InactiveAnon = 0
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowMetrics
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ m.InactiveAnon |= uint64(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ case 12:
|
|
|
+ if wireType != 0 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field ActiveAnon", wireType)
|
|
|
+ }
|
|
|
+ m.ActiveAnon = 0
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowMetrics
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ m.ActiveAnon |= uint64(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ case 13:
|
|
|
+ if wireType != 0 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field InactiveFile", wireType)
|
|
|
+ }
|
|
|
+ m.InactiveFile = 0
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowMetrics
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ m.InactiveFile |= uint64(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ case 14:
|
|
|
+ if wireType != 0 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field ActiveFile", wireType)
|
|
|
+ }
|
|
|
+ m.ActiveFile = 0
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowMetrics
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ m.ActiveFile |= uint64(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ case 15:
|
|
|
+ if wireType != 0 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field Unevictable", wireType)
|
|
|
+ }
|
|
|
+ m.Unevictable = 0
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowMetrics
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ m.Unevictable |= uint64(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ case 16:
|
|
|
+ if wireType != 0 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field SlabReclaimable", wireType)
|
|
|
+ }
|
|
|
+ m.SlabReclaimable = 0
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowMetrics
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ m.SlabReclaimable |= uint64(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ case 17:
|
|
|
+ if wireType != 0 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field SlabUnreclaimable", wireType)
|
|
|
+ }
|
|
|
+ m.SlabUnreclaimable = 0
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowMetrics
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ m.SlabUnreclaimable |= uint64(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ case 18:
|
|
|
+ if wireType != 0 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field Pgfault", wireType)
|
|
|
+ }
|
|
|
+ m.Pgfault = 0
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowMetrics
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ m.Pgfault |= uint64(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ case 19:
|
|
|
+ if wireType != 0 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field Pgmajfault", wireType)
|
|
|
+ }
|
|
|
+ m.Pgmajfault = 0
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowMetrics
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ m.Pgmajfault |= uint64(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ case 20:
|
|
|
+ if wireType != 0 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field WorkingsetRefault", wireType)
|
|
|
+ }
|
|
|
+ m.WorkingsetRefault = 0
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowMetrics
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ m.WorkingsetRefault |= uint64(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ case 21:
|
|
|
+ if wireType != 0 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field WorkingsetActivate", wireType)
|
|
|
+ }
|
|
|
+ m.WorkingsetActivate = 0
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowMetrics
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ m.WorkingsetActivate |= uint64(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ case 22:
|
|
|
+ if wireType != 0 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field WorkingsetNodereclaim", wireType)
|
|
|
+ }
|
|
|
+ m.WorkingsetNodereclaim = 0
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowMetrics
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ m.WorkingsetNodereclaim |= uint64(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ case 23:
|
|
|
+ if wireType != 0 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field Pgrefill", wireType)
|
|
|
+ }
|
|
|
+ m.Pgrefill = 0
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowMetrics
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ m.Pgrefill |= uint64(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ case 24:
|
|
|
+ if wireType != 0 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field Pgscan", wireType)
|
|
|
+ }
|
|
|
+ m.Pgscan = 0
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowMetrics
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ m.Pgscan |= uint64(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ case 25:
|
|
|
+ if wireType != 0 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field Pgsteal", wireType)
|
|
|
+ }
|
|
|
+ m.Pgsteal = 0
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowMetrics
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ m.Pgsteal |= uint64(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ case 26:
|
|
|
+ if wireType != 0 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field Pgactivate", wireType)
|
|
|
+ }
|
|
|
+ m.Pgactivate = 0
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowMetrics
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ m.Pgactivate |= uint64(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ case 27:
|
|
|
+ if wireType != 0 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field Pgdeactivate", wireType)
|
|
|
+ }
|
|
|
+ m.Pgdeactivate = 0
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowMetrics
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ m.Pgdeactivate |= uint64(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ case 28:
|
|
|
+ if wireType != 0 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field Pglazyfree", wireType)
|
|
|
+ }
|
|
|
+ m.Pglazyfree = 0
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowMetrics
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ m.Pglazyfree |= uint64(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ case 29:
|
|
|
+ if wireType != 0 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field Pglazyfreed", wireType)
|
|
|
+ }
|
|
|
+ m.Pglazyfreed = 0
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowMetrics
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ m.Pglazyfreed |= uint64(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ case 30:
|
|
|
+ if wireType != 0 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field ThpFaultAlloc", wireType)
|
|
|
+ }
|
|
|
+ m.ThpFaultAlloc = 0
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowMetrics
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ m.ThpFaultAlloc |= uint64(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ case 31:
|
|
|
+ if wireType != 0 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field ThpCollapseAlloc", wireType)
|
|
|
+ }
|
|
|
+ m.ThpCollapseAlloc = 0
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowMetrics
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ m.ThpCollapseAlloc |= uint64(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ case 32:
|
|
|
+ if wireType != 0 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field Usage", wireType)
|
|
|
+ }
|
|
|
+ m.Usage = 0
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowMetrics
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ m.Usage |= uint64(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ case 33:
|
|
|
+ if wireType != 0 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field UsageLimit", wireType)
|
|
|
+ }
|
|
|
+ m.UsageLimit = 0
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowMetrics
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ m.UsageLimit |= uint64(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ case 34:
|
|
|
+ if wireType != 0 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field SwapUsage", wireType)
|
|
|
+ }
|
|
|
+ m.SwapUsage = 0
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowMetrics
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ m.SwapUsage |= uint64(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ case 35:
|
|
|
+ if wireType != 0 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field SwapLimit", wireType)
|
|
|
+ }
|
|
|
+ m.SwapLimit = 0
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowMetrics
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ m.SwapLimit |= uint64(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ default:
|
|
|
+ iNdEx = preIndex
|
|
|
+ skippy, err := skipMetrics(dAtA[iNdEx:])
|
|
|
+ if err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ if skippy < 0 {
|
|
|
+ return ErrInvalidLengthMetrics
|
|
|
+ }
|
|
|
+ if (iNdEx + skippy) < 0 {
|
|
|
+ return ErrInvalidLengthMetrics
|
|
|
+ }
|
|
|
+ if (iNdEx + skippy) > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
|
|
|
+ iNdEx += skippy
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ if iNdEx > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ return nil
|
|
|
+}
|
|
|
+func (m *RdmaStat) Unmarshal(dAtA []byte) error {
|
|
|
+ l := len(dAtA)
|
|
|
+ iNdEx := 0
|
|
|
+ for iNdEx < l {
|
|
|
+ preIndex := iNdEx
|
|
|
+ var wire uint64
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowMetrics
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ wire |= uint64(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ fieldNum := int32(wire >> 3)
|
|
|
+ wireType := int(wire & 0x7)
|
|
|
+ if wireType == 4 {
|
|
|
+ return fmt.Errorf("proto: RdmaStat: wiretype end group for non-group")
|
|
|
+ }
|
|
|
+ if fieldNum <= 0 {
|
|
|
+ return fmt.Errorf("proto: RdmaStat: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
+ }
|
|
|
+ switch fieldNum {
|
|
|
+ case 1:
|
|
|
+ if wireType != 2 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field Current", wireType)
|
|
|
+ }
|
|
|
+ var msglen int
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowMetrics
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ msglen |= int(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if msglen < 0 {
|
|
|
+ return ErrInvalidLengthMetrics
|
|
|
+ }
|
|
|
+ postIndex := iNdEx + msglen
|
|
|
+ if postIndex < 0 {
|
|
|
+ return ErrInvalidLengthMetrics
|
|
|
+ }
|
|
|
+ if postIndex > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ m.Current = append(m.Current, &RdmaEntry{})
|
|
|
+ if err := m.Current[len(m.Current)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ iNdEx = postIndex
|
|
|
+ case 2:
|
|
|
+ if wireType != 2 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType)
|
|
|
+ }
|
|
|
+ var msglen int
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowMetrics
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ msglen |= int(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if msglen < 0 {
|
|
|
+ return ErrInvalidLengthMetrics
|
|
|
+ }
|
|
|
+ postIndex := iNdEx + msglen
|
|
|
+ if postIndex < 0 {
|
|
|
+ return ErrInvalidLengthMetrics
|
|
|
+ }
|
|
|
+ if postIndex > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ m.Limit = append(m.Limit, &RdmaEntry{})
|
|
|
+ if err := m.Limit[len(m.Limit)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ iNdEx = postIndex
|
|
|
+ default:
|
|
|
+ iNdEx = preIndex
|
|
|
+ skippy, err := skipMetrics(dAtA[iNdEx:])
|
|
|
+ if err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ if skippy < 0 {
|
|
|
+ return ErrInvalidLengthMetrics
|
|
|
+ }
|
|
|
+ if (iNdEx + skippy) < 0 {
|
|
|
+ return ErrInvalidLengthMetrics
|
|
|
+ }
|
|
|
+ if (iNdEx + skippy) > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
|
|
|
+ iNdEx += skippy
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ if iNdEx > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ return nil
|
|
|
+}
|
|
|
+func (m *RdmaEntry) Unmarshal(dAtA []byte) error {
|
|
|
+ l := len(dAtA)
|
|
|
+ iNdEx := 0
|
|
|
+ for iNdEx < l {
|
|
|
+ preIndex := iNdEx
|
|
|
+ var wire uint64
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowMetrics
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ wire |= uint64(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ fieldNum := int32(wire >> 3)
|
|
|
+ wireType := int(wire & 0x7)
|
|
|
+ if wireType == 4 {
|
|
|
+ return fmt.Errorf("proto: RdmaEntry: wiretype end group for non-group")
|
|
|
+ }
|
|
|
+ if fieldNum <= 0 {
|
|
|
+ return fmt.Errorf("proto: RdmaEntry: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
+ }
|
|
|
+ switch fieldNum {
|
|
|
+ case 1:
|
|
|
+ if wireType != 2 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field Device", wireType)
|
|
|
+ }
|
|
|
+ var stringLen uint64
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowMetrics
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ stringLen |= uint64(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ intStringLen := int(stringLen)
|
|
|
+ if intStringLen < 0 {
|
|
|
+ return ErrInvalidLengthMetrics
|
|
|
+ }
|
|
|
+ postIndex := iNdEx + intStringLen
|
|
|
+ if postIndex < 0 {
|
|
|
+ return ErrInvalidLengthMetrics
|
|
|
+ }
|
|
|
+ if postIndex > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ m.Device = string(dAtA[iNdEx:postIndex])
|
|
|
+ iNdEx = postIndex
|
|
|
+ case 2:
|
|
|
+ if wireType != 0 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field HcaHandles", wireType)
|
|
|
+ }
|
|
|
+ m.HcaHandles = 0
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowMetrics
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ m.HcaHandles |= uint32(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ case 3:
|
|
|
+ if wireType != 0 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field HcaObjects", wireType)
|
|
|
+ }
|
|
|
+ m.HcaObjects = 0
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowMetrics
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ m.HcaObjects |= uint32(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ default:
|
|
|
+ iNdEx = preIndex
|
|
|
+ skippy, err := skipMetrics(dAtA[iNdEx:])
|
|
|
+ if err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ if skippy < 0 {
|
|
|
+ return ErrInvalidLengthMetrics
|
|
|
+ }
|
|
|
+ if (iNdEx + skippy) < 0 {
|
|
|
+ return ErrInvalidLengthMetrics
|
|
|
+ }
|
|
|
+ if (iNdEx + skippy) > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
|
|
|
+ iNdEx += skippy
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ if iNdEx > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ return nil
|
|
|
+}
|
|
|
+func (m *IOStat) Unmarshal(dAtA []byte) error {
|
|
|
+ l := len(dAtA)
|
|
|
+ iNdEx := 0
|
|
|
+ for iNdEx < l {
|
|
|
+ preIndex := iNdEx
|
|
|
+ var wire uint64
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowMetrics
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ wire |= uint64(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ fieldNum := int32(wire >> 3)
|
|
|
+ wireType := int(wire & 0x7)
|
|
|
+ if wireType == 4 {
|
|
|
+ return fmt.Errorf("proto: IOStat: wiretype end group for non-group")
|
|
|
+ }
|
|
|
+ if fieldNum <= 0 {
|
|
|
+ return fmt.Errorf("proto: IOStat: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
+ }
|
|
|
+ switch fieldNum {
|
|
|
+ case 1:
|
|
|
+ if wireType != 2 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field Usage", wireType)
|
|
|
+ }
|
|
|
+ var msglen int
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowMetrics
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ msglen |= int(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if msglen < 0 {
|
|
|
+ return ErrInvalidLengthMetrics
|
|
|
+ }
|
|
|
+ postIndex := iNdEx + msglen
|
|
|
+ if postIndex < 0 {
|
|
|
+ return ErrInvalidLengthMetrics
|
|
|
+ }
|
|
|
+ if postIndex > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ m.Usage = append(m.Usage, &IOEntry{})
|
|
|
+ if err := m.Usage[len(m.Usage)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ iNdEx = postIndex
|
|
|
+ default:
|
|
|
+ iNdEx = preIndex
|
|
|
+ skippy, err := skipMetrics(dAtA[iNdEx:])
|
|
|
+ if err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ if skippy < 0 {
|
|
|
+ return ErrInvalidLengthMetrics
|
|
|
+ }
|
|
|
+ if (iNdEx + skippy) < 0 {
|
|
|
+ return ErrInvalidLengthMetrics
|
|
|
+ }
|
|
|
+ if (iNdEx + skippy) > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
|
|
|
+ iNdEx += skippy
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ if iNdEx > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ return nil
|
|
|
+}
|
|
|
+func (m *IOEntry) Unmarshal(dAtA []byte) error {
|
|
|
+ l := len(dAtA)
|
|
|
+ iNdEx := 0
|
|
|
+ for iNdEx < l {
|
|
|
+ preIndex := iNdEx
|
|
|
+ var wire uint64
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowMetrics
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ wire |= uint64(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ fieldNum := int32(wire >> 3)
|
|
|
+ wireType := int(wire & 0x7)
|
|
|
+ if wireType == 4 {
|
|
|
+ return fmt.Errorf("proto: IOEntry: wiretype end group for non-group")
|
|
|
+ }
|
|
|
+ if fieldNum <= 0 {
|
|
|
+ return fmt.Errorf("proto: IOEntry: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
+ }
|
|
|
+ switch fieldNum {
|
|
|
+ case 1:
|
|
|
+ if wireType != 0 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field Major", wireType)
|
|
|
+ }
|
|
|
+ m.Major = 0
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowMetrics
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ m.Major |= uint64(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ case 2:
|
|
|
+ if wireType != 0 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field Minor", wireType)
|
|
|
+ }
|
|
|
+ m.Minor = 0
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowMetrics
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ m.Minor |= uint64(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ case 3:
|
|
|
+ if wireType != 0 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field Rbytes", wireType)
|
|
|
+ }
|
|
|
+ m.Rbytes = 0
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowMetrics
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ m.Rbytes |= uint64(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ case 4:
|
|
|
+ if wireType != 0 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field Wbytes", wireType)
|
|
|
+ }
|
|
|
+ m.Wbytes = 0
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowMetrics
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ m.Wbytes |= uint64(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ case 5:
|
|
|
+ if wireType != 0 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field Rios", wireType)
|
|
|
+ }
|
|
|
+ m.Rios = 0
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowMetrics
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ m.Rios |= uint64(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ case 6:
|
|
|
+ if wireType != 0 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field Wios", wireType)
|
|
|
+ }
|
|
|
+ m.Wios = 0
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowMetrics
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ m.Wios |= uint64(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ default:
|
|
|
+ iNdEx = preIndex
|
|
|
+ skippy, err := skipMetrics(dAtA[iNdEx:])
|
|
|
+ if err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ if skippy < 0 {
|
|
|
+ return ErrInvalidLengthMetrics
|
|
|
+ }
|
|
|
+ if (iNdEx + skippy) < 0 {
|
|
|
+ return ErrInvalidLengthMetrics
|
|
|
+ }
|
|
|
+ if (iNdEx + skippy) > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
|
|
|
+ iNdEx += skippy
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ if iNdEx > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ return nil
|
|
|
+}
|
|
|
+func (m *HugeTlbStat) Unmarshal(dAtA []byte) error {
|
|
|
+ l := len(dAtA)
|
|
|
+ iNdEx := 0
|
|
|
+ for iNdEx < l {
|
|
|
+ preIndex := iNdEx
|
|
|
+ var wire uint64
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowMetrics
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ wire |= uint64(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ fieldNum := int32(wire >> 3)
|
|
|
+ wireType := int(wire & 0x7)
|
|
|
+ if wireType == 4 {
|
|
|
+ return fmt.Errorf("proto: HugeTlbStat: wiretype end group for non-group")
|
|
|
+ }
|
|
|
+ if fieldNum <= 0 {
|
|
|
+ return fmt.Errorf("proto: HugeTlbStat: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
+ }
|
|
|
+ switch fieldNum {
|
|
|
+ case 1:
|
|
|
+ if wireType != 0 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field Current", wireType)
|
|
|
+ }
|
|
|
+ m.Current = 0
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowMetrics
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ m.Current |= uint64(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ case 2:
|
|
|
+ if wireType != 0 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field Max", wireType)
|
|
|
+ }
|
|
|
+ m.Max = 0
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowMetrics
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ m.Max |= uint64(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ case 3:
|
|
|
+ if wireType != 2 {
|
|
|
+ return fmt.Errorf("proto: wrong wireType = %d for field Pagesize", wireType)
|
|
|
+ }
|
|
|
+ var stringLen uint64
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return ErrIntOverflowMetrics
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ stringLen |= uint64(b&0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ intStringLen := int(stringLen)
|
|
|
+ if intStringLen < 0 {
|
|
|
+ return ErrInvalidLengthMetrics
|
|
|
+ }
|
|
|
+ postIndex := iNdEx + intStringLen
|
|
|
+ if postIndex < 0 {
|
|
|
+ return ErrInvalidLengthMetrics
|
|
|
+ }
|
|
|
+ if postIndex > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ m.Pagesize = string(dAtA[iNdEx:postIndex])
|
|
|
+ iNdEx = postIndex
|
|
|
+ default:
|
|
|
+ iNdEx = preIndex
|
|
|
+ skippy, err := skipMetrics(dAtA[iNdEx:])
|
|
|
+ if err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ if skippy < 0 {
|
|
|
+ return ErrInvalidLengthMetrics
|
|
|
+ }
|
|
|
+ if (iNdEx + skippy) < 0 {
|
|
|
+ return ErrInvalidLengthMetrics
|
|
|
+ }
|
|
|
+ if (iNdEx + skippy) > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
|
|
|
+ iNdEx += skippy
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ if iNdEx > l {
|
|
|
+ return io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ return nil
|
|
|
+}
|
|
|
+func skipMetrics(dAtA []byte) (n int, err error) {
|
|
|
+ l := len(dAtA)
|
|
|
+ iNdEx := 0
|
|
|
+ for iNdEx < l {
|
|
|
+ var wire uint64
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return 0, ErrIntOverflowMetrics
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return 0, io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ wire |= (uint64(b) & 0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ wireType := int(wire & 0x7)
|
|
|
+ switch wireType {
|
|
|
+ case 0:
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return 0, ErrIntOverflowMetrics
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return 0, io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ iNdEx++
|
|
|
+ if dAtA[iNdEx-1] < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return iNdEx, nil
|
|
|
+ case 1:
|
|
|
+ iNdEx += 8
|
|
|
+ return iNdEx, nil
|
|
|
+ case 2:
|
|
|
+ var length int
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return 0, ErrIntOverflowMetrics
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return 0, io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ length |= (int(b) & 0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if length < 0 {
|
|
|
+ return 0, ErrInvalidLengthMetrics
|
|
|
+ }
|
|
|
+ iNdEx += length
|
|
|
+ if iNdEx < 0 {
|
|
|
+ return 0, ErrInvalidLengthMetrics
|
|
|
+ }
|
|
|
+ return iNdEx, nil
|
|
|
+ case 3:
|
|
|
+ for {
|
|
|
+ var innerWire uint64
|
|
|
+ var start int = iNdEx
|
|
|
+ for shift := uint(0); ; shift += 7 {
|
|
|
+ if shift >= 64 {
|
|
|
+ return 0, ErrIntOverflowMetrics
|
|
|
+ }
|
|
|
+ if iNdEx >= l {
|
|
|
+ return 0, io.ErrUnexpectedEOF
|
|
|
+ }
|
|
|
+ b := dAtA[iNdEx]
|
|
|
+ iNdEx++
|
|
|
+ innerWire |= (uint64(b) & 0x7F) << shift
|
|
|
+ if b < 0x80 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ innerWireType := int(innerWire & 0x7)
|
|
|
+ if innerWireType == 4 {
|
|
|
+ break
|
|
|
+ }
|
|
|
+ next, err := skipMetrics(dAtA[start:])
|
|
|
+ if err != nil {
|
|
|
+ return 0, err
|
|
|
+ }
|
|
|
+ iNdEx = start + next
|
|
|
+ if iNdEx < 0 {
|
|
|
+ return 0, ErrInvalidLengthMetrics
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return iNdEx, nil
|
|
|
+ case 4:
|
|
|
+ return iNdEx, nil
|
|
|
+ case 5:
|
|
|
+ iNdEx += 4
|
|
|
+ return iNdEx, nil
|
|
|
+ default:
|
|
|
+ return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ panic("unreachable")
|
|
|
+}
|
|
|
+
|
|
|
+var (
|
|
|
+ ErrInvalidLengthMetrics = fmt.Errorf("proto: negative length found during unmarshaling")
|
|
|
+ ErrIntOverflowMetrics = fmt.Errorf("proto: integer overflow")
|
|
|
+)
|