metrics.pb.go 98 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851
  1. // Code generated by protoc-gen-gogo.
  2. // source: github.com/containerd/cgroups/metrics.proto
  3. // DO NOT EDIT!
  4. /*
  5. Package cgroups is a generated protocol buffer package.
  6. It is generated from these files:
  7. github.com/containerd/cgroups/metrics.proto
  8. It has these top-level messages:
  9. Metrics
  10. HugetlbStat
  11. PidsStat
  12. CPUStat
  13. CPUUsage
  14. Throttle
  15. MemoryStat
  16. MemoryEntry
  17. BlkIOStat
  18. BlkIOEntry
  19. */
  20. package cgroups
  21. import proto "github.com/gogo/protobuf/proto"
  22. import fmt "fmt"
  23. import math "math"
  24. import _ "github.com/gogo/protobuf/gogoproto"
  25. import strings "strings"
  26. import reflect "reflect"
  27. import io "io"
  28. // Reference imports to suppress errors if they are not otherwise used.
  29. var _ = proto.Marshal
  30. var _ = fmt.Errorf
  31. var _ = math.Inf
  32. // This is a compile-time assertion to ensure that this generated file
  33. // is compatible with the proto package it is being compiled against.
  34. // A compilation error at this line likely means your copy of the
  35. // proto package needs to be updated.
  36. const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
  37. type Metrics struct {
  38. Hugetlb []*HugetlbStat `protobuf:"bytes,1,rep,name=hugetlb" json:"hugetlb,omitempty"`
  39. Pids *PidsStat `protobuf:"bytes,2,opt,name=pids" json:"pids,omitempty"`
  40. CPU *CPUStat `protobuf:"bytes,3,opt,name=cpu" json:"cpu,omitempty"`
  41. Memory *MemoryStat `protobuf:"bytes,4,opt,name=memory" json:"memory,omitempty"`
  42. Blkio *BlkIOStat `protobuf:"bytes,5,opt,name=blkio" json:"blkio,omitempty"`
  43. }
  44. func (m *Metrics) Reset() { *m = Metrics{} }
  45. func (*Metrics) ProtoMessage() {}
  46. func (*Metrics) Descriptor() ([]byte, []int) { return fileDescriptorMetrics, []int{0} }
  47. type HugetlbStat struct {
  48. Usage uint64 `protobuf:"varint,1,opt,name=usage,proto3" json:"usage,omitempty"`
  49. Max uint64 `protobuf:"varint,2,opt,name=max,proto3" json:"max,omitempty"`
  50. Failcnt uint64 `protobuf:"varint,3,opt,name=failcnt,proto3" json:"failcnt,omitempty"`
  51. Pagesize string `protobuf:"bytes,4,opt,name=pagesize,proto3" json:"pagesize,omitempty"`
  52. }
  53. func (m *HugetlbStat) Reset() { *m = HugetlbStat{} }
  54. func (*HugetlbStat) ProtoMessage() {}
  55. func (*HugetlbStat) Descriptor() ([]byte, []int) { return fileDescriptorMetrics, []int{1} }
  56. type PidsStat struct {
  57. Current uint64 `protobuf:"varint,1,opt,name=current,proto3" json:"current,omitempty"`
  58. Limit uint64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
  59. }
  60. func (m *PidsStat) Reset() { *m = PidsStat{} }
  61. func (*PidsStat) ProtoMessage() {}
  62. func (*PidsStat) Descriptor() ([]byte, []int) { return fileDescriptorMetrics, []int{2} }
  63. type CPUStat struct {
  64. Usage *CPUUsage `protobuf:"bytes,1,opt,name=usage" json:"usage,omitempty"`
  65. Throttling *Throttle `protobuf:"bytes,2,opt,name=throttling" json:"throttling,omitempty"`
  66. }
  67. func (m *CPUStat) Reset() { *m = CPUStat{} }
  68. func (*CPUStat) ProtoMessage() {}
  69. func (*CPUStat) Descriptor() ([]byte, []int) { return fileDescriptorMetrics, []int{3} }
  70. type CPUUsage struct {
  71. // values in nanoseconds
  72. Total uint64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
  73. Kernel uint64 `protobuf:"varint,2,opt,name=kernel,proto3" json:"kernel,omitempty"`
  74. User uint64 `protobuf:"varint,3,opt,name=user,proto3" json:"user,omitempty"`
  75. PerCPU []uint64 `protobuf:"varint,4,rep,packed,name=per_cpu,json=perCpu" json:"per_cpu,omitempty"`
  76. }
  77. func (m *CPUUsage) Reset() { *m = CPUUsage{} }
  78. func (*CPUUsage) ProtoMessage() {}
  79. func (*CPUUsage) Descriptor() ([]byte, []int) { return fileDescriptorMetrics, []int{4} }
  80. type Throttle struct {
  81. Periods uint64 `protobuf:"varint,1,opt,name=periods,proto3" json:"periods,omitempty"`
  82. ThrottledPeriods uint64 `protobuf:"varint,2,opt,name=throttled_periods,json=throttledPeriods,proto3" json:"throttled_periods,omitempty"`
  83. ThrottledTime uint64 `protobuf:"varint,3,opt,name=throttled_time,json=throttledTime,proto3" json:"throttled_time,omitempty"`
  84. }
  85. func (m *Throttle) Reset() { *m = Throttle{} }
  86. func (*Throttle) ProtoMessage() {}
  87. func (*Throttle) Descriptor() ([]byte, []int) { return fileDescriptorMetrics, []int{5} }
  88. type MemoryStat struct {
  89. Cache uint64 `protobuf:"varint,1,opt,name=cache,proto3" json:"cache,omitempty"`
  90. RSS uint64 `protobuf:"varint,2,opt,name=rss,proto3" json:"rss,omitempty"`
  91. RSSHuge uint64 `protobuf:"varint,3,opt,name=rss_huge,json=rssHuge,proto3" json:"rss_huge,omitempty"`
  92. MappedFile uint64 `protobuf:"varint,4,opt,name=mapped_file,json=mappedFile,proto3" json:"mapped_file,omitempty"`
  93. Dirty uint64 `protobuf:"varint,5,opt,name=dirty,proto3" json:"dirty,omitempty"`
  94. Writeback uint64 `protobuf:"varint,6,opt,name=writeback,proto3" json:"writeback,omitempty"`
  95. PgPgIn uint64 `protobuf:"varint,7,opt,name=pg_pg_in,json=pgPgIn,proto3" json:"pg_pg_in,omitempty"`
  96. PgPgOut uint64 `protobuf:"varint,8,opt,name=pg_pg_out,json=pgPgOut,proto3" json:"pg_pg_out,omitempty"`
  97. PgFault uint64 `protobuf:"varint,9,opt,name=pg_fault,json=pgFault,proto3" json:"pg_fault,omitempty"`
  98. PgMajFault uint64 `protobuf:"varint,10,opt,name=pg_maj_fault,json=pgMajFault,proto3" json:"pg_maj_fault,omitempty"`
  99. InactiveAnon uint64 `protobuf:"varint,11,opt,name=inactive_anon,json=inactiveAnon,proto3" json:"inactive_anon,omitempty"`
  100. ActiveAnon uint64 `protobuf:"varint,12,opt,name=active_anon,json=activeAnon,proto3" json:"active_anon,omitempty"`
  101. InactiveFile uint64 `protobuf:"varint,13,opt,name=inactive_file,json=inactiveFile,proto3" json:"inactive_file,omitempty"`
  102. ActiveFile uint64 `protobuf:"varint,14,opt,name=active_file,json=activeFile,proto3" json:"active_file,omitempty"`
  103. Unevictable uint64 `protobuf:"varint,15,opt,name=unevictable,proto3" json:"unevictable,omitempty"`
  104. HierarchicalMemoryLimit uint64 `protobuf:"varint,16,opt,name=hierarchical_memory_limit,json=hierarchicalMemoryLimit,proto3" json:"hierarchical_memory_limit,omitempty"`
  105. HierarchicalSwapLimit uint64 `protobuf:"varint,17,opt,name=hierarchical_swap_limit,json=hierarchicalSwapLimit,proto3" json:"hierarchical_swap_limit,omitempty"`
  106. TotalCache uint64 `protobuf:"varint,18,opt,name=total_cache,json=totalCache,proto3" json:"total_cache,omitempty"`
  107. TotalRSS uint64 `protobuf:"varint,19,opt,name=total_rss,json=totalRss,proto3" json:"total_rss,omitempty"`
  108. TotalRSSHuge uint64 `protobuf:"varint,20,opt,name=total_rss_huge,json=totalRssHuge,proto3" json:"total_rss_huge,omitempty"`
  109. TotalMappedFile uint64 `protobuf:"varint,21,opt,name=total_mapped_file,json=totalMappedFile,proto3" json:"total_mapped_file,omitempty"`
  110. TotalDirty uint64 `protobuf:"varint,22,opt,name=total_dirty,json=totalDirty,proto3" json:"total_dirty,omitempty"`
  111. TotalWriteback uint64 `protobuf:"varint,23,opt,name=total_writeback,json=totalWriteback,proto3" json:"total_writeback,omitempty"`
  112. TotalPgPgIn uint64 `protobuf:"varint,24,opt,name=total_pg_pg_in,json=totalPgPgIn,proto3" json:"total_pg_pg_in,omitempty"`
  113. TotalPgPgOut uint64 `protobuf:"varint,25,opt,name=total_pg_pg_out,json=totalPgPgOut,proto3" json:"total_pg_pg_out,omitempty"`
  114. TotalPgFault uint64 `protobuf:"varint,26,opt,name=total_pg_fault,json=totalPgFault,proto3" json:"total_pg_fault,omitempty"`
  115. TotalPgMajFault uint64 `protobuf:"varint,27,opt,name=total_pg_maj_fault,json=totalPgMajFault,proto3" json:"total_pg_maj_fault,omitempty"`
  116. TotalInactiveAnon uint64 `protobuf:"varint,28,opt,name=total_inactive_anon,json=totalInactiveAnon,proto3" json:"total_inactive_anon,omitempty"`
  117. TotalActiveAnon uint64 `protobuf:"varint,29,opt,name=total_active_anon,json=totalActiveAnon,proto3" json:"total_active_anon,omitempty"`
  118. TotalInactiveFile uint64 `protobuf:"varint,30,opt,name=total_inactive_file,json=totalInactiveFile,proto3" json:"total_inactive_file,omitempty"`
  119. TotalActiveFile uint64 `protobuf:"varint,31,opt,name=total_active_file,json=totalActiveFile,proto3" json:"total_active_file,omitempty"`
  120. TotalUnevictable uint64 `protobuf:"varint,32,opt,name=total_unevictable,json=totalUnevictable,proto3" json:"total_unevictable,omitempty"`
  121. Usage *MemoryEntry `protobuf:"bytes,33,opt,name=usage" json:"usage,omitempty"`
  122. Swap *MemoryEntry `protobuf:"bytes,34,opt,name=swap" json:"swap,omitempty"`
  123. Kernel *MemoryEntry `protobuf:"bytes,35,opt,name=kernel" json:"kernel,omitempty"`
  124. KernelTCP *MemoryEntry `protobuf:"bytes,36,opt,name=kernel_tcp,json=kernelTcp" json:"kernel_tcp,omitempty"`
  125. }
  126. func (m *MemoryStat) Reset() { *m = MemoryStat{} }
  127. func (*MemoryStat) ProtoMessage() {}
  128. func (*MemoryStat) Descriptor() ([]byte, []int) { return fileDescriptorMetrics, []int{6} }
  129. type MemoryEntry struct {
  130. Limit uint64 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"`
  131. Usage uint64 `protobuf:"varint,2,opt,name=usage,proto3" json:"usage,omitempty"`
  132. Max uint64 `protobuf:"varint,3,opt,name=max,proto3" json:"max,omitempty"`
  133. Failcnt uint64 `protobuf:"varint,4,opt,name=failcnt,proto3" json:"failcnt,omitempty"`
  134. }
  135. func (m *MemoryEntry) Reset() { *m = MemoryEntry{} }
  136. func (*MemoryEntry) ProtoMessage() {}
  137. func (*MemoryEntry) Descriptor() ([]byte, []int) { return fileDescriptorMetrics, []int{7} }
  138. type BlkIOStat struct {
  139. IoServiceBytesRecursive []*BlkIOEntry `protobuf:"bytes,1,rep,name=io_service_bytes_recursive,json=ioServiceBytesRecursive" json:"io_service_bytes_recursive,omitempty"`
  140. IoServicedRecursive []*BlkIOEntry `protobuf:"bytes,2,rep,name=io_serviced_recursive,json=ioServicedRecursive" json:"io_serviced_recursive,omitempty"`
  141. IoQueuedRecursive []*BlkIOEntry `protobuf:"bytes,3,rep,name=io_queued_recursive,json=ioQueuedRecursive" json:"io_queued_recursive,omitempty"`
  142. IoServiceTimeRecursive []*BlkIOEntry `protobuf:"bytes,4,rep,name=io_service_time_recursive,json=ioServiceTimeRecursive" json:"io_service_time_recursive,omitempty"`
  143. IoWaitTimeRecursive []*BlkIOEntry `protobuf:"bytes,5,rep,name=io_wait_time_recursive,json=ioWaitTimeRecursive" json:"io_wait_time_recursive,omitempty"`
  144. IoMergedRecursive []*BlkIOEntry `protobuf:"bytes,6,rep,name=io_merged_recursive,json=ioMergedRecursive" json:"io_merged_recursive,omitempty"`
  145. IoTimeRecursive []*BlkIOEntry `protobuf:"bytes,7,rep,name=io_time_recursive,json=ioTimeRecursive" json:"io_time_recursive,omitempty"`
  146. SectorsRecursive []*BlkIOEntry `protobuf:"bytes,8,rep,name=sectors_recursive,json=sectorsRecursive" json:"sectors_recursive,omitempty"`
  147. }
  148. func (m *BlkIOStat) Reset() { *m = BlkIOStat{} }
  149. func (*BlkIOStat) ProtoMessage() {}
  150. func (*BlkIOStat) Descriptor() ([]byte, []int) { return fileDescriptorMetrics, []int{8} }
  151. type BlkIOEntry struct {
  152. Op string `protobuf:"bytes,1,opt,name=op,proto3" json:"op,omitempty"`
  153. Device string `protobuf:"bytes,2,opt,name=device,proto3" json:"device,omitempty"`
  154. Major uint64 `protobuf:"varint,3,opt,name=major,proto3" json:"major,omitempty"`
  155. Minor uint64 `protobuf:"varint,4,opt,name=minor,proto3" json:"minor,omitempty"`
  156. Value uint64 `protobuf:"varint,5,opt,name=value,proto3" json:"value,omitempty"`
  157. }
  158. func (m *BlkIOEntry) Reset() { *m = BlkIOEntry{} }
  159. func (*BlkIOEntry) ProtoMessage() {}
  160. func (*BlkIOEntry) Descriptor() ([]byte, []int) { return fileDescriptorMetrics, []int{9} }
  161. func init() {
  162. proto.RegisterType((*Metrics)(nil), "io.containerd.cgroups.v1.Metrics")
  163. proto.RegisterType((*HugetlbStat)(nil), "io.containerd.cgroups.v1.HugetlbStat")
  164. proto.RegisterType((*PidsStat)(nil), "io.containerd.cgroups.v1.PidsStat")
  165. proto.RegisterType((*CPUStat)(nil), "io.containerd.cgroups.v1.CPUStat")
  166. proto.RegisterType((*CPUUsage)(nil), "io.containerd.cgroups.v1.CPUUsage")
  167. proto.RegisterType((*Throttle)(nil), "io.containerd.cgroups.v1.Throttle")
  168. proto.RegisterType((*MemoryStat)(nil), "io.containerd.cgroups.v1.MemoryStat")
  169. proto.RegisterType((*MemoryEntry)(nil), "io.containerd.cgroups.v1.MemoryEntry")
  170. proto.RegisterType((*BlkIOStat)(nil), "io.containerd.cgroups.v1.BlkIOStat")
  171. proto.RegisterType((*BlkIOEntry)(nil), "io.containerd.cgroups.v1.BlkIOEntry")
  172. }
  173. func (m *Metrics) Marshal() (dAtA []byte, err error) {
  174. size := m.Size()
  175. dAtA = make([]byte, size)
  176. n, err := m.MarshalTo(dAtA)
  177. if err != nil {
  178. return nil, err
  179. }
  180. return dAtA[:n], nil
  181. }
  182. func (m *Metrics) MarshalTo(dAtA []byte) (int, error) {
  183. var i int
  184. _ = i
  185. var l int
  186. _ = l
  187. if len(m.Hugetlb) > 0 {
  188. for _, msg := range m.Hugetlb {
  189. dAtA[i] = 0xa
  190. i++
  191. i = encodeVarintMetrics(dAtA, i, uint64(msg.Size()))
  192. n, err := msg.MarshalTo(dAtA[i:])
  193. if err != nil {
  194. return 0, err
  195. }
  196. i += n
  197. }
  198. }
  199. if m.Pids != nil {
  200. dAtA[i] = 0x12
  201. i++
  202. i = encodeVarintMetrics(dAtA, i, uint64(m.Pids.Size()))
  203. n1, err := m.Pids.MarshalTo(dAtA[i:])
  204. if err != nil {
  205. return 0, err
  206. }
  207. i += n1
  208. }
  209. if m.CPU != nil {
  210. dAtA[i] = 0x1a
  211. i++
  212. i = encodeVarintMetrics(dAtA, i, uint64(m.CPU.Size()))
  213. n2, err := m.CPU.MarshalTo(dAtA[i:])
  214. if err != nil {
  215. return 0, err
  216. }
  217. i += n2
  218. }
  219. if m.Memory != nil {
  220. dAtA[i] = 0x22
  221. i++
  222. i = encodeVarintMetrics(dAtA, i, uint64(m.Memory.Size()))
  223. n3, err := m.Memory.MarshalTo(dAtA[i:])
  224. if err != nil {
  225. return 0, err
  226. }
  227. i += n3
  228. }
  229. if m.Blkio != nil {
  230. dAtA[i] = 0x2a
  231. i++
  232. i = encodeVarintMetrics(dAtA, i, uint64(m.Blkio.Size()))
  233. n4, err := m.Blkio.MarshalTo(dAtA[i:])
  234. if err != nil {
  235. return 0, err
  236. }
  237. i += n4
  238. }
  239. return i, nil
  240. }
  241. func (m *HugetlbStat) Marshal() (dAtA []byte, err error) {
  242. size := m.Size()
  243. dAtA = make([]byte, size)
  244. n, err := m.MarshalTo(dAtA)
  245. if err != nil {
  246. return nil, err
  247. }
  248. return dAtA[:n], nil
  249. }
  250. func (m *HugetlbStat) MarshalTo(dAtA []byte) (int, error) {
  251. var i int
  252. _ = i
  253. var l int
  254. _ = l
  255. if m.Usage != 0 {
  256. dAtA[i] = 0x8
  257. i++
  258. i = encodeVarintMetrics(dAtA, i, uint64(m.Usage))
  259. }
  260. if m.Max != 0 {
  261. dAtA[i] = 0x10
  262. i++
  263. i = encodeVarintMetrics(dAtA, i, uint64(m.Max))
  264. }
  265. if m.Failcnt != 0 {
  266. dAtA[i] = 0x18
  267. i++
  268. i = encodeVarintMetrics(dAtA, i, uint64(m.Failcnt))
  269. }
  270. if len(m.Pagesize) > 0 {
  271. dAtA[i] = 0x22
  272. i++
  273. i = encodeVarintMetrics(dAtA, i, uint64(len(m.Pagesize)))
  274. i += copy(dAtA[i:], m.Pagesize)
  275. }
  276. return i, nil
  277. }
  278. func (m *PidsStat) Marshal() (dAtA []byte, err error) {
  279. size := m.Size()
  280. dAtA = make([]byte, size)
  281. n, err := m.MarshalTo(dAtA)
  282. if err != nil {
  283. return nil, err
  284. }
  285. return dAtA[:n], nil
  286. }
  287. func (m *PidsStat) MarshalTo(dAtA []byte) (int, error) {
  288. var i int
  289. _ = i
  290. var l int
  291. _ = l
  292. if m.Current != 0 {
  293. dAtA[i] = 0x8
  294. i++
  295. i = encodeVarintMetrics(dAtA, i, uint64(m.Current))
  296. }
  297. if m.Limit != 0 {
  298. dAtA[i] = 0x10
  299. i++
  300. i = encodeVarintMetrics(dAtA, i, uint64(m.Limit))
  301. }
  302. return i, nil
  303. }
  304. func (m *CPUStat) Marshal() (dAtA []byte, err error) {
  305. size := m.Size()
  306. dAtA = make([]byte, size)
  307. n, err := m.MarshalTo(dAtA)
  308. if err != nil {
  309. return nil, err
  310. }
  311. return dAtA[:n], nil
  312. }
  313. func (m *CPUStat) MarshalTo(dAtA []byte) (int, error) {
  314. var i int
  315. _ = i
  316. var l int
  317. _ = l
  318. if m.Usage != nil {
  319. dAtA[i] = 0xa
  320. i++
  321. i = encodeVarintMetrics(dAtA, i, uint64(m.Usage.Size()))
  322. n5, err := m.Usage.MarshalTo(dAtA[i:])
  323. if err != nil {
  324. return 0, err
  325. }
  326. i += n5
  327. }
  328. if m.Throttling != nil {
  329. dAtA[i] = 0x12
  330. i++
  331. i = encodeVarintMetrics(dAtA, i, uint64(m.Throttling.Size()))
  332. n6, err := m.Throttling.MarshalTo(dAtA[i:])
  333. if err != nil {
  334. return 0, err
  335. }
  336. i += n6
  337. }
  338. return i, nil
  339. }
  340. func (m *CPUUsage) Marshal() (dAtA []byte, err error) {
  341. size := m.Size()
  342. dAtA = make([]byte, size)
  343. n, err := m.MarshalTo(dAtA)
  344. if err != nil {
  345. return nil, err
  346. }
  347. return dAtA[:n], nil
  348. }
  349. func (m *CPUUsage) MarshalTo(dAtA []byte) (int, error) {
  350. var i int
  351. _ = i
  352. var l int
  353. _ = l
  354. if m.Total != 0 {
  355. dAtA[i] = 0x8
  356. i++
  357. i = encodeVarintMetrics(dAtA, i, uint64(m.Total))
  358. }
  359. if m.Kernel != 0 {
  360. dAtA[i] = 0x10
  361. i++
  362. i = encodeVarintMetrics(dAtA, i, uint64(m.Kernel))
  363. }
  364. if m.User != 0 {
  365. dAtA[i] = 0x18
  366. i++
  367. i = encodeVarintMetrics(dAtA, i, uint64(m.User))
  368. }
  369. if len(m.PerCPU) > 0 {
  370. dAtA8 := make([]byte, len(m.PerCPU)*10)
  371. var j7 int
  372. for _, num := range m.PerCPU {
  373. for num >= 1<<7 {
  374. dAtA8[j7] = uint8(uint64(num)&0x7f | 0x80)
  375. num >>= 7
  376. j7++
  377. }
  378. dAtA8[j7] = uint8(num)
  379. j7++
  380. }
  381. dAtA[i] = 0x22
  382. i++
  383. i = encodeVarintMetrics(dAtA, i, uint64(j7))
  384. i += copy(dAtA[i:], dAtA8[:j7])
  385. }
  386. return i, nil
  387. }
  388. func (m *Throttle) Marshal() (dAtA []byte, err error) {
  389. size := m.Size()
  390. dAtA = make([]byte, size)
  391. n, err := m.MarshalTo(dAtA)
  392. if err != nil {
  393. return nil, err
  394. }
  395. return dAtA[:n], nil
  396. }
  397. func (m *Throttle) MarshalTo(dAtA []byte) (int, error) {
  398. var i int
  399. _ = i
  400. var l int
  401. _ = l
  402. if m.Periods != 0 {
  403. dAtA[i] = 0x8
  404. i++
  405. i = encodeVarintMetrics(dAtA, i, uint64(m.Periods))
  406. }
  407. if m.ThrottledPeriods != 0 {
  408. dAtA[i] = 0x10
  409. i++
  410. i = encodeVarintMetrics(dAtA, i, uint64(m.ThrottledPeriods))
  411. }
  412. if m.ThrottledTime != 0 {
  413. dAtA[i] = 0x18
  414. i++
  415. i = encodeVarintMetrics(dAtA, i, uint64(m.ThrottledTime))
  416. }
  417. return i, nil
  418. }
  419. func (m *MemoryStat) Marshal() (dAtA []byte, err error) {
  420. size := m.Size()
  421. dAtA = make([]byte, size)
  422. n, err := m.MarshalTo(dAtA)
  423. if err != nil {
  424. return nil, err
  425. }
  426. return dAtA[:n], nil
  427. }
  428. func (m *MemoryStat) MarshalTo(dAtA []byte) (int, error) {
  429. var i int
  430. _ = i
  431. var l int
  432. _ = l
  433. if m.Cache != 0 {
  434. dAtA[i] = 0x8
  435. i++
  436. i = encodeVarintMetrics(dAtA, i, uint64(m.Cache))
  437. }
  438. if m.RSS != 0 {
  439. dAtA[i] = 0x10
  440. i++
  441. i = encodeVarintMetrics(dAtA, i, uint64(m.RSS))
  442. }
  443. if m.RSSHuge != 0 {
  444. dAtA[i] = 0x18
  445. i++
  446. i = encodeVarintMetrics(dAtA, i, uint64(m.RSSHuge))
  447. }
  448. if m.MappedFile != 0 {
  449. dAtA[i] = 0x20
  450. i++
  451. i = encodeVarintMetrics(dAtA, i, uint64(m.MappedFile))
  452. }
  453. if m.Dirty != 0 {
  454. dAtA[i] = 0x28
  455. i++
  456. i = encodeVarintMetrics(dAtA, i, uint64(m.Dirty))
  457. }
  458. if m.Writeback != 0 {
  459. dAtA[i] = 0x30
  460. i++
  461. i = encodeVarintMetrics(dAtA, i, uint64(m.Writeback))
  462. }
  463. if m.PgPgIn != 0 {
  464. dAtA[i] = 0x38
  465. i++
  466. i = encodeVarintMetrics(dAtA, i, uint64(m.PgPgIn))
  467. }
  468. if m.PgPgOut != 0 {
  469. dAtA[i] = 0x40
  470. i++
  471. i = encodeVarintMetrics(dAtA, i, uint64(m.PgPgOut))
  472. }
  473. if m.PgFault != 0 {
  474. dAtA[i] = 0x48
  475. i++
  476. i = encodeVarintMetrics(dAtA, i, uint64(m.PgFault))
  477. }
  478. if m.PgMajFault != 0 {
  479. dAtA[i] = 0x50
  480. i++
  481. i = encodeVarintMetrics(dAtA, i, uint64(m.PgMajFault))
  482. }
  483. if m.InactiveAnon != 0 {
  484. dAtA[i] = 0x58
  485. i++
  486. i = encodeVarintMetrics(dAtA, i, uint64(m.InactiveAnon))
  487. }
  488. if m.ActiveAnon != 0 {
  489. dAtA[i] = 0x60
  490. i++
  491. i = encodeVarintMetrics(dAtA, i, uint64(m.ActiveAnon))
  492. }
  493. if m.InactiveFile != 0 {
  494. dAtA[i] = 0x68
  495. i++
  496. i = encodeVarintMetrics(dAtA, i, uint64(m.InactiveFile))
  497. }
  498. if m.ActiveFile != 0 {
  499. dAtA[i] = 0x70
  500. i++
  501. i = encodeVarintMetrics(dAtA, i, uint64(m.ActiveFile))
  502. }
  503. if m.Unevictable != 0 {
  504. dAtA[i] = 0x78
  505. i++
  506. i = encodeVarintMetrics(dAtA, i, uint64(m.Unevictable))
  507. }
  508. if m.HierarchicalMemoryLimit != 0 {
  509. dAtA[i] = 0x80
  510. i++
  511. dAtA[i] = 0x1
  512. i++
  513. i = encodeVarintMetrics(dAtA, i, uint64(m.HierarchicalMemoryLimit))
  514. }
  515. if m.HierarchicalSwapLimit != 0 {
  516. dAtA[i] = 0x88
  517. i++
  518. dAtA[i] = 0x1
  519. i++
  520. i = encodeVarintMetrics(dAtA, i, uint64(m.HierarchicalSwapLimit))
  521. }
  522. if m.TotalCache != 0 {
  523. dAtA[i] = 0x90
  524. i++
  525. dAtA[i] = 0x1
  526. i++
  527. i = encodeVarintMetrics(dAtA, i, uint64(m.TotalCache))
  528. }
  529. if m.TotalRSS != 0 {
  530. dAtA[i] = 0x98
  531. i++
  532. dAtA[i] = 0x1
  533. i++
  534. i = encodeVarintMetrics(dAtA, i, uint64(m.TotalRSS))
  535. }
  536. if m.TotalRSSHuge != 0 {
  537. dAtA[i] = 0xa0
  538. i++
  539. dAtA[i] = 0x1
  540. i++
  541. i = encodeVarintMetrics(dAtA, i, uint64(m.TotalRSSHuge))
  542. }
  543. if m.TotalMappedFile != 0 {
  544. dAtA[i] = 0xa8
  545. i++
  546. dAtA[i] = 0x1
  547. i++
  548. i = encodeVarintMetrics(dAtA, i, uint64(m.TotalMappedFile))
  549. }
  550. if m.TotalDirty != 0 {
  551. dAtA[i] = 0xb0
  552. i++
  553. dAtA[i] = 0x1
  554. i++
  555. i = encodeVarintMetrics(dAtA, i, uint64(m.TotalDirty))
  556. }
  557. if m.TotalWriteback != 0 {
  558. dAtA[i] = 0xb8
  559. i++
  560. dAtA[i] = 0x1
  561. i++
  562. i = encodeVarintMetrics(dAtA, i, uint64(m.TotalWriteback))
  563. }
  564. if m.TotalPgPgIn != 0 {
  565. dAtA[i] = 0xc0
  566. i++
  567. dAtA[i] = 0x1
  568. i++
  569. i = encodeVarintMetrics(dAtA, i, uint64(m.TotalPgPgIn))
  570. }
  571. if m.TotalPgPgOut != 0 {
  572. dAtA[i] = 0xc8
  573. i++
  574. dAtA[i] = 0x1
  575. i++
  576. i = encodeVarintMetrics(dAtA, i, uint64(m.TotalPgPgOut))
  577. }
  578. if m.TotalPgFault != 0 {
  579. dAtA[i] = 0xd0
  580. i++
  581. dAtA[i] = 0x1
  582. i++
  583. i = encodeVarintMetrics(dAtA, i, uint64(m.TotalPgFault))
  584. }
  585. if m.TotalPgMajFault != 0 {
  586. dAtA[i] = 0xd8
  587. i++
  588. dAtA[i] = 0x1
  589. i++
  590. i = encodeVarintMetrics(dAtA, i, uint64(m.TotalPgMajFault))
  591. }
  592. if m.TotalInactiveAnon != 0 {
  593. dAtA[i] = 0xe0
  594. i++
  595. dAtA[i] = 0x1
  596. i++
  597. i = encodeVarintMetrics(dAtA, i, uint64(m.TotalInactiveAnon))
  598. }
  599. if m.TotalActiveAnon != 0 {
  600. dAtA[i] = 0xe8
  601. i++
  602. dAtA[i] = 0x1
  603. i++
  604. i = encodeVarintMetrics(dAtA, i, uint64(m.TotalActiveAnon))
  605. }
  606. if m.TotalInactiveFile != 0 {
  607. dAtA[i] = 0xf0
  608. i++
  609. dAtA[i] = 0x1
  610. i++
  611. i = encodeVarintMetrics(dAtA, i, uint64(m.TotalInactiveFile))
  612. }
  613. if m.TotalActiveFile != 0 {
  614. dAtA[i] = 0xf8
  615. i++
  616. dAtA[i] = 0x1
  617. i++
  618. i = encodeVarintMetrics(dAtA, i, uint64(m.TotalActiveFile))
  619. }
  620. if m.TotalUnevictable != 0 {
  621. dAtA[i] = 0x80
  622. i++
  623. dAtA[i] = 0x2
  624. i++
  625. i = encodeVarintMetrics(dAtA, i, uint64(m.TotalUnevictable))
  626. }
  627. if m.Usage != nil {
  628. dAtA[i] = 0x8a
  629. i++
  630. dAtA[i] = 0x2
  631. i++
  632. i = encodeVarintMetrics(dAtA, i, uint64(m.Usage.Size()))
  633. n9, err := m.Usage.MarshalTo(dAtA[i:])
  634. if err != nil {
  635. return 0, err
  636. }
  637. i += n9
  638. }
  639. if m.Swap != nil {
  640. dAtA[i] = 0x92
  641. i++
  642. dAtA[i] = 0x2
  643. i++
  644. i = encodeVarintMetrics(dAtA, i, uint64(m.Swap.Size()))
  645. n10, err := m.Swap.MarshalTo(dAtA[i:])
  646. if err != nil {
  647. return 0, err
  648. }
  649. i += n10
  650. }
  651. if m.Kernel != nil {
  652. dAtA[i] = 0x9a
  653. i++
  654. dAtA[i] = 0x2
  655. i++
  656. i = encodeVarintMetrics(dAtA, i, uint64(m.Kernel.Size()))
  657. n11, err := m.Kernel.MarshalTo(dAtA[i:])
  658. if err != nil {
  659. return 0, err
  660. }
  661. i += n11
  662. }
  663. if m.KernelTCP != nil {
  664. dAtA[i] = 0xa2
  665. i++
  666. dAtA[i] = 0x2
  667. i++
  668. i = encodeVarintMetrics(dAtA, i, uint64(m.KernelTCP.Size()))
  669. n12, err := m.KernelTCP.MarshalTo(dAtA[i:])
  670. if err != nil {
  671. return 0, err
  672. }
  673. i += n12
  674. }
  675. return i, nil
  676. }
  677. func (m *MemoryEntry) Marshal() (dAtA []byte, err error) {
  678. size := m.Size()
  679. dAtA = make([]byte, size)
  680. n, err := m.MarshalTo(dAtA)
  681. if err != nil {
  682. return nil, err
  683. }
  684. return dAtA[:n], nil
  685. }
  686. func (m *MemoryEntry) MarshalTo(dAtA []byte) (int, error) {
  687. var i int
  688. _ = i
  689. var l int
  690. _ = l
  691. if m.Limit != 0 {
  692. dAtA[i] = 0x8
  693. i++
  694. i = encodeVarintMetrics(dAtA, i, uint64(m.Limit))
  695. }
  696. if m.Usage != 0 {
  697. dAtA[i] = 0x10
  698. i++
  699. i = encodeVarintMetrics(dAtA, i, uint64(m.Usage))
  700. }
  701. if m.Max != 0 {
  702. dAtA[i] = 0x18
  703. i++
  704. i = encodeVarintMetrics(dAtA, i, uint64(m.Max))
  705. }
  706. if m.Failcnt != 0 {
  707. dAtA[i] = 0x20
  708. i++
  709. i = encodeVarintMetrics(dAtA, i, uint64(m.Failcnt))
  710. }
  711. return i, nil
  712. }
  713. func (m *BlkIOStat) Marshal() (dAtA []byte, err error) {
  714. size := m.Size()
  715. dAtA = make([]byte, size)
  716. n, err := m.MarshalTo(dAtA)
  717. if err != nil {
  718. return nil, err
  719. }
  720. return dAtA[:n], nil
  721. }
  722. func (m *BlkIOStat) MarshalTo(dAtA []byte) (int, error) {
  723. var i int
  724. _ = i
  725. var l int
  726. _ = l
  727. if len(m.IoServiceBytesRecursive) > 0 {
  728. for _, msg := range m.IoServiceBytesRecursive {
  729. dAtA[i] = 0xa
  730. i++
  731. i = encodeVarintMetrics(dAtA, i, uint64(msg.Size()))
  732. n, err := msg.MarshalTo(dAtA[i:])
  733. if err != nil {
  734. return 0, err
  735. }
  736. i += n
  737. }
  738. }
  739. if len(m.IoServicedRecursive) > 0 {
  740. for _, msg := range m.IoServicedRecursive {
  741. dAtA[i] = 0x12
  742. i++
  743. i = encodeVarintMetrics(dAtA, i, uint64(msg.Size()))
  744. n, err := msg.MarshalTo(dAtA[i:])
  745. if err != nil {
  746. return 0, err
  747. }
  748. i += n
  749. }
  750. }
  751. if len(m.IoQueuedRecursive) > 0 {
  752. for _, msg := range m.IoQueuedRecursive {
  753. dAtA[i] = 0x1a
  754. i++
  755. i = encodeVarintMetrics(dAtA, i, uint64(msg.Size()))
  756. n, err := msg.MarshalTo(dAtA[i:])
  757. if err != nil {
  758. return 0, err
  759. }
  760. i += n
  761. }
  762. }
  763. if len(m.IoServiceTimeRecursive) > 0 {
  764. for _, msg := range m.IoServiceTimeRecursive {
  765. dAtA[i] = 0x22
  766. i++
  767. i = encodeVarintMetrics(dAtA, i, uint64(msg.Size()))
  768. n, err := msg.MarshalTo(dAtA[i:])
  769. if err != nil {
  770. return 0, err
  771. }
  772. i += n
  773. }
  774. }
  775. if len(m.IoWaitTimeRecursive) > 0 {
  776. for _, msg := range m.IoWaitTimeRecursive {
  777. dAtA[i] = 0x2a
  778. i++
  779. i = encodeVarintMetrics(dAtA, i, uint64(msg.Size()))
  780. n, err := msg.MarshalTo(dAtA[i:])
  781. if err != nil {
  782. return 0, err
  783. }
  784. i += n
  785. }
  786. }
  787. if len(m.IoMergedRecursive) > 0 {
  788. for _, msg := range m.IoMergedRecursive {
  789. dAtA[i] = 0x32
  790. i++
  791. i = encodeVarintMetrics(dAtA, i, uint64(msg.Size()))
  792. n, err := msg.MarshalTo(dAtA[i:])
  793. if err != nil {
  794. return 0, err
  795. }
  796. i += n
  797. }
  798. }
  799. if len(m.IoTimeRecursive) > 0 {
  800. for _, msg := range m.IoTimeRecursive {
  801. dAtA[i] = 0x3a
  802. i++
  803. i = encodeVarintMetrics(dAtA, i, uint64(msg.Size()))
  804. n, err := msg.MarshalTo(dAtA[i:])
  805. if err != nil {
  806. return 0, err
  807. }
  808. i += n
  809. }
  810. }
  811. if len(m.SectorsRecursive) > 0 {
  812. for _, msg := range m.SectorsRecursive {
  813. dAtA[i] = 0x42
  814. i++
  815. i = encodeVarintMetrics(dAtA, i, uint64(msg.Size()))
  816. n, err := msg.MarshalTo(dAtA[i:])
  817. if err != nil {
  818. return 0, err
  819. }
  820. i += n
  821. }
  822. }
  823. return i, nil
  824. }
  825. func (m *BlkIOEntry) Marshal() (dAtA []byte, err error) {
  826. size := m.Size()
  827. dAtA = make([]byte, size)
  828. n, err := m.MarshalTo(dAtA)
  829. if err != nil {
  830. return nil, err
  831. }
  832. return dAtA[:n], nil
  833. }
  834. func (m *BlkIOEntry) MarshalTo(dAtA []byte) (int, error) {
  835. var i int
  836. _ = i
  837. var l int
  838. _ = l
  839. if len(m.Op) > 0 {
  840. dAtA[i] = 0xa
  841. i++
  842. i = encodeVarintMetrics(dAtA, i, uint64(len(m.Op)))
  843. i += copy(dAtA[i:], m.Op)
  844. }
  845. if len(m.Device) > 0 {
  846. dAtA[i] = 0x12
  847. i++
  848. i = encodeVarintMetrics(dAtA, i, uint64(len(m.Device)))
  849. i += copy(dAtA[i:], m.Device)
  850. }
  851. if m.Major != 0 {
  852. dAtA[i] = 0x18
  853. i++
  854. i = encodeVarintMetrics(dAtA, i, uint64(m.Major))
  855. }
  856. if m.Minor != 0 {
  857. dAtA[i] = 0x20
  858. i++
  859. i = encodeVarintMetrics(dAtA, i, uint64(m.Minor))
  860. }
  861. if m.Value != 0 {
  862. dAtA[i] = 0x28
  863. i++
  864. i = encodeVarintMetrics(dAtA, i, uint64(m.Value))
  865. }
  866. return i, nil
  867. }
  868. func encodeFixed64Metrics(dAtA []byte, offset int, v uint64) int {
  869. dAtA[offset] = uint8(v)
  870. dAtA[offset+1] = uint8(v >> 8)
  871. dAtA[offset+2] = uint8(v >> 16)
  872. dAtA[offset+3] = uint8(v >> 24)
  873. dAtA[offset+4] = uint8(v >> 32)
  874. dAtA[offset+5] = uint8(v >> 40)
  875. dAtA[offset+6] = uint8(v >> 48)
  876. dAtA[offset+7] = uint8(v >> 56)
  877. return offset + 8
  878. }
  879. func encodeFixed32Metrics(dAtA []byte, offset int, v uint32) int {
  880. dAtA[offset] = uint8(v)
  881. dAtA[offset+1] = uint8(v >> 8)
  882. dAtA[offset+2] = uint8(v >> 16)
  883. dAtA[offset+3] = uint8(v >> 24)
  884. return offset + 4
  885. }
  886. func encodeVarintMetrics(dAtA []byte, offset int, v uint64) int {
  887. for v >= 1<<7 {
  888. dAtA[offset] = uint8(v&0x7f | 0x80)
  889. v >>= 7
  890. offset++
  891. }
  892. dAtA[offset] = uint8(v)
  893. return offset + 1
  894. }
  895. func (m *Metrics) Size() (n int) {
  896. var l int
  897. _ = l
  898. if len(m.Hugetlb) > 0 {
  899. for _, e := range m.Hugetlb {
  900. l = e.Size()
  901. n += 1 + l + sovMetrics(uint64(l))
  902. }
  903. }
  904. if m.Pids != nil {
  905. l = m.Pids.Size()
  906. n += 1 + l + sovMetrics(uint64(l))
  907. }
  908. if m.CPU != nil {
  909. l = m.CPU.Size()
  910. n += 1 + l + sovMetrics(uint64(l))
  911. }
  912. if m.Memory != nil {
  913. l = m.Memory.Size()
  914. n += 1 + l + sovMetrics(uint64(l))
  915. }
  916. if m.Blkio != nil {
  917. l = m.Blkio.Size()
  918. n += 1 + l + sovMetrics(uint64(l))
  919. }
  920. return n
  921. }
  922. func (m *HugetlbStat) Size() (n int) {
  923. var l int
  924. _ = l
  925. if m.Usage != 0 {
  926. n += 1 + sovMetrics(uint64(m.Usage))
  927. }
  928. if m.Max != 0 {
  929. n += 1 + sovMetrics(uint64(m.Max))
  930. }
  931. if m.Failcnt != 0 {
  932. n += 1 + sovMetrics(uint64(m.Failcnt))
  933. }
  934. l = len(m.Pagesize)
  935. if l > 0 {
  936. n += 1 + l + sovMetrics(uint64(l))
  937. }
  938. return n
  939. }
  940. func (m *PidsStat) Size() (n int) {
  941. var l int
  942. _ = l
  943. if m.Current != 0 {
  944. n += 1 + sovMetrics(uint64(m.Current))
  945. }
  946. if m.Limit != 0 {
  947. n += 1 + sovMetrics(uint64(m.Limit))
  948. }
  949. return n
  950. }
  951. func (m *CPUStat) Size() (n int) {
  952. var l int
  953. _ = l
  954. if m.Usage != nil {
  955. l = m.Usage.Size()
  956. n += 1 + l + sovMetrics(uint64(l))
  957. }
  958. if m.Throttling != nil {
  959. l = m.Throttling.Size()
  960. n += 1 + l + sovMetrics(uint64(l))
  961. }
  962. return n
  963. }
  964. func (m *CPUUsage) Size() (n int) {
  965. var l int
  966. _ = l
  967. if m.Total != 0 {
  968. n += 1 + sovMetrics(uint64(m.Total))
  969. }
  970. if m.Kernel != 0 {
  971. n += 1 + sovMetrics(uint64(m.Kernel))
  972. }
  973. if m.User != 0 {
  974. n += 1 + sovMetrics(uint64(m.User))
  975. }
  976. if len(m.PerCPU) > 0 {
  977. l = 0
  978. for _, e := range m.PerCPU {
  979. l += sovMetrics(uint64(e))
  980. }
  981. n += 1 + sovMetrics(uint64(l)) + l
  982. }
  983. return n
  984. }
  985. func (m *Throttle) Size() (n int) {
  986. var l int
  987. _ = l
  988. if m.Periods != 0 {
  989. n += 1 + sovMetrics(uint64(m.Periods))
  990. }
  991. if m.ThrottledPeriods != 0 {
  992. n += 1 + sovMetrics(uint64(m.ThrottledPeriods))
  993. }
  994. if m.ThrottledTime != 0 {
  995. n += 1 + sovMetrics(uint64(m.ThrottledTime))
  996. }
  997. return n
  998. }
  999. func (m *MemoryStat) Size() (n int) {
  1000. var l int
  1001. _ = l
  1002. if m.Cache != 0 {
  1003. n += 1 + sovMetrics(uint64(m.Cache))
  1004. }
  1005. if m.RSS != 0 {
  1006. n += 1 + sovMetrics(uint64(m.RSS))
  1007. }
  1008. if m.RSSHuge != 0 {
  1009. n += 1 + sovMetrics(uint64(m.RSSHuge))
  1010. }
  1011. if m.MappedFile != 0 {
  1012. n += 1 + sovMetrics(uint64(m.MappedFile))
  1013. }
  1014. if m.Dirty != 0 {
  1015. n += 1 + sovMetrics(uint64(m.Dirty))
  1016. }
  1017. if m.Writeback != 0 {
  1018. n += 1 + sovMetrics(uint64(m.Writeback))
  1019. }
  1020. if m.PgPgIn != 0 {
  1021. n += 1 + sovMetrics(uint64(m.PgPgIn))
  1022. }
  1023. if m.PgPgOut != 0 {
  1024. n += 1 + sovMetrics(uint64(m.PgPgOut))
  1025. }
  1026. if m.PgFault != 0 {
  1027. n += 1 + sovMetrics(uint64(m.PgFault))
  1028. }
  1029. if m.PgMajFault != 0 {
  1030. n += 1 + sovMetrics(uint64(m.PgMajFault))
  1031. }
  1032. if m.InactiveAnon != 0 {
  1033. n += 1 + sovMetrics(uint64(m.InactiveAnon))
  1034. }
  1035. if m.ActiveAnon != 0 {
  1036. n += 1 + sovMetrics(uint64(m.ActiveAnon))
  1037. }
  1038. if m.InactiveFile != 0 {
  1039. n += 1 + sovMetrics(uint64(m.InactiveFile))
  1040. }
  1041. if m.ActiveFile != 0 {
  1042. n += 1 + sovMetrics(uint64(m.ActiveFile))
  1043. }
  1044. if m.Unevictable != 0 {
  1045. n += 1 + sovMetrics(uint64(m.Unevictable))
  1046. }
  1047. if m.HierarchicalMemoryLimit != 0 {
  1048. n += 2 + sovMetrics(uint64(m.HierarchicalMemoryLimit))
  1049. }
  1050. if m.HierarchicalSwapLimit != 0 {
  1051. n += 2 + sovMetrics(uint64(m.HierarchicalSwapLimit))
  1052. }
  1053. if m.TotalCache != 0 {
  1054. n += 2 + sovMetrics(uint64(m.TotalCache))
  1055. }
  1056. if m.TotalRSS != 0 {
  1057. n += 2 + sovMetrics(uint64(m.TotalRSS))
  1058. }
  1059. if m.TotalRSSHuge != 0 {
  1060. n += 2 + sovMetrics(uint64(m.TotalRSSHuge))
  1061. }
  1062. if m.TotalMappedFile != 0 {
  1063. n += 2 + sovMetrics(uint64(m.TotalMappedFile))
  1064. }
  1065. if m.TotalDirty != 0 {
  1066. n += 2 + sovMetrics(uint64(m.TotalDirty))
  1067. }
  1068. if m.TotalWriteback != 0 {
  1069. n += 2 + sovMetrics(uint64(m.TotalWriteback))
  1070. }
  1071. if m.TotalPgPgIn != 0 {
  1072. n += 2 + sovMetrics(uint64(m.TotalPgPgIn))
  1073. }
  1074. if m.TotalPgPgOut != 0 {
  1075. n += 2 + sovMetrics(uint64(m.TotalPgPgOut))
  1076. }
  1077. if m.TotalPgFault != 0 {
  1078. n += 2 + sovMetrics(uint64(m.TotalPgFault))
  1079. }
  1080. if m.TotalPgMajFault != 0 {
  1081. n += 2 + sovMetrics(uint64(m.TotalPgMajFault))
  1082. }
  1083. if m.TotalInactiveAnon != 0 {
  1084. n += 2 + sovMetrics(uint64(m.TotalInactiveAnon))
  1085. }
  1086. if m.TotalActiveAnon != 0 {
  1087. n += 2 + sovMetrics(uint64(m.TotalActiveAnon))
  1088. }
  1089. if m.TotalInactiveFile != 0 {
  1090. n += 2 + sovMetrics(uint64(m.TotalInactiveFile))
  1091. }
  1092. if m.TotalActiveFile != 0 {
  1093. n += 2 + sovMetrics(uint64(m.TotalActiveFile))
  1094. }
  1095. if m.TotalUnevictable != 0 {
  1096. n += 2 + sovMetrics(uint64(m.TotalUnevictable))
  1097. }
  1098. if m.Usage != nil {
  1099. l = m.Usage.Size()
  1100. n += 2 + l + sovMetrics(uint64(l))
  1101. }
  1102. if m.Swap != nil {
  1103. l = m.Swap.Size()
  1104. n += 2 + l + sovMetrics(uint64(l))
  1105. }
  1106. if m.Kernel != nil {
  1107. l = m.Kernel.Size()
  1108. n += 2 + l + sovMetrics(uint64(l))
  1109. }
  1110. if m.KernelTCP != nil {
  1111. l = m.KernelTCP.Size()
  1112. n += 2 + l + sovMetrics(uint64(l))
  1113. }
  1114. return n
  1115. }
  1116. func (m *MemoryEntry) Size() (n int) {
  1117. var l int
  1118. _ = l
  1119. if m.Limit != 0 {
  1120. n += 1 + sovMetrics(uint64(m.Limit))
  1121. }
  1122. if m.Usage != 0 {
  1123. n += 1 + sovMetrics(uint64(m.Usage))
  1124. }
  1125. if m.Max != 0 {
  1126. n += 1 + sovMetrics(uint64(m.Max))
  1127. }
  1128. if m.Failcnt != 0 {
  1129. n += 1 + sovMetrics(uint64(m.Failcnt))
  1130. }
  1131. return n
  1132. }
  1133. func (m *BlkIOStat) Size() (n int) {
  1134. var l int
  1135. _ = l
  1136. if len(m.IoServiceBytesRecursive) > 0 {
  1137. for _, e := range m.IoServiceBytesRecursive {
  1138. l = e.Size()
  1139. n += 1 + l + sovMetrics(uint64(l))
  1140. }
  1141. }
  1142. if len(m.IoServicedRecursive) > 0 {
  1143. for _, e := range m.IoServicedRecursive {
  1144. l = e.Size()
  1145. n += 1 + l + sovMetrics(uint64(l))
  1146. }
  1147. }
  1148. if len(m.IoQueuedRecursive) > 0 {
  1149. for _, e := range m.IoQueuedRecursive {
  1150. l = e.Size()
  1151. n += 1 + l + sovMetrics(uint64(l))
  1152. }
  1153. }
  1154. if len(m.IoServiceTimeRecursive) > 0 {
  1155. for _, e := range m.IoServiceTimeRecursive {
  1156. l = e.Size()
  1157. n += 1 + l + sovMetrics(uint64(l))
  1158. }
  1159. }
  1160. if len(m.IoWaitTimeRecursive) > 0 {
  1161. for _, e := range m.IoWaitTimeRecursive {
  1162. l = e.Size()
  1163. n += 1 + l + sovMetrics(uint64(l))
  1164. }
  1165. }
  1166. if len(m.IoMergedRecursive) > 0 {
  1167. for _, e := range m.IoMergedRecursive {
  1168. l = e.Size()
  1169. n += 1 + l + sovMetrics(uint64(l))
  1170. }
  1171. }
  1172. if len(m.IoTimeRecursive) > 0 {
  1173. for _, e := range m.IoTimeRecursive {
  1174. l = e.Size()
  1175. n += 1 + l + sovMetrics(uint64(l))
  1176. }
  1177. }
  1178. if len(m.SectorsRecursive) > 0 {
  1179. for _, e := range m.SectorsRecursive {
  1180. l = e.Size()
  1181. n += 1 + l + sovMetrics(uint64(l))
  1182. }
  1183. }
  1184. return n
  1185. }
  1186. func (m *BlkIOEntry) Size() (n int) {
  1187. var l int
  1188. _ = l
  1189. l = len(m.Op)
  1190. if l > 0 {
  1191. n += 1 + l + sovMetrics(uint64(l))
  1192. }
  1193. l = len(m.Device)
  1194. if l > 0 {
  1195. n += 1 + l + sovMetrics(uint64(l))
  1196. }
  1197. if m.Major != 0 {
  1198. n += 1 + sovMetrics(uint64(m.Major))
  1199. }
  1200. if m.Minor != 0 {
  1201. n += 1 + sovMetrics(uint64(m.Minor))
  1202. }
  1203. if m.Value != 0 {
  1204. n += 1 + sovMetrics(uint64(m.Value))
  1205. }
  1206. return n
  1207. }
  1208. func sovMetrics(x uint64) (n int) {
  1209. for {
  1210. n++
  1211. x >>= 7
  1212. if x == 0 {
  1213. break
  1214. }
  1215. }
  1216. return n
  1217. }
  1218. func sozMetrics(x uint64) (n int) {
  1219. return sovMetrics(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  1220. }
  1221. func (this *Metrics) String() string {
  1222. if this == nil {
  1223. return "nil"
  1224. }
  1225. s := strings.Join([]string{`&Metrics{`,
  1226. `Hugetlb:` + strings.Replace(fmt.Sprintf("%v", this.Hugetlb), "HugetlbStat", "HugetlbStat", 1) + `,`,
  1227. `Pids:` + strings.Replace(fmt.Sprintf("%v", this.Pids), "PidsStat", "PidsStat", 1) + `,`,
  1228. `CPU:` + strings.Replace(fmt.Sprintf("%v", this.CPU), "CPUStat", "CPUStat", 1) + `,`,
  1229. `Memory:` + strings.Replace(fmt.Sprintf("%v", this.Memory), "MemoryStat", "MemoryStat", 1) + `,`,
  1230. `Blkio:` + strings.Replace(fmt.Sprintf("%v", this.Blkio), "BlkIOStat", "BlkIOStat", 1) + `,`,
  1231. `}`,
  1232. }, "")
  1233. return s
  1234. }
  1235. func (this *HugetlbStat) String() string {
  1236. if this == nil {
  1237. return "nil"
  1238. }
  1239. s := strings.Join([]string{`&HugetlbStat{`,
  1240. `Usage:` + fmt.Sprintf("%v", this.Usage) + `,`,
  1241. `Max:` + fmt.Sprintf("%v", this.Max) + `,`,
  1242. `Failcnt:` + fmt.Sprintf("%v", this.Failcnt) + `,`,
  1243. `Pagesize:` + fmt.Sprintf("%v", this.Pagesize) + `,`,
  1244. `}`,
  1245. }, "")
  1246. return s
  1247. }
  1248. func (this *PidsStat) String() string {
  1249. if this == nil {
  1250. return "nil"
  1251. }
  1252. s := strings.Join([]string{`&PidsStat{`,
  1253. `Current:` + fmt.Sprintf("%v", this.Current) + `,`,
  1254. `Limit:` + fmt.Sprintf("%v", this.Limit) + `,`,
  1255. `}`,
  1256. }, "")
  1257. return s
  1258. }
  1259. func (this *CPUStat) String() string {
  1260. if this == nil {
  1261. return "nil"
  1262. }
  1263. s := strings.Join([]string{`&CPUStat{`,
  1264. `Usage:` + strings.Replace(fmt.Sprintf("%v", this.Usage), "CPUUsage", "CPUUsage", 1) + `,`,
  1265. `Throttling:` + strings.Replace(fmt.Sprintf("%v", this.Throttling), "Throttle", "Throttle", 1) + `,`,
  1266. `}`,
  1267. }, "")
  1268. return s
  1269. }
  1270. func (this *CPUUsage) String() string {
  1271. if this == nil {
  1272. return "nil"
  1273. }
  1274. s := strings.Join([]string{`&CPUUsage{`,
  1275. `Total:` + fmt.Sprintf("%v", this.Total) + `,`,
  1276. `Kernel:` + fmt.Sprintf("%v", this.Kernel) + `,`,
  1277. `User:` + fmt.Sprintf("%v", this.User) + `,`,
  1278. `PerCPU:` + fmt.Sprintf("%v", this.PerCPU) + `,`,
  1279. `}`,
  1280. }, "")
  1281. return s
  1282. }
  1283. func (this *Throttle) String() string {
  1284. if this == nil {
  1285. return "nil"
  1286. }
  1287. s := strings.Join([]string{`&Throttle{`,
  1288. `Periods:` + fmt.Sprintf("%v", this.Periods) + `,`,
  1289. `ThrottledPeriods:` + fmt.Sprintf("%v", this.ThrottledPeriods) + `,`,
  1290. `ThrottledTime:` + fmt.Sprintf("%v", this.ThrottledTime) + `,`,
  1291. `}`,
  1292. }, "")
  1293. return s
  1294. }
  1295. func (this *MemoryStat) String() string {
  1296. if this == nil {
  1297. return "nil"
  1298. }
  1299. s := strings.Join([]string{`&MemoryStat{`,
  1300. `Cache:` + fmt.Sprintf("%v", this.Cache) + `,`,
  1301. `RSS:` + fmt.Sprintf("%v", this.RSS) + `,`,
  1302. `RSSHuge:` + fmt.Sprintf("%v", this.RSSHuge) + `,`,
  1303. `MappedFile:` + fmt.Sprintf("%v", this.MappedFile) + `,`,
  1304. `Dirty:` + fmt.Sprintf("%v", this.Dirty) + `,`,
  1305. `Writeback:` + fmt.Sprintf("%v", this.Writeback) + `,`,
  1306. `PgPgIn:` + fmt.Sprintf("%v", this.PgPgIn) + `,`,
  1307. `PgPgOut:` + fmt.Sprintf("%v", this.PgPgOut) + `,`,
  1308. `PgFault:` + fmt.Sprintf("%v", this.PgFault) + `,`,
  1309. `PgMajFault:` + fmt.Sprintf("%v", this.PgMajFault) + `,`,
  1310. `InactiveAnon:` + fmt.Sprintf("%v", this.InactiveAnon) + `,`,
  1311. `ActiveAnon:` + fmt.Sprintf("%v", this.ActiveAnon) + `,`,
  1312. `InactiveFile:` + fmt.Sprintf("%v", this.InactiveFile) + `,`,
  1313. `ActiveFile:` + fmt.Sprintf("%v", this.ActiveFile) + `,`,
  1314. `Unevictable:` + fmt.Sprintf("%v", this.Unevictable) + `,`,
  1315. `HierarchicalMemoryLimit:` + fmt.Sprintf("%v", this.HierarchicalMemoryLimit) + `,`,
  1316. `HierarchicalSwapLimit:` + fmt.Sprintf("%v", this.HierarchicalSwapLimit) + `,`,
  1317. `TotalCache:` + fmt.Sprintf("%v", this.TotalCache) + `,`,
  1318. `TotalRSS:` + fmt.Sprintf("%v", this.TotalRSS) + `,`,
  1319. `TotalRSSHuge:` + fmt.Sprintf("%v", this.TotalRSSHuge) + `,`,
  1320. `TotalMappedFile:` + fmt.Sprintf("%v", this.TotalMappedFile) + `,`,
  1321. `TotalDirty:` + fmt.Sprintf("%v", this.TotalDirty) + `,`,
  1322. `TotalWriteback:` + fmt.Sprintf("%v", this.TotalWriteback) + `,`,
  1323. `TotalPgPgIn:` + fmt.Sprintf("%v", this.TotalPgPgIn) + `,`,
  1324. `TotalPgPgOut:` + fmt.Sprintf("%v", this.TotalPgPgOut) + `,`,
  1325. `TotalPgFault:` + fmt.Sprintf("%v", this.TotalPgFault) + `,`,
  1326. `TotalPgMajFault:` + fmt.Sprintf("%v", this.TotalPgMajFault) + `,`,
  1327. `TotalInactiveAnon:` + fmt.Sprintf("%v", this.TotalInactiveAnon) + `,`,
  1328. `TotalActiveAnon:` + fmt.Sprintf("%v", this.TotalActiveAnon) + `,`,
  1329. `TotalInactiveFile:` + fmt.Sprintf("%v", this.TotalInactiveFile) + `,`,
  1330. `TotalActiveFile:` + fmt.Sprintf("%v", this.TotalActiveFile) + `,`,
  1331. `TotalUnevictable:` + fmt.Sprintf("%v", this.TotalUnevictable) + `,`,
  1332. `Usage:` + strings.Replace(fmt.Sprintf("%v", this.Usage), "MemoryEntry", "MemoryEntry", 1) + `,`,
  1333. `Swap:` + strings.Replace(fmt.Sprintf("%v", this.Swap), "MemoryEntry", "MemoryEntry", 1) + `,`,
  1334. `Kernel:` + strings.Replace(fmt.Sprintf("%v", this.Kernel), "MemoryEntry", "MemoryEntry", 1) + `,`,
  1335. `KernelTCP:` + strings.Replace(fmt.Sprintf("%v", this.KernelTCP), "MemoryEntry", "MemoryEntry", 1) + `,`,
  1336. `}`,
  1337. }, "")
  1338. return s
  1339. }
  1340. func (this *MemoryEntry) String() string {
  1341. if this == nil {
  1342. return "nil"
  1343. }
  1344. s := strings.Join([]string{`&MemoryEntry{`,
  1345. `Limit:` + fmt.Sprintf("%v", this.Limit) + `,`,
  1346. `Usage:` + fmt.Sprintf("%v", this.Usage) + `,`,
  1347. `Max:` + fmt.Sprintf("%v", this.Max) + `,`,
  1348. `Failcnt:` + fmt.Sprintf("%v", this.Failcnt) + `,`,
  1349. `}`,
  1350. }, "")
  1351. return s
  1352. }
  1353. func (this *BlkIOStat) String() string {
  1354. if this == nil {
  1355. return "nil"
  1356. }
  1357. s := strings.Join([]string{`&BlkIOStat{`,
  1358. `IoServiceBytesRecursive:` + strings.Replace(fmt.Sprintf("%v", this.IoServiceBytesRecursive), "BlkIOEntry", "BlkIOEntry", 1) + `,`,
  1359. `IoServicedRecursive:` + strings.Replace(fmt.Sprintf("%v", this.IoServicedRecursive), "BlkIOEntry", "BlkIOEntry", 1) + `,`,
  1360. `IoQueuedRecursive:` + strings.Replace(fmt.Sprintf("%v", this.IoQueuedRecursive), "BlkIOEntry", "BlkIOEntry", 1) + `,`,
  1361. `IoServiceTimeRecursive:` + strings.Replace(fmt.Sprintf("%v", this.IoServiceTimeRecursive), "BlkIOEntry", "BlkIOEntry", 1) + `,`,
  1362. `IoWaitTimeRecursive:` + strings.Replace(fmt.Sprintf("%v", this.IoWaitTimeRecursive), "BlkIOEntry", "BlkIOEntry", 1) + `,`,
  1363. `IoMergedRecursive:` + strings.Replace(fmt.Sprintf("%v", this.IoMergedRecursive), "BlkIOEntry", "BlkIOEntry", 1) + `,`,
  1364. `IoTimeRecursive:` + strings.Replace(fmt.Sprintf("%v", this.IoTimeRecursive), "BlkIOEntry", "BlkIOEntry", 1) + `,`,
  1365. `SectorsRecursive:` + strings.Replace(fmt.Sprintf("%v", this.SectorsRecursive), "BlkIOEntry", "BlkIOEntry", 1) + `,`,
  1366. `}`,
  1367. }, "")
  1368. return s
  1369. }
  1370. func (this *BlkIOEntry) String() string {
  1371. if this == nil {
  1372. return "nil"
  1373. }
  1374. s := strings.Join([]string{`&BlkIOEntry{`,
  1375. `Op:` + fmt.Sprintf("%v", this.Op) + `,`,
  1376. `Device:` + fmt.Sprintf("%v", this.Device) + `,`,
  1377. `Major:` + fmt.Sprintf("%v", this.Major) + `,`,
  1378. `Minor:` + fmt.Sprintf("%v", this.Minor) + `,`,
  1379. `Value:` + fmt.Sprintf("%v", this.Value) + `,`,
  1380. `}`,
  1381. }, "")
  1382. return s
  1383. }
  1384. func valueToStringMetrics(v interface{}) string {
  1385. rv := reflect.ValueOf(v)
  1386. if rv.IsNil() {
  1387. return "nil"
  1388. }
  1389. pv := reflect.Indirect(rv).Interface()
  1390. return fmt.Sprintf("*%v", pv)
  1391. }
  1392. func (m *Metrics) Unmarshal(dAtA []byte) error {
  1393. l := len(dAtA)
  1394. iNdEx := 0
  1395. for iNdEx < l {
  1396. preIndex := iNdEx
  1397. var wire uint64
  1398. for shift := uint(0); ; shift += 7 {
  1399. if shift >= 64 {
  1400. return ErrIntOverflowMetrics
  1401. }
  1402. if iNdEx >= l {
  1403. return io.ErrUnexpectedEOF
  1404. }
  1405. b := dAtA[iNdEx]
  1406. iNdEx++
  1407. wire |= (uint64(b) & 0x7F) << shift
  1408. if b < 0x80 {
  1409. break
  1410. }
  1411. }
  1412. fieldNum := int32(wire >> 3)
  1413. wireType := int(wire & 0x7)
  1414. if wireType == 4 {
  1415. return fmt.Errorf("proto: Metrics: wiretype end group for non-group")
  1416. }
  1417. if fieldNum <= 0 {
  1418. return fmt.Errorf("proto: Metrics: illegal tag %d (wire type %d)", fieldNum, wire)
  1419. }
  1420. switch fieldNum {
  1421. case 1:
  1422. if wireType != 2 {
  1423. return fmt.Errorf("proto: wrong wireType = %d for field Hugetlb", wireType)
  1424. }
  1425. var msglen int
  1426. for shift := uint(0); ; shift += 7 {
  1427. if shift >= 64 {
  1428. return ErrIntOverflowMetrics
  1429. }
  1430. if iNdEx >= l {
  1431. return io.ErrUnexpectedEOF
  1432. }
  1433. b := dAtA[iNdEx]
  1434. iNdEx++
  1435. msglen |= (int(b) & 0x7F) << shift
  1436. if b < 0x80 {
  1437. break
  1438. }
  1439. }
  1440. if msglen < 0 {
  1441. return ErrInvalidLengthMetrics
  1442. }
  1443. postIndex := iNdEx + msglen
  1444. if postIndex > l {
  1445. return io.ErrUnexpectedEOF
  1446. }
  1447. m.Hugetlb = append(m.Hugetlb, &HugetlbStat{})
  1448. if err := m.Hugetlb[len(m.Hugetlb)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1449. return err
  1450. }
  1451. iNdEx = postIndex
  1452. case 2:
  1453. if wireType != 2 {
  1454. return fmt.Errorf("proto: wrong wireType = %d for field Pids", wireType)
  1455. }
  1456. var msglen int
  1457. for shift := uint(0); ; shift += 7 {
  1458. if shift >= 64 {
  1459. return ErrIntOverflowMetrics
  1460. }
  1461. if iNdEx >= l {
  1462. return io.ErrUnexpectedEOF
  1463. }
  1464. b := dAtA[iNdEx]
  1465. iNdEx++
  1466. msglen |= (int(b) & 0x7F) << shift
  1467. if b < 0x80 {
  1468. break
  1469. }
  1470. }
  1471. if msglen < 0 {
  1472. return ErrInvalidLengthMetrics
  1473. }
  1474. postIndex := iNdEx + msglen
  1475. if postIndex > l {
  1476. return io.ErrUnexpectedEOF
  1477. }
  1478. if m.Pids == nil {
  1479. m.Pids = &PidsStat{}
  1480. }
  1481. if err := m.Pids.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1482. return err
  1483. }
  1484. iNdEx = postIndex
  1485. case 3:
  1486. if wireType != 2 {
  1487. return fmt.Errorf("proto: wrong wireType = %d for field CPU", wireType)
  1488. }
  1489. var msglen int
  1490. for shift := uint(0); ; shift += 7 {
  1491. if shift >= 64 {
  1492. return ErrIntOverflowMetrics
  1493. }
  1494. if iNdEx >= l {
  1495. return io.ErrUnexpectedEOF
  1496. }
  1497. b := dAtA[iNdEx]
  1498. iNdEx++
  1499. msglen |= (int(b) & 0x7F) << shift
  1500. if b < 0x80 {
  1501. break
  1502. }
  1503. }
  1504. if msglen < 0 {
  1505. return ErrInvalidLengthMetrics
  1506. }
  1507. postIndex := iNdEx + msglen
  1508. if postIndex > l {
  1509. return io.ErrUnexpectedEOF
  1510. }
  1511. if m.CPU == nil {
  1512. m.CPU = &CPUStat{}
  1513. }
  1514. if err := m.CPU.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1515. return err
  1516. }
  1517. iNdEx = postIndex
  1518. case 4:
  1519. if wireType != 2 {
  1520. return fmt.Errorf("proto: wrong wireType = %d for field Memory", wireType)
  1521. }
  1522. var msglen int
  1523. for shift := uint(0); ; shift += 7 {
  1524. if shift >= 64 {
  1525. return ErrIntOverflowMetrics
  1526. }
  1527. if iNdEx >= l {
  1528. return io.ErrUnexpectedEOF
  1529. }
  1530. b := dAtA[iNdEx]
  1531. iNdEx++
  1532. msglen |= (int(b) & 0x7F) << shift
  1533. if b < 0x80 {
  1534. break
  1535. }
  1536. }
  1537. if msglen < 0 {
  1538. return ErrInvalidLengthMetrics
  1539. }
  1540. postIndex := iNdEx + msglen
  1541. if postIndex > l {
  1542. return io.ErrUnexpectedEOF
  1543. }
  1544. if m.Memory == nil {
  1545. m.Memory = &MemoryStat{}
  1546. }
  1547. if err := m.Memory.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1548. return err
  1549. }
  1550. iNdEx = postIndex
  1551. case 5:
  1552. if wireType != 2 {
  1553. return fmt.Errorf("proto: wrong wireType = %d for field Blkio", wireType)
  1554. }
  1555. var msglen int
  1556. for shift := uint(0); ; shift += 7 {
  1557. if shift >= 64 {
  1558. return ErrIntOverflowMetrics
  1559. }
  1560. if iNdEx >= l {
  1561. return io.ErrUnexpectedEOF
  1562. }
  1563. b := dAtA[iNdEx]
  1564. iNdEx++
  1565. msglen |= (int(b) & 0x7F) << shift
  1566. if b < 0x80 {
  1567. break
  1568. }
  1569. }
  1570. if msglen < 0 {
  1571. return ErrInvalidLengthMetrics
  1572. }
  1573. postIndex := iNdEx + msglen
  1574. if postIndex > l {
  1575. return io.ErrUnexpectedEOF
  1576. }
  1577. if m.Blkio == nil {
  1578. m.Blkio = &BlkIOStat{}
  1579. }
  1580. if err := m.Blkio.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1581. return err
  1582. }
  1583. iNdEx = postIndex
  1584. default:
  1585. iNdEx = preIndex
  1586. skippy, err := skipMetrics(dAtA[iNdEx:])
  1587. if err != nil {
  1588. return err
  1589. }
  1590. if skippy < 0 {
  1591. return ErrInvalidLengthMetrics
  1592. }
  1593. if (iNdEx + skippy) > l {
  1594. return io.ErrUnexpectedEOF
  1595. }
  1596. iNdEx += skippy
  1597. }
  1598. }
  1599. if iNdEx > l {
  1600. return io.ErrUnexpectedEOF
  1601. }
  1602. return nil
  1603. }
  1604. func (m *HugetlbStat) Unmarshal(dAtA []byte) error {
  1605. l := len(dAtA)
  1606. iNdEx := 0
  1607. for iNdEx < l {
  1608. preIndex := iNdEx
  1609. var wire uint64
  1610. for shift := uint(0); ; shift += 7 {
  1611. if shift >= 64 {
  1612. return ErrIntOverflowMetrics
  1613. }
  1614. if iNdEx >= l {
  1615. return io.ErrUnexpectedEOF
  1616. }
  1617. b := dAtA[iNdEx]
  1618. iNdEx++
  1619. wire |= (uint64(b) & 0x7F) << shift
  1620. if b < 0x80 {
  1621. break
  1622. }
  1623. }
  1624. fieldNum := int32(wire >> 3)
  1625. wireType := int(wire & 0x7)
  1626. if wireType == 4 {
  1627. return fmt.Errorf("proto: HugetlbStat: wiretype end group for non-group")
  1628. }
  1629. if fieldNum <= 0 {
  1630. return fmt.Errorf("proto: HugetlbStat: illegal tag %d (wire type %d)", fieldNum, wire)
  1631. }
  1632. switch fieldNum {
  1633. case 1:
  1634. if wireType != 0 {
  1635. return fmt.Errorf("proto: wrong wireType = %d for field Usage", wireType)
  1636. }
  1637. m.Usage = 0
  1638. for shift := uint(0); ; shift += 7 {
  1639. if shift >= 64 {
  1640. return ErrIntOverflowMetrics
  1641. }
  1642. if iNdEx >= l {
  1643. return io.ErrUnexpectedEOF
  1644. }
  1645. b := dAtA[iNdEx]
  1646. iNdEx++
  1647. m.Usage |= (uint64(b) & 0x7F) << shift
  1648. if b < 0x80 {
  1649. break
  1650. }
  1651. }
  1652. case 2:
  1653. if wireType != 0 {
  1654. return fmt.Errorf("proto: wrong wireType = %d for field Max", wireType)
  1655. }
  1656. m.Max = 0
  1657. for shift := uint(0); ; shift += 7 {
  1658. if shift >= 64 {
  1659. return ErrIntOverflowMetrics
  1660. }
  1661. if iNdEx >= l {
  1662. return io.ErrUnexpectedEOF
  1663. }
  1664. b := dAtA[iNdEx]
  1665. iNdEx++
  1666. m.Max |= (uint64(b) & 0x7F) << shift
  1667. if b < 0x80 {
  1668. break
  1669. }
  1670. }
  1671. case 3:
  1672. if wireType != 0 {
  1673. return fmt.Errorf("proto: wrong wireType = %d for field Failcnt", wireType)
  1674. }
  1675. m.Failcnt = 0
  1676. for shift := uint(0); ; shift += 7 {
  1677. if shift >= 64 {
  1678. return ErrIntOverflowMetrics
  1679. }
  1680. if iNdEx >= l {
  1681. return io.ErrUnexpectedEOF
  1682. }
  1683. b := dAtA[iNdEx]
  1684. iNdEx++
  1685. m.Failcnt |= (uint64(b) & 0x7F) << shift
  1686. if b < 0x80 {
  1687. break
  1688. }
  1689. }
  1690. case 4:
  1691. if wireType != 2 {
  1692. return fmt.Errorf("proto: wrong wireType = %d for field Pagesize", wireType)
  1693. }
  1694. var stringLen uint64
  1695. for shift := uint(0); ; shift += 7 {
  1696. if shift >= 64 {
  1697. return ErrIntOverflowMetrics
  1698. }
  1699. if iNdEx >= l {
  1700. return io.ErrUnexpectedEOF
  1701. }
  1702. b := dAtA[iNdEx]
  1703. iNdEx++
  1704. stringLen |= (uint64(b) & 0x7F) << shift
  1705. if b < 0x80 {
  1706. break
  1707. }
  1708. }
  1709. intStringLen := int(stringLen)
  1710. if intStringLen < 0 {
  1711. return ErrInvalidLengthMetrics
  1712. }
  1713. postIndex := iNdEx + intStringLen
  1714. if postIndex > l {
  1715. return io.ErrUnexpectedEOF
  1716. }
  1717. m.Pagesize = string(dAtA[iNdEx:postIndex])
  1718. iNdEx = postIndex
  1719. default:
  1720. iNdEx = preIndex
  1721. skippy, err := skipMetrics(dAtA[iNdEx:])
  1722. if err != nil {
  1723. return err
  1724. }
  1725. if skippy < 0 {
  1726. return ErrInvalidLengthMetrics
  1727. }
  1728. if (iNdEx + skippy) > l {
  1729. return io.ErrUnexpectedEOF
  1730. }
  1731. iNdEx += skippy
  1732. }
  1733. }
  1734. if iNdEx > l {
  1735. return io.ErrUnexpectedEOF
  1736. }
  1737. return nil
  1738. }
  1739. func (m *PidsStat) Unmarshal(dAtA []byte) error {
  1740. l := len(dAtA)
  1741. iNdEx := 0
  1742. for iNdEx < l {
  1743. preIndex := iNdEx
  1744. var wire uint64
  1745. for shift := uint(0); ; shift += 7 {
  1746. if shift >= 64 {
  1747. return ErrIntOverflowMetrics
  1748. }
  1749. if iNdEx >= l {
  1750. return io.ErrUnexpectedEOF
  1751. }
  1752. b := dAtA[iNdEx]
  1753. iNdEx++
  1754. wire |= (uint64(b) & 0x7F) << shift
  1755. if b < 0x80 {
  1756. break
  1757. }
  1758. }
  1759. fieldNum := int32(wire >> 3)
  1760. wireType := int(wire & 0x7)
  1761. if wireType == 4 {
  1762. return fmt.Errorf("proto: PidsStat: wiretype end group for non-group")
  1763. }
  1764. if fieldNum <= 0 {
  1765. return fmt.Errorf("proto: PidsStat: illegal tag %d (wire type %d)", fieldNum, wire)
  1766. }
  1767. switch fieldNum {
  1768. case 1:
  1769. if wireType != 0 {
  1770. return fmt.Errorf("proto: wrong wireType = %d for field Current", wireType)
  1771. }
  1772. m.Current = 0
  1773. for shift := uint(0); ; shift += 7 {
  1774. if shift >= 64 {
  1775. return ErrIntOverflowMetrics
  1776. }
  1777. if iNdEx >= l {
  1778. return io.ErrUnexpectedEOF
  1779. }
  1780. b := dAtA[iNdEx]
  1781. iNdEx++
  1782. m.Current |= (uint64(b) & 0x7F) << shift
  1783. if b < 0x80 {
  1784. break
  1785. }
  1786. }
  1787. case 2:
  1788. if wireType != 0 {
  1789. return fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType)
  1790. }
  1791. m.Limit = 0
  1792. for shift := uint(0); ; shift += 7 {
  1793. if shift >= 64 {
  1794. return ErrIntOverflowMetrics
  1795. }
  1796. if iNdEx >= l {
  1797. return io.ErrUnexpectedEOF
  1798. }
  1799. b := dAtA[iNdEx]
  1800. iNdEx++
  1801. m.Limit |= (uint64(b) & 0x7F) << shift
  1802. if b < 0x80 {
  1803. break
  1804. }
  1805. }
  1806. default:
  1807. iNdEx = preIndex
  1808. skippy, err := skipMetrics(dAtA[iNdEx:])
  1809. if err != nil {
  1810. return err
  1811. }
  1812. if skippy < 0 {
  1813. return ErrInvalidLengthMetrics
  1814. }
  1815. if (iNdEx + skippy) > l {
  1816. return io.ErrUnexpectedEOF
  1817. }
  1818. iNdEx += skippy
  1819. }
  1820. }
  1821. if iNdEx > l {
  1822. return io.ErrUnexpectedEOF
  1823. }
  1824. return nil
  1825. }
  1826. func (m *CPUStat) Unmarshal(dAtA []byte) error {
  1827. l := len(dAtA)
  1828. iNdEx := 0
  1829. for iNdEx < l {
  1830. preIndex := iNdEx
  1831. var wire uint64
  1832. for shift := uint(0); ; shift += 7 {
  1833. if shift >= 64 {
  1834. return ErrIntOverflowMetrics
  1835. }
  1836. if iNdEx >= l {
  1837. return io.ErrUnexpectedEOF
  1838. }
  1839. b := dAtA[iNdEx]
  1840. iNdEx++
  1841. wire |= (uint64(b) & 0x7F) << shift
  1842. if b < 0x80 {
  1843. break
  1844. }
  1845. }
  1846. fieldNum := int32(wire >> 3)
  1847. wireType := int(wire & 0x7)
  1848. if wireType == 4 {
  1849. return fmt.Errorf("proto: CPUStat: wiretype end group for non-group")
  1850. }
  1851. if fieldNum <= 0 {
  1852. return fmt.Errorf("proto: CPUStat: illegal tag %d (wire type %d)", fieldNum, wire)
  1853. }
  1854. switch fieldNum {
  1855. case 1:
  1856. if wireType != 2 {
  1857. return fmt.Errorf("proto: wrong wireType = %d for field Usage", wireType)
  1858. }
  1859. var msglen int
  1860. for shift := uint(0); ; shift += 7 {
  1861. if shift >= 64 {
  1862. return ErrIntOverflowMetrics
  1863. }
  1864. if iNdEx >= l {
  1865. return io.ErrUnexpectedEOF
  1866. }
  1867. b := dAtA[iNdEx]
  1868. iNdEx++
  1869. msglen |= (int(b) & 0x7F) << shift
  1870. if b < 0x80 {
  1871. break
  1872. }
  1873. }
  1874. if msglen < 0 {
  1875. return ErrInvalidLengthMetrics
  1876. }
  1877. postIndex := iNdEx + msglen
  1878. if postIndex > l {
  1879. return io.ErrUnexpectedEOF
  1880. }
  1881. if m.Usage == nil {
  1882. m.Usage = &CPUUsage{}
  1883. }
  1884. if err := m.Usage.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1885. return err
  1886. }
  1887. iNdEx = postIndex
  1888. case 2:
  1889. if wireType != 2 {
  1890. return fmt.Errorf("proto: wrong wireType = %d for field Throttling", wireType)
  1891. }
  1892. var msglen int
  1893. for shift := uint(0); ; shift += 7 {
  1894. if shift >= 64 {
  1895. return ErrIntOverflowMetrics
  1896. }
  1897. if iNdEx >= l {
  1898. return io.ErrUnexpectedEOF
  1899. }
  1900. b := dAtA[iNdEx]
  1901. iNdEx++
  1902. msglen |= (int(b) & 0x7F) << shift
  1903. if b < 0x80 {
  1904. break
  1905. }
  1906. }
  1907. if msglen < 0 {
  1908. return ErrInvalidLengthMetrics
  1909. }
  1910. postIndex := iNdEx + msglen
  1911. if postIndex > l {
  1912. return io.ErrUnexpectedEOF
  1913. }
  1914. if m.Throttling == nil {
  1915. m.Throttling = &Throttle{}
  1916. }
  1917. if err := m.Throttling.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1918. return err
  1919. }
  1920. iNdEx = postIndex
  1921. default:
  1922. iNdEx = preIndex
  1923. skippy, err := skipMetrics(dAtA[iNdEx:])
  1924. if err != nil {
  1925. return err
  1926. }
  1927. if skippy < 0 {
  1928. return ErrInvalidLengthMetrics
  1929. }
  1930. if (iNdEx + skippy) > l {
  1931. return io.ErrUnexpectedEOF
  1932. }
  1933. iNdEx += skippy
  1934. }
  1935. }
  1936. if iNdEx > l {
  1937. return io.ErrUnexpectedEOF
  1938. }
  1939. return nil
  1940. }
  1941. func (m *CPUUsage) Unmarshal(dAtA []byte) error {
  1942. l := len(dAtA)
  1943. iNdEx := 0
  1944. for iNdEx < l {
  1945. preIndex := iNdEx
  1946. var wire uint64
  1947. for shift := uint(0); ; shift += 7 {
  1948. if shift >= 64 {
  1949. return ErrIntOverflowMetrics
  1950. }
  1951. if iNdEx >= l {
  1952. return io.ErrUnexpectedEOF
  1953. }
  1954. b := dAtA[iNdEx]
  1955. iNdEx++
  1956. wire |= (uint64(b) & 0x7F) << shift
  1957. if b < 0x80 {
  1958. break
  1959. }
  1960. }
  1961. fieldNum := int32(wire >> 3)
  1962. wireType := int(wire & 0x7)
  1963. if wireType == 4 {
  1964. return fmt.Errorf("proto: CPUUsage: wiretype end group for non-group")
  1965. }
  1966. if fieldNum <= 0 {
  1967. return fmt.Errorf("proto: CPUUsage: illegal tag %d (wire type %d)", fieldNum, wire)
  1968. }
  1969. switch fieldNum {
  1970. case 1:
  1971. if wireType != 0 {
  1972. return fmt.Errorf("proto: wrong wireType = %d for field Total", wireType)
  1973. }
  1974. m.Total = 0
  1975. for shift := uint(0); ; shift += 7 {
  1976. if shift >= 64 {
  1977. return ErrIntOverflowMetrics
  1978. }
  1979. if iNdEx >= l {
  1980. return io.ErrUnexpectedEOF
  1981. }
  1982. b := dAtA[iNdEx]
  1983. iNdEx++
  1984. m.Total |= (uint64(b) & 0x7F) << shift
  1985. if b < 0x80 {
  1986. break
  1987. }
  1988. }
  1989. case 2:
  1990. if wireType != 0 {
  1991. return fmt.Errorf("proto: wrong wireType = %d for field Kernel", wireType)
  1992. }
  1993. m.Kernel = 0
  1994. for shift := uint(0); ; shift += 7 {
  1995. if shift >= 64 {
  1996. return ErrIntOverflowMetrics
  1997. }
  1998. if iNdEx >= l {
  1999. return io.ErrUnexpectedEOF
  2000. }
  2001. b := dAtA[iNdEx]
  2002. iNdEx++
  2003. m.Kernel |= (uint64(b) & 0x7F) << shift
  2004. if b < 0x80 {
  2005. break
  2006. }
  2007. }
  2008. case 3:
  2009. if wireType != 0 {
  2010. return fmt.Errorf("proto: wrong wireType = %d for field User", wireType)
  2011. }
  2012. m.User = 0
  2013. for shift := uint(0); ; shift += 7 {
  2014. if shift >= 64 {
  2015. return ErrIntOverflowMetrics
  2016. }
  2017. if iNdEx >= l {
  2018. return io.ErrUnexpectedEOF
  2019. }
  2020. b := dAtA[iNdEx]
  2021. iNdEx++
  2022. m.User |= (uint64(b) & 0x7F) << shift
  2023. if b < 0x80 {
  2024. break
  2025. }
  2026. }
  2027. case 4:
  2028. if wireType == 0 {
  2029. var v uint64
  2030. for shift := uint(0); ; shift += 7 {
  2031. if shift >= 64 {
  2032. return ErrIntOverflowMetrics
  2033. }
  2034. if iNdEx >= l {
  2035. return io.ErrUnexpectedEOF
  2036. }
  2037. b := dAtA[iNdEx]
  2038. iNdEx++
  2039. v |= (uint64(b) & 0x7F) << shift
  2040. if b < 0x80 {
  2041. break
  2042. }
  2043. }
  2044. m.PerCPU = append(m.PerCPU, v)
  2045. } else if wireType == 2 {
  2046. var packedLen int
  2047. for shift := uint(0); ; shift += 7 {
  2048. if shift >= 64 {
  2049. return ErrIntOverflowMetrics
  2050. }
  2051. if iNdEx >= l {
  2052. return io.ErrUnexpectedEOF
  2053. }
  2054. b := dAtA[iNdEx]
  2055. iNdEx++
  2056. packedLen |= (int(b) & 0x7F) << shift
  2057. if b < 0x80 {
  2058. break
  2059. }
  2060. }
  2061. if packedLen < 0 {
  2062. return ErrInvalidLengthMetrics
  2063. }
  2064. postIndex := iNdEx + packedLen
  2065. if postIndex > l {
  2066. return io.ErrUnexpectedEOF
  2067. }
  2068. for iNdEx < postIndex {
  2069. var v uint64
  2070. for shift := uint(0); ; shift += 7 {
  2071. if shift >= 64 {
  2072. return ErrIntOverflowMetrics
  2073. }
  2074. if iNdEx >= l {
  2075. return io.ErrUnexpectedEOF
  2076. }
  2077. b := dAtA[iNdEx]
  2078. iNdEx++
  2079. v |= (uint64(b) & 0x7F) << shift
  2080. if b < 0x80 {
  2081. break
  2082. }
  2083. }
  2084. m.PerCPU = append(m.PerCPU, v)
  2085. }
  2086. } else {
  2087. return fmt.Errorf("proto: wrong wireType = %d for field PerCPU", wireType)
  2088. }
  2089. default:
  2090. iNdEx = preIndex
  2091. skippy, err := skipMetrics(dAtA[iNdEx:])
  2092. if err != nil {
  2093. return err
  2094. }
  2095. if skippy < 0 {
  2096. return ErrInvalidLengthMetrics
  2097. }
  2098. if (iNdEx + skippy) > l {
  2099. return io.ErrUnexpectedEOF
  2100. }
  2101. iNdEx += skippy
  2102. }
  2103. }
  2104. if iNdEx > l {
  2105. return io.ErrUnexpectedEOF
  2106. }
  2107. return nil
  2108. }
  2109. func (m *Throttle) Unmarshal(dAtA []byte) error {
  2110. l := len(dAtA)
  2111. iNdEx := 0
  2112. for iNdEx < l {
  2113. preIndex := iNdEx
  2114. var wire uint64
  2115. for shift := uint(0); ; shift += 7 {
  2116. if shift >= 64 {
  2117. return ErrIntOverflowMetrics
  2118. }
  2119. if iNdEx >= l {
  2120. return io.ErrUnexpectedEOF
  2121. }
  2122. b := dAtA[iNdEx]
  2123. iNdEx++
  2124. wire |= (uint64(b) & 0x7F) << shift
  2125. if b < 0x80 {
  2126. break
  2127. }
  2128. }
  2129. fieldNum := int32(wire >> 3)
  2130. wireType := int(wire & 0x7)
  2131. if wireType == 4 {
  2132. return fmt.Errorf("proto: Throttle: wiretype end group for non-group")
  2133. }
  2134. if fieldNum <= 0 {
  2135. return fmt.Errorf("proto: Throttle: illegal tag %d (wire type %d)", fieldNum, wire)
  2136. }
  2137. switch fieldNum {
  2138. case 1:
  2139. if wireType != 0 {
  2140. return fmt.Errorf("proto: wrong wireType = %d for field Periods", wireType)
  2141. }
  2142. m.Periods = 0
  2143. for shift := uint(0); ; shift += 7 {
  2144. if shift >= 64 {
  2145. return ErrIntOverflowMetrics
  2146. }
  2147. if iNdEx >= l {
  2148. return io.ErrUnexpectedEOF
  2149. }
  2150. b := dAtA[iNdEx]
  2151. iNdEx++
  2152. m.Periods |= (uint64(b) & 0x7F) << shift
  2153. if b < 0x80 {
  2154. break
  2155. }
  2156. }
  2157. case 2:
  2158. if wireType != 0 {
  2159. return fmt.Errorf("proto: wrong wireType = %d for field ThrottledPeriods", wireType)
  2160. }
  2161. m.ThrottledPeriods = 0
  2162. for shift := uint(0); ; shift += 7 {
  2163. if shift >= 64 {
  2164. return ErrIntOverflowMetrics
  2165. }
  2166. if iNdEx >= l {
  2167. return io.ErrUnexpectedEOF
  2168. }
  2169. b := dAtA[iNdEx]
  2170. iNdEx++
  2171. m.ThrottledPeriods |= (uint64(b) & 0x7F) << shift
  2172. if b < 0x80 {
  2173. break
  2174. }
  2175. }
  2176. case 3:
  2177. if wireType != 0 {
  2178. return fmt.Errorf("proto: wrong wireType = %d for field ThrottledTime", wireType)
  2179. }
  2180. m.ThrottledTime = 0
  2181. for shift := uint(0); ; shift += 7 {
  2182. if shift >= 64 {
  2183. return ErrIntOverflowMetrics
  2184. }
  2185. if iNdEx >= l {
  2186. return io.ErrUnexpectedEOF
  2187. }
  2188. b := dAtA[iNdEx]
  2189. iNdEx++
  2190. m.ThrottledTime |= (uint64(b) & 0x7F) << shift
  2191. if b < 0x80 {
  2192. break
  2193. }
  2194. }
  2195. default:
  2196. iNdEx = preIndex
  2197. skippy, err := skipMetrics(dAtA[iNdEx:])
  2198. if err != nil {
  2199. return err
  2200. }
  2201. if skippy < 0 {
  2202. return ErrInvalidLengthMetrics
  2203. }
  2204. if (iNdEx + skippy) > l {
  2205. return io.ErrUnexpectedEOF
  2206. }
  2207. iNdEx += skippy
  2208. }
  2209. }
  2210. if iNdEx > l {
  2211. return io.ErrUnexpectedEOF
  2212. }
  2213. return nil
  2214. }
  2215. func (m *MemoryStat) Unmarshal(dAtA []byte) error {
  2216. l := len(dAtA)
  2217. iNdEx := 0
  2218. for iNdEx < l {
  2219. preIndex := iNdEx
  2220. var wire uint64
  2221. for shift := uint(0); ; shift += 7 {
  2222. if shift >= 64 {
  2223. return ErrIntOverflowMetrics
  2224. }
  2225. if iNdEx >= l {
  2226. return io.ErrUnexpectedEOF
  2227. }
  2228. b := dAtA[iNdEx]
  2229. iNdEx++
  2230. wire |= (uint64(b) & 0x7F) << shift
  2231. if b < 0x80 {
  2232. break
  2233. }
  2234. }
  2235. fieldNum := int32(wire >> 3)
  2236. wireType := int(wire & 0x7)
  2237. if wireType == 4 {
  2238. return fmt.Errorf("proto: MemoryStat: wiretype end group for non-group")
  2239. }
  2240. if fieldNum <= 0 {
  2241. return fmt.Errorf("proto: MemoryStat: illegal tag %d (wire type %d)", fieldNum, wire)
  2242. }
  2243. switch fieldNum {
  2244. case 1:
  2245. if wireType != 0 {
  2246. return fmt.Errorf("proto: wrong wireType = %d for field Cache", wireType)
  2247. }
  2248. m.Cache = 0
  2249. for shift := uint(0); ; shift += 7 {
  2250. if shift >= 64 {
  2251. return ErrIntOverflowMetrics
  2252. }
  2253. if iNdEx >= l {
  2254. return io.ErrUnexpectedEOF
  2255. }
  2256. b := dAtA[iNdEx]
  2257. iNdEx++
  2258. m.Cache |= (uint64(b) & 0x7F) << shift
  2259. if b < 0x80 {
  2260. break
  2261. }
  2262. }
  2263. case 2:
  2264. if wireType != 0 {
  2265. return fmt.Errorf("proto: wrong wireType = %d for field RSS", wireType)
  2266. }
  2267. m.RSS = 0
  2268. for shift := uint(0); ; shift += 7 {
  2269. if shift >= 64 {
  2270. return ErrIntOverflowMetrics
  2271. }
  2272. if iNdEx >= l {
  2273. return io.ErrUnexpectedEOF
  2274. }
  2275. b := dAtA[iNdEx]
  2276. iNdEx++
  2277. m.RSS |= (uint64(b) & 0x7F) << shift
  2278. if b < 0x80 {
  2279. break
  2280. }
  2281. }
  2282. case 3:
  2283. if wireType != 0 {
  2284. return fmt.Errorf("proto: wrong wireType = %d for field RSSHuge", wireType)
  2285. }
  2286. m.RSSHuge = 0
  2287. for shift := uint(0); ; shift += 7 {
  2288. if shift >= 64 {
  2289. return ErrIntOverflowMetrics
  2290. }
  2291. if iNdEx >= l {
  2292. return io.ErrUnexpectedEOF
  2293. }
  2294. b := dAtA[iNdEx]
  2295. iNdEx++
  2296. m.RSSHuge |= (uint64(b) & 0x7F) << shift
  2297. if b < 0x80 {
  2298. break
  2299. }
  2300. }
  2301. case 4:
  2302. if wireType != 0 {
  2303. return fmt.Errorf("proto: wrong wireType = %d for field MappedFile", wireType)
  2304. }
  2305. m.MappedFile = 0
  2306. for shift := uint(0); ; shift += 7 {
  2307. if shift >= 64 {
  2308. return ErrIntOverflowMetrics
  2309. }
  2310. if iNdEx >= l {
  2311. return io.ErrUnexpectedEOF
  2312. }
  2313. b := dAtA[iNdEx]
  2314. iNdEx++
  2315. m.MappedFile |= (uint64(b) & 0x7F) << shift
  2316. if b < 0x80 {
  2317. break
  2318. }
  2319. }
  2320. case 5:
  2321. if wireType != 0 {
  2322. return fmt.Errorf("proto: wrong wireType = %d for field Dirty", wireType)
  2323. }
  2324. m.Dirty = 0
  2325. for shift := uint(0); ; shift += 7 {
  2326. if shift >= 64 {
  2327. return ErrIntOverflowMetrics
  2328. }
  2329. if iNdEx >= l {
  2330. return io.ErrUnexpectedEOF
  2331. }
  2332. b := dAtA[iNdEx]
  2333. iNdEx++
  2334. m.Dirty |= (uint64(b) & 0x7F) << shift
  2335. if b < 0x80 {
  2336. break
  2337. }
  2338. }
  2339. case 6:
  2340. if wireType != 0 {
  2341. return fmt.Errorf("proto: wrong wireType = %d for field Writeback", wireType)
  2342. }
  2343. m.Writeback = 0
  2344. for shift := uint(0); ; shift += 7 {
  2345. if shift >= 64 {
  2346. return ErrIntOverflowMetrics
  2347. }
  2348. if iNdEx >= l {
  2349. return io.ErrUnexpectedEOF
  2350. }
  2351. b := dAtA[iNdEx]
  2352. iNdEx++
  2353. m.Writeback |= (uint64(b) & 0x7F) << shift
  2354. if b < 0x80 {
  2355. break
  2356. }
  2357. }
  2358. case 7:
  2359. if wireType != 0 {
  2360. return fmt.Errorf("proto: wrong wireType = %d for field PgPgIn", wireType)
  2361. }
  2362. m.PgPgIn = 0
  2363. for shift := uint(0); ; shift += 7 {
  2364. if shift >= 64 {
  2365. return ErrIntOverflowMetrics
  2366. }
  2367. if iNdEx >= l {
  2368. return io.ErrUnexpectedEOF
  2369. }
  2370. b := dAtA[iNdEx]
  2371. iNdEx++
  2372. m.PgPgIn |= (uint64(b) & 0x7F) << shift
  2373. if b < 0x80 {
  2374. break
  2375. }
  2376. }
  2377. case 8:
  2378. if wireType != 0 {
  2379. return fmt.Errorf("proto: wrong wireType = %d for field PgPgOut", wireType)
  2380. }
  2381. m.PgPgOut = 0
  2382. for shift := uint(0); ; shift += 7 {
  2383. if shift >= 64 {
  2384. return ErrIntOverflowMetrics
  2385. }
  2386. if iNdEx >= l {
  2387. return io.ErrUnexpectedEOF
  2388. }
  2389. b := dAtA[iNdEx]
  2390. iNdEx++
  2391. m.PgPgOut |= (uint64(b) & 0x7F) << shift
  2392. if b < 0x80 {
  2393. break
  2394. }
  2395. }
  2396. case 9:
  2397. if wireType != 0 {
  2398. return fmt.Errorf("proto: wrong wireType = %d for field PgFault", wireType)
  2399. }
  2400. m.PgFault = 0
  2401. for shift := uint(0); ; shift += 7 {
  2402. if shift >= 64 {
  2403. return ErrIntOverflowMetrics
  2404. }
  2405. if iNdEx >= l {
  2406. return io.ErrUnexpectedEOF
  2407. }
  2408. b := dAtA[iNdEx]
  2409. iNdEx++
  2410. m.PgFault |= (uint64(b) & 0x7F) << shift
  2411. if b < 0x80 {
  2412. break
  2413. }
  2414. }
  2415. case 10:
  2416. if wireType != 0 {
  2417. return fmt.Errorf("proto: wrong wireType = %d for field PgMajFault", wireType)
  2418. }
  2419. m.PgMajFault = 0
  2420. for shift := uint(0); ; shift += 7 {
  2421. if shift >= 64 {
  2422. return ErrIntOverflowMetrics
  2423. }
  2424. if iNdEx >= l {
  2425. return io.ErrUnexpectedEOF
  2426. }
  2427. b := dAtA[iNdEx]
  2428. iNdEx++
  2429. m.PgMajFault |= (uint64(b) & 0x7F) << shift
  2430. if b < 0x80 {
  2431. break
  2432. }
  2433. }
  2434. case 11:
  2435. if wireType != 0 {
  2436. return fmt.Errorf("proto: wrong wireType = %d for field InactiveAnon", wireType)
  2437. }
  2438. m.InactiveAnon = 0
  2439. for shift := uint(0); ; shift += 7 {
  2440. if shift >= 64 {
  2441. return ErrIntOverflowMetrics
  2442. }
  2443. if iNdEx >= l {
  2444. return io.ErrUnexpectedEOF
  2445. }
  2446. b := dAtA[iNdEx]
  2447. iNdEx++
  2448. m.InactiveAnon |= (uint64(b) & 0x7F) << shift
  2449. if b < 0x80 {
  2450. break
  2451. }
  2452. }
  2453. case 12:
  2454. if wireType != 0 {
  2455. return fmt.Errorf("proto: wrong wireType = %d for field ActiveAnon", wireType)
  2456. }
  2457. m.ActiveAnon = 0
  2458. for shift := uint(0); ; shift += 7 {
  2459. if shift >= 64 {
  2460. return ErrIntOverflowMetrics
  2461. }
  2462. if iNdEx >= l {
  2463. return io.ErrUnexpectedEOF
  2464. }
  2465. b := dAtA[iNdEx]
  2466. iNdEx++
  2467. m.ActiveAnon |= (uint64(b) & 0x7F) << shift
  2468. if b < 0x80 {
  2469. break
  2470. }
  2471. }
  2472. case 13:
  2473. if wireType != 0 {
  2474. return fmt.Errorf("proto: wrong wireType = %d for field InactiveFile", wireType)
  2475. }
  2476. m.InactiveFile = 0
  2477. for shift := uint(0); ; shift += 7 {
  2478. if shift >= 64 {
  2479. return ErrIntOverflowMetrics
  2480. }
  2481. if iNdEx >= l {
  2482. return io.ErrUnexpectedEOF
  2483. }
  2484. b := dAtA[iNdEx]
  2485. iNdEx++
  2486. m.InactiveFile |= (uint64(b) & 0x7F) << shift
  2487. if b < 0x80 {
  2488. break
  2489. }
  2490. }
  2491. case 14:
  2492. if wireType != 0 {
  2493. return fmt.Errorf("proto: wrong wireType = %d for field ActiveFile", wireType)
  2494. }
  2495. m.ActiveFile = 0
  2496. for shift := uint(0); ; shift += 7 {
  2497. if shift >= 64 {
  2498. return ErrIntOverflowMetrics
  2499. }
  2500. if iNdEx >= l {
  2501. return io.ErrUnexpectedEOF
  2502. }
  2503. b := dAtA[iNdEx]
  2504. iNdEx++
  2505. m.ActiveFile |= (uint64(b) & 0x7F) << shift
  2506. if b < 0x80 {
  2507. break
  2508. }
  2509. }
  2510. case 15:
  2511. if wireType != 0 {
  2512. return fmt.Errorf("proto: wrong wireType = %d for field Unevictable", wireType)
  2513. }
  2514. m.Unevictable = 0
  2515. for shift := uint(0); ; shift += 7 {
  2516. if shift >= 64 {
  2517. return ErrIntOverflowMetrics
  2518. }
  2519. if iNdEx >= l {
  2520. return io.ErrUnexpectedEOF
  2521. }
  2522. b := dAtA[iNdEx]
  2523. iNdEx++
  2524. m.Unevictable |= (uint64(b) & 0x7F) << shift
  2525. if b < 0x80 {
  2526. break
  2527. }
  2528. }
  2529. case 16:
  2530. if wireType != 0 {
  2531. return fmt.Errorf("proto: wrong wireType = %d for field HierarchicalMemoryLimit", wireType)
  2532. }
  2533. m.HierarchicalMemoryLimit = 0
  2534. for shift := uint(0); ; shift += 7 {
  2535. if shift >= 64 {
  2536. return ErrIntOverflowMetrics
  2537. }
  2538. if iNdEx >= l {
  2539. return io.ErrUnexpectedEOF
  2540. }
  2541. b := dAtA[iNdEx]
  2542. iNdEx++
  2543. m.HierarchicalMemoryLimit |= (uint64(b) & 0x7F) << shift
  2544. if b < 0x80 {
  2545. break
  2546. }
  2547. }
  2548. case 17:
  2549. if wireType != 0 {
  2550. return fmt.Errorf("proto: wrong wireType = %d for field HierarchicalSwapLimit", wireType)
  2551. }
  2552. m.HierarchicalSwapLimit = 0
  2553. for shift := uint(0); ; shift += 7 {
  2554. if shift >= 64 {
  2555. return ErrIntOverflowMetrics
  2556. }
  2557. if iNdEx >= l {
  2558. return io.ErrUnexpectedEOF
  2559. }
  2560. b := dAtA[iNdEx]
  2561. iNdEx++
  2562. m.HierarchicalSwapLimit |= (uint64(b) & 0x7F) << shift
  2563. if b < 0x80 {
  2564. break
  2565. }
  2566. }
  2567. case 18:
  2568. if wireType != 0 {
  2569. return fmt.Errorf("proto: wrong wireType = %d for field TotalCache", wireType)
  2570. }
  2571. m.TotalCache = 0
  2572. for shift := uint(0); ; shift += 7 {
  2573. if shift >= 64 {
  2574. return ErrIntOverflowMetrics
  2575. }
  2576. if iNdEx >= l {
  2577. return io.ErrUnexpectedEOF
  2578. }
  2579. b := dAtA[iNdEx]
  2580. iNdEx++
  2581. m.TotalCache |= (uint64(b) & 0x7F) << shift
  2582. if b < 0x80 {
  2583. break
  2584. }
  2585. }
  2586. case 19:
  2587. if wireType != 0 {
  2588. return fmt.Errorf("proto: wrong wireType = %d for field TotalRSS", wireType)
  2589. }
  2590. m.TotalRSS = 0
  2591. for shift := uint(0); ; shift += 7 {
  2592. if shift >= 64 {
  2593. return ErrIntOverflowMetrics
  2594. }
  2595. if iNdEx >= l {
  2596. return io.ErrUnexpectedEOF
  2597. }
  2598. b := dAtA[iNdEx]
  2599. iNdEx++
  2600. m.TotalRSS |= (uint64(b) & 0x7F) << shift
  2601. if b < 0x80 {
  2602. break
  2603. }
  2604. }
  2605. case 20:
  2606. if wireType != 0 {
  2607. return fmt.Errorf("proto: wrong wireType = %d for field TotalRSSHuge", wireType)
  2608. }
  2609. m.TotalRSSHuge = 0
  2610. for shift := uint(0); ; shift += 7 {
  2611. if shift >= 64 {
  2612. return ErrIntOverflowMetrics
  2613. }
  2614. if iNdEx >= l {
  2615. return io.ErrUnexpectedEOF
  2616. }
  2617. b := dAtA[iNdEx]
  2618. iNdEx++
  2619. m.TotalRSSHuge |= (uint64(b) & 0x7F) << shift
  2620. if b < 0x80 {
  2621. break
  2622. }
  2623. }
  2624. case 21:
  2625. if wireType != 0 {
  2626. return fmt.Errorf("proto: wrong wireType = %d for field TotalMappedFile", wireType)
  2627. }
  2628. m.TotalMappedFile = 0
  2629. for shift := uint(0); ; shift += 7 {
  2630. if shift >= 64 {
  2631. return ErrIntOverflowMetrics
  2632. }
  2633. if iNdEx >= l {
  2634. return io.ErrUnexpectedEOF
  2635. }
  2636. b := dAtA[iNdEx]
  2637. iNdEx++
  2638. m.TotalMappedFile |= (uint64(b) & 0x7F) << shift
  2639. if b < 0x80 {
  2640. break
  2641. }
  2642. }
  2643. case 22:
  2644. if wireType != 0 {
  2645. return fmt.Errorf("proto: wrong wireType = %d for field TotalDirty", wireType)
  2646. }
  2647. m.TotalDirty = 0
  2648. for shift := uint(0); ; shift += 7 {
  2649. if shift >= 64 {
  2650. return ErrIntOverflowMetrics
  2651. }
  2652. if iNdEx >= l {
  2653. return io.ErrUnexpectedEOF
  2654. }
  2655. b := dAtA[iNdEx]
  2656. iNdEx++
  2657. m.TotalDirty |= (uint64(b) & 0x7F) << shift
  2658. if b < 0x80 {
  2659. break
  2660. }
  2661. }
  2662. case 23:
  2663. if wireType != 0 {
  2664. return fmt.Errorf("proto: wrong wireType = %d for field TotalWriteback", wireType)
  2665. }
  2666. m.TotalWriteback = 0
  2667. for shift := uint(0); ; shift += 7 {
  2668. if shift >= 64 {
  2669. return ErrIntOverflowMetrics
  2670. }
  2671. if iNdEx >= l {
  2672. return io.ErrUnexpectedEOF
  2673. }
  2674. b := dAtA[iNdEx]
  2675. iNdEx++
  2676. m.TotalWriteback |= (uint64(b) & 0x7F) << shift
  2677. if b < 0x80 {
  2678. break
  2679. }
  2680. }
  2681. case 24:
  2682. if wireType != 0 {
  2683. return fmt.Errorf("proto: wrong wireType = %d for field TotalPgPgIn", wireType)
  2684. }
  2685. m.TotalPgPgIn = 0
  2686. for shift := uint(0); ; shift += 7 {
  2687. if shift >= 64 {
  2688. return ErrIntOverflowMetrics
  2689. }
  2690. if iNdEx >= l {
  2691. return io.ErrUnexpectedEOF
  2692. }
  2693. b := dAtA[iNdEx]
  2694. iNdEx++
  2695. m.TotalPgPgIn |= (uint64(b) & 0x7F) << shift
  2696. if b < 0x80 {
  2697. break
  2698. }
  2699. }
  2700. case 25:
  2701. if wireType != 0 {
  2702. return fmt.Errorf("proto: wrong wireType = %d for field TotalPgPgOut", wireType)
  2703. }
  2704. m.TotalPgPgOut = 0
  2705. for shift := uint(0); ; shift += 7 {
  2706. if shift >= 64 {
  2707. return ErrIntOverflowMetrics
  2708. }
  2709. if iNdEx >= l {
  2710. return io.ErrUnexpectedEOF
  2711. }
  2712. b := dAtA[iNdEx]
  2713. iNdEx++
  2714. m.TotalPgPgOut |= (uint64(b) & 0x7F) << shift
  2715. if b < 0x80 {
  2716. break
  2717. }
  2718. }
  2719. case 26:
  2720. if wireType != 0 {
  2721. return fmt.Errorf("proto: wrong wireType = %d for field TotalPgFault", wireType)
  2722. }
  2723. m.TotalPgFault = 0
  2724. for shift := uint(0); ; shift += 7 {
  2725. if shift >= 64 {
  2726. return ErrIntOverflowMetrics
  2727. }
  2728. if iNdEx >= l {
  2729. return io.ErrUnexpectedEOF
  2730. }
  2731. b := dAtA[iNdEx]
  2732. iNdEx++
  2733. m.TotalPgFault |= (uint64(b) & 0x7F) << shift
  2734. if b < 0x80 {
  2735. break
  2736. }
  2737. }
  2738. case 27:
  2739. if wireType != 0 {
  2740. return fmt.Errorf("proto: wrong wireType = %d for field TotalPgMajFault", wireType)
  2741. }
  2742. m.TotalPgMajFault = 0
  2743. for shift := uint(0); ; shift += 7 {
  2744. if shift >= 64 {
  2745. return ErrIntOverflowMetrics
  2746. }
  2747. if iNdEx >= l {
  2748. return io.ErrUnexpectedEOF
  2749. }
  2750. b := dAtA[iNdEx]
  2751. iNdEx++
  2752. m.TotalPgMajFault |= (uint64(b) & 0x7F) << shift
  2753. if b < 0x80 {
  2754. break
  2755. }
  2756. }
  2757. case 28:
  2758. if wireType != 0 {
  2759. return fmt.Errorf("proto: wrong wireType = %d for field TotalInactiveAnon", wireType)
  2760. }
  2761. m.TotalInactiveAnon = 0
  2762. for shift := uint(0); ; shift += 7 {
  2763. if shift >= 64 {
  2764. return ErrIntOverflowMetrics
  2765. }
  2766. if iNdEx >= l {
  2767. return io.ErrUnexpectedEOF
  2768. }
  2769. b := dAtA[iNdEx]
  2770. iNdEx++
  2771. m.TotalInactiveAnon |= (uint64(b) & 0x7F) << shift
  2772. if b < 0x80 {
  2773. break
  2774. }
  2775. }
  2776. case 29:
  2777. if wireType != 0 {
  2778. return fmt.Errorf("proto: wrong wireType = %d for field TotalActiveAnon", wireType)
  2779. }
  2780. m.TotalActiveAnon = 0
  2781. for shift := uint(0); ; shift += 7 {
  2782. if shift >= 64 {
  2783. return ErrIntOverflowMetrics
  2784. }
  2785. if iNdEx >= l {
  2786. return io.ErrUnexpectedEOF
  2787. }
  2788. b := dAtA[iNdEx]
  2789. iNdEx++
  2790. m.TotalActiveAnon |= (uint64(b) & 0x7F) << shift
  2791. if b < 0x80 {
  2792. break
  2793. }
  2794. }
  2795. case 30:
  2796. if wireType != 0 {
  2797. return fmt.Errorf("proto: wrong wireType = %d for field TotalInactiveFile", wireType)
  2798. }
  2799. m.TotalInactiveFile = 0
  2800. for shift := uint(0); ; shift += 7 {
  2801. if shift >= 64 {
  2802. return ErrIntOverflowMetrics
  2803. }
  2804. if iNdEx >= l {
  2805. return io.ErrUnexpectedEOF
  2806. }
  2807. b := dAtA[iNdEx]
  2808. iNdEx++
  2809. m.TotalInactiveFile |= (uint64(b) & 0x7F) << shift
  2810. if b < 0x80 {
  2811. break
  2812. }
  2813. }
  2814. case 31:
  2815. if wireType != 0 {
  2816. return fmt.Errorf("proto: wrong wireType = %d for field TotalActiveFile", wireType)
  2817. }
  2818. m.TotalActiveFile = 0
  2819. for shift := uint(0); ; shift += 7 {
  2820. if shift >= 64 {
  2821. return ErrIntOverflowMetrics
  2822. }
  2823. if iNdEx >= l {
  2824. return io.ErrUnexpectedEOF
  2825. }
  2826. b := dAtA[iNdEx]
  2827. iNdEx++
  2828. m.TotalActiveFile |= (uint64(b) & 0x7F) << shift
  2829. if b < 0x80 {
  2830. break
  2831. }
  2832. }
  2833. case 32:
  2834. if wireType != 0 {
  2835. return fmt.Errorf("proto: wrong wireType = %d for field TotalUnevictable", wireType)
  2836. }
  2837. m.TotalUnevictable = 0
  2838. for shift := uint(0); ; shift += 7 {
  2839. if shift >= 64 {
  2840. return ErrIntOverflowMetrics
  2841. }
  2842. if iNdEx >= l {
  2843. return io.ErrUnexpectedEOF
  2844. }
  2845. b := dAtA[iNdEx]
  2846. iNdEx++
  2847. m.TotalUnevictable |= (uint64(b) & 0x7F) << shift
  2848. if b < 0x80 {
  2849. break
  2850. }
  2851. }
  2852. case 33:
  2853. if wireType != 2 {
  2854. return fmt.Errorf("proto: wrong wireType = %d for field Usage", wireType)
  2855. }
  2856. var msglen int
  2857. for shift := uint(0); ; shift += 7 {
  2858. if shift >= 64 {
  2859. return ErrIntOverflowMetrics
  2860. }
  2861. if iNdEx >= l {
  2862. return io.ErrUnexpectedEOF
  2863. }
  2864. b := dAtA[iNdEx]
  2865. iNdEx++
  2866. msglen |= (int(b) & 0x7F) << shift
  2867. if b < 0x80 {
  2868. break
  2869. }
  2870. }
  2871. if msglen < 0 {
  2872. return ErrInvalidLengthMetrics
  2873. }
  2874. postIndex := iNdEx + msglen
  2875. if postIndex > l {
  2876. return io.ErrUnexpectedEOF
  2877. }
  2878. if m.Usage == nil {
  2879. m.Usage = &MemoryEntry{}
  2880. }
  2881. if err := m.Usage.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2882. return err
  2883. }
  2884. iNdEx = postIndex
  2885. case 34:
  2886. if wireType != 2 {
  2887. return fmt.Errorf("proto: wrong wireType = %d for field Swap", wireType)
  2888. }
  2889. var msglen int
  2890. for shift := uint(0); ; shift += 7 {
  2891. if shift >= 64 {
  2892. return ErrIntOverflowMetrics
  2893. }
  2894. if iNdEx >= l {
  2895. return io.ErrUnexpectedEOF
  2896. }
  2897. b := dAtA[iNdEx]
  2898. iNdEx++
  2899. msglen |= (int(b) & 0x7F) << shift
  2900. if b < 0x80 {
  2901. break
  2902. }
  2903. }
  2904. if msglen < 0 {
  2905. return ErrInvalidLengthMetrics
  2906. }
  2907. postIndex := iNdEx + msglen
  2908. if postIndex > l {
  2909. return io.ErrUnexpectedEOF
  2910. }
  2911. if m.Swap == nil {
  2912. m.Swap = &MemoryEntry{}
  2913. }
  2914. if err := m.Swap.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2915. return err
  2916. }
  2917. iNdEx = postIndex
  2918. case 35:
  2919. if wireType != 2 {
  2920. return fmt.Errorf("proto: wrong wireType = %d for field Kernel", wireType)
  2921. }
  2922. var msglen int
  2923. for shift := uint(0); ; shift += 7 {
  2924. if shift >= 64 {
  2925. return ErrIntOverflowMetrics
  2926. }
  2927. if iNdEx >= l {
  2928. return io.ErrUnexpectedEOF
  2929. }
  2930. b := dAtA[iNdEx]
  2931. iNdEx++
  2932. msglen |= (int(b) & 0x7F) << shift
  2933. if b < 0x80 {
  2934. break
  2935. }
  2936. }
  2937. if msglen < 0 {
  2938. return ErrInvalidLengthMetrics
  2939. }
  2940. postIndex := iNdEx + msglen
  2941. if postIndex > l {
  2942. return io.ErrUnexpectedEOF
  2943. }
  2944. if m.Kernel == nil {
  2945. m.Kernel = &MemoryEntry{}
  2946. }
  2947. if err := m.Kernel.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2948. return err
  2949. }
  2950. iNdEx = postIndex
  2951. case 36:
  2952. if wireType != 2 {
  2953. return fmt.Errorf("proto: wrong wireType = %d for field KernelTCP", wireType)
  2954. }
  2955. var msglen int
  2956. for shift := uint(0); ; shift += 7 {
  2957. if shift >= 64 {
  2958. return ErrIntOverflowMetrics
  2959. }
  2960. if iNdEx >= l {
  2961. return io.ErrUnexpectedEOF
  2962. }
  2963. b := dAtA[iNdEx]
  2964. iNdEx++
  2965. msglen |= (int(b) & 0x7F) << shift
  2966. if b < 0x80 {
  2967. break
  2968. }
  2969. }
  2970. if msglen < 0 {
  2971. return ErrInvalidLengthMetrics
  2972. }
  2973. postIndex := iNdEx + msglen
  2974. if postIndex > l {
  2975. return io.ErrUnexpectedEOF
  2976. }
  2977. if m.KernelTCP == nil {
  2978. m.KernelTCP = &MemoryEntry{}
  2979. }
  2980. if err := m.KernelTCP.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2981. return err
  2982. }
  2983. iNdEx = postIndex
  2984. default:
  2985. iNdEx = preIndex
  2986. skippy, err := skipMetrics(dAtA[iNdEx:])
  2987. if err != nil {
  2988. return err
  2989. }
  2990. if skippy < 0 {
  2991. return ErrInvalidLengthMetrics
  2992. }
  2993. if (iNdEx + skippy) > l {
  2994. return io.ErrUnexpectedEOF
  2995. }
  2996. iNdEx += skippy
  2997. }
  2998. }
  2999. if iNdEx > l {
  3000. return io.ErrUnexpectedEOF
  3001. }
  3002. return nil
  3003. }
  3004. func (m *MemoryEntry) Unmarshal(dAtA []byte) error {
  3005. l := len(dAtA)
  3006. iNdEx := 0
  3007. for iNdEx < l {
  3008. preIndex := iNdEx
  3009. var wire uint64
  3010. for shift := uint(0); ; shift += 7 {
  3011. if shift >= 64 {
  3012. return ErrIntOverflowMetrics
  3013. }
  3014. if iNdEx >= l {
  3015. return io.ErrUnexpectedEOF
  3016. }
  3017. b := dAtA[iNdEx]
  3018. iNdEx++
  3019. wire |= (uint64(b) & 0x7F) << shift
  3020. if b < 0x80 {
  3021. break
  3022. }
  3023. }
  3024. fieldNum := int32(wire >> 3)
  3025. wireType := int(wire & 0x7)
  3026. if wireType == 4 {
  3027. return fmt.Errorf("proto: MemoryEntry: wiretype end group for non-group")
  3028. }
  3029. if fieldNum <= 0 {
  3030. return fmt.Errorf("proto: MemoryEntry: illegal tag %d (wire type %d)", fieldNum, wire)
  3031. }
  3032. switch fieldNum {
  3033. case 1:
  3034. if wireType != 0 {
  3035. return fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType)
  3036. }
  3037. m.Limit = 0
  3038. for shift := uint(0); ; shift += 7 {
  3039. if shift >= 64 {
  3040. return ErrIntOverflowMetrics
  3041. }
  3042. if iNdEx >= l {
  3043. return io.ErrUnexpectedEOF
  3044. }
  3045. b := dAtA[iNdEx]
  3046. iNdEx++
  3047. m.Limit |= (uint64(b) & 0x7F) << shift
  3048. if b < 0x80 {
  3049. break
  3050. }
  3051. }
  3052. case 2:
  3053. if wireType != 0 {
  3054. return fmt.Errorf("proto: wrong wireType = %d for field Usage", wireType)
  3055. }
  3056. m.Usage = 0
  3057. for shift := uint(0); ; shift += 7 {
  3058. if shift >= 64 {
  3059. return ErrIntOverflowMetrics
  3060. }
  3061. if iNdEx >= l {
  3062. return io.ErrUnexpectedEOF
  3063. }
  3064. b := dAtA[iNdEx]
  3065. iNdEx++
  3066. m.Usage |= (uint64(b) & 0x7F) << shift
  3067. if b < 0x80 {
  3068. break
  3069. }
  3070. }
  3071. case 3:
  3072. if wireType != 0 {
  3073. return fmt.Errorf("proto: wrong wireType = %d for field Max", wireType)
  3074. }
  3075. m.Max = 0
  3076. for shift := uint(0); ; shift += 7 {
  3077. if shift >= 64 {
  3078. return ErrIntOverflowMetrics
  3079. }
  3080. if iNdEx >= l {
  3081. return io.ErrUnexpectedEOF
  3082. }
  3083. b := dAtA[iNdEx]
  3084. iNdEx++
  3085. m.Max |= (uint64(b) & 0x7F) << shift
  3086. if b < 0x80 {
  3087. break
  3088. }
  3089. }
  3090. case 4:
  3091. if wireType != 0 {
  3092. return fmt.Errorf("proto: wrong wireType = %d for field Failcnt", wireType)
  3093. }
  3094. m.Failcnt = 0
  3095. for shift := uint(0); ; shift += 7 {
  3096. if shift >= 64 {
  3097. return ErrIntOverflowMetrics
  3098. }
  3099. if iNdEx >= l {
  3100. return io.ErrUnexpectedEOF
  3101. }
  3102. b := dAtA[iNdEx]
  3103. iNdEx++
  3104. m.Failcnt |= (uint64(b) & 0x7F) << shift
  3105. if b < 0x80 {
  3106. break
  3107. }
  3108. }
  3109. default:
  3110. iNdEx = preIndex
  3111. skippy, err := skipMetrics(dAtA[iNdEx:])
  3112. if err != nil {
  3113. return err
  3114. }
  3115. if skippy < 0 {
  3116. return ErrInvalidLengthMetrics
  3117. }
  3118. if (iNdEx + skippy) > l {
  3119. return io.ErrUnexpectedEOF
  3120. }
  3121. iNdEx += skippy
  3122. }
  3123. }
  3124. if iNdEx > l {
  3125. return io.ErrUnexpectedEOF
  3126. }
  3127. return nil
  3128. }
  3129. func (m *BlkIOStat) Unmarshal(dAtA []byte) error {
  3130. l := len(dAtA)
  3131. iNdEx := 0
  3132. for iNdEx < l {
  3133. preIndex := iNdEx
  3134. var wire uint64
  3135. for shift := uint(0); ; shift += 7 {
  3136. if shift >= 64 {
  3137. return ErrIntOverflowMetrics
  3138. }
  3139. if iNdEx >= l {
  3140. return io.ErrUnexpectedEOF
  3141. }
  3142. b := dAtA[iNdEx]
  3143. iNdEx++
  3144. wire |= (uint64(b) & 0x7F) << shift
  3145. if b < 0x80 {
  3146. break
  3147. }
  3148. }
  3149. fieldNum := int32(wire >> 3)
  3150. wireType := int(wire & 0x7)
  3151. if wireType == 4 {
  3152. return fmt.Errorf("proto: BlkIOStat: wiretype end group for non-group")
  3153. }
  3154. if fieldNum <= 0 {
  3155. return fmt.Errorf("proto: BlkIOStat: illegal tag %d (wire type %d)", fieldNum, wire)
  3156. }
  3157. switch fieldNum {
  3158. case 1:
  3159. if wireType != 2 {
  3160. return fmt.Errorf("proto: wrong wireType = %d for field IoServiceBytesRecursive", wireType)
  3161. }
  3162. var msglen int
  3163. for shift := uint(0); ; shift += 7 {
  3164. if shift >= 64 {
  3165. return ErrIntOverflowMetrics
  3166. }
  3167. if iNdEx >= l {
  3168. return io.ErrUnexpectedEOF
  3169. }
  3170. b := dAtA[iNdEx]
  3171. iNdEx++
  3172. msglen |= (int(b) & 0x7F) << shift
  3173. if b < 0x80 {
  3174. break
  3175. }
  3176. }
  3177. if msglen < 0 {
  3178. return ErrInvalidLengthMetrics
  3179. }
  3180. postIndex := iNdEx + msglen
  3181. if postIndex > l {
  3182. return io.ErrUnexpectedEOF
  3183. }
  3184. m.IoServiceBytesRecursive = append(m.IoServiceBytesRecursive, &BlkIOEntry{})
  3185. if err := m.IoServiceBytesRecursive[len(m.IoServiceBytesRecursive)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3186. return err
  3187. }
  3188. iNdEx = postIndex
  3189. case 2:
  3190. if wireType != 2 {
  3191. return fmt.Errorf("proto: wrong wireType = %d for field IoServicedRecursive", wireType)
  3192. }
  3193. var msglen int
  3194. for shift := uint(0); ; shift += 7 {
  3195. if shift >= 64 {
  3196. return ErrIntOverflowMetrics
  3197. }
  3198. if iNdEx >= l {
  3199. return io.ErrUnexpectedEOF
  3200. }
  3201. b := dAtA[iNdEx]
  3202. iNdEx++
  3203. msglen |= (int(b) & 0x7F) << shift
  3204. if b < 0x80 {
  3205. break
  3206. }
  3207. }
  3208. if msglen < 0 {
  3209. return ErrInvalidLengthMetrics
  3210. }
  3211. postIndex := iNdEx + msglen
  3212. if postIndex > l {
  3213. return io.ErrUnexpectedEOF
  3214. }
  3215. m.IoServicedRecursive = append(m.IoServicedRecursive, &BlkIOEntry{})
  3216. if err := m.IoServicedRecursive[len(m.IoServicedRecursive)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3217. return err
  3218. }
  3219. iNdEx = postIndex
  3220. case 3:
  3221. if wireType != 2 {
  3222. return fmt.Errorf("proto: wrong wireType = %d for field IoQueuedRecursive", wireType)
  3223. }
  3224. var msglen int
  3225. for shift := uint(0); ; shift += 7 {
  3226. if shift >= 64 {
  3227. return ErrIntOverflowMetrics
  3228. }
  3229. if iNdEx >= l {
  3230. return io.ErrUnexpectedEOF
  3231. }
  3232. b := dAtA[iNdEx]
  3233. iNdEx++
  3234. msglen |= (int(b) & 0x7F) << shift
  3235. if b < 0x80 {
  3236. break
  3237. }
  3238. }
  3239. if msglen < 0 {
  3240. return ErrInvalidLengthMetrics
  3241. }
  3242. postIndex := iNdEx + msglen
  3243. if postIndex > l {
  3244. return io.ErrUnexpectedEOF
  3245. }
  3246. m.IoQueuedRecursive = append(m.IoQueuedRecursive, &BlkIOEntry{})
  3247. if err := m.IoQueuedRecursive[len(m.IoQueuedRecursive)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3248. return err
  3249. }
  3250. iNdEx = postIndex
  3251. case 4:
  3252. if wireType != 2 {
  3253. return fmt.Errorf("proto: wrong wireType = %d for field IoServiceTimeRecursive", wireType)
  3254. }
  3255. var msglen int
  3256. for shift := uint(0); ; shift += 7 {
  3257. if shift >= 64 {
  3258. return ErrIntOverflowMetrics
  3259. }
  3260. if iNdEx >= l {
  3261. return io.ErrUnexpectedEOF
  3262. }
  3263. b := dAtA[iNdEx]
  3264. iNdEx++
  3265. msglen |= (int(b) & 0x7F) << shift
  3266. if b < 0x80 {
  3267. break
  3268. }
  3269. }
  3270. if msglen < 0 {
  3271. return ErrInvalidLengthMetrics
  3272. }
  3273. postIndex := iNdEx + msglen
  3274. if postIndex > l {
  3275. return io.ErrUnexpectedEOF
  3276. }
  3277. m.IoServiceTimeRecursive = append(m.IoServiceTimeRecursive, &BlkIOEntry{})
  3278. if err := m.IoServiceTimeRecursive[len(m.IoServiceTimeRecursive)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3279. return err
  3280. }
  3281. iNdEx = postIndex
  3282. case 5:
  3283. if wireType != 2 {
  3284. return fmt.Errorf("proto: wrong wireType = %d for field IoWaitTimeRecursive", wireType)
  3285. }
  3286. var msglen int
  3287. for shift := uint(0); ; shift += 7 {
  3288. if shift >= 64 {
  3289. return ErrIntOverflowMetrics
  3290. }
  3291. if iNdEx >= l {
  3292. return io.ErrUnexpectedEOF
  3293. }
  3294. b := dAtA[iNdEx]
  3295. iNdEx++
  3296. msglen |= (int(b) & 0x7F) << shift
  3297. if b < 0x80 {
  3298. break
  3299. }
  3300. }
  3301. if msglen < 0 {
  3302. return ErrInvalidLengthMetrics
  3303. }
  3304. postIndex := iNdEx + msglen
  3305. if postIndex > l {
  3306. return io.ErrUnexpectedEOF
  3307. }
  3308. m.IoWaitTimeRecursive = append(m.IoWaitTimeRecursive, &BlkIOEntry{})
  3309. if err := m.IoWaitTimeRecursive[len(m.IoWaitTimeRecursive)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3310. return err
  3311. }
  3312. iNdEx = postIndex
  3313. case 6:
  3314. if wireType != 2 {
  3315. return fmt.Errorf("proto: wrong wireType = %d for field IoMergedRecursive", wireType)
  3316. }
  3317. var msglen int
  3318. for shift := uint(0); ; shift += 7 {
  3319. if shift >= 64 {
  3320. return ErrIntOverflowMetrics
  3321. }
  3322. if iNdEx >= l {
  3323. return io.ErrUnexpectedEOF
  3324. }
  3325. b := dAtA[iNdEx]
  3326. iNdEx++
  3327. msglen |= (int(b) & 0x7F) << shift
  3328. if b < 0x80 {
  3329. break
  3330. }
  3331. }
  3332. if msglen < 0 {
  3333. return ErrInvalidLengthMetrics
  3334. }
  3335. postIndex := iNdEx + msglen
  3336. if postIndex > l {
  3337. return io.ErrUnexpectedEOF
  3338. }
  3339. m.IoMergedRecursive = append(m.IoMergedRecursive, &BlkIOEntry{})
  3340. if err := m.IoMergedRecursive[len(m.IoMergedRecursive)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3341. return err
  3342. }
  3343. iNdEx = postIndex
  3344. case 7:
  3345. if wireType != 2 {
  3346. return fmt.Errorf("proto: wrong wireType = %d for field IoTimeRecursive", wireType)
  3347. }
  3348. var msglen int
  3349. for shift := uint(0); ; shift += 7 {
  3350. if shift >= 64 {
  3351. return ErrIntOverflowMetrics
  3352. }
  3353. if iNdEx >= l {
  3354. return io.ErrUnexpectedEOF
  3355. }
  3356. b := dAtA[iNdEx]
  3357. iNdEx++
  3358. msglen |= (int(b) & 0x7F) << shift
  3359. if b < 0x80 {
  3360. break
  3361. }
  3362. }
  3363. if msglen < 0 {
  3364. return ErrInvalidLengthMetrics
  3365. }
  3366. postIndex := iNdEx + msglen
  3367. if postIndex > l {
  3368. return io.ErrUnexpectedEOF
  3369. }
  3370. m.IoTimeRecursive = append(m.IoTimeRecursive, &BlkIOEntry{})
  3371. if err := m.IoTimeRecursive[len(m.IoTimeRecursive)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3372. return err
  3373. }
  3374. iNdEx = postIndex
  3375. case 8:
  3376. if wireType != 2 {
  3377. return fmt.Errorf("proto: wrong wireType = %d for field SectorsRecursive", wireType)
  3378. }
  3379. var msglen int
  3380. for shift := uint(0); ; shift += 7 {
  3381. if shift >= 64 {
  3382. return ErrIntOverflowMetrics
  3383. }
  3384. if iNdEx >= l {
  3385. return io.ErrUnexpectedEOF
  3386. }
  3387. b := dAtA[iNdEx]
  3388. iNdEx++
  3389. msglen |= (int(b) & 0x7F) << shift
  3390. if b < 0x80 {
  3391. break
  3392. }
  3393. }
  3394. if msglen < 0 {
  3395. return ErrInvalidLengthMetrics
  3396. }
  3397. postIndex := iNdEx + msglen
  3398. if postIndex > l {
  3399. return io.ErrUnexpectedEOF
  3400. }
  3401. m.SectorsRecursive = append(m.SectorsRecursive, &BlkIOEntry{})
  3402. if err := m.SectorsRecursive[len(m.SectorsRecursive)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3403. return err
  3404. }
  3405. iNdEx = postIndex
  3406. default:
  3407. iNdEx = preIndex
  3408. skippy, err := skipMetrics(dAtA[iNdEx:])
  3409. if err != nil {
  3410. return err
  3411. }
  3412. if skippy < 0 {
  3413. return ErrInvalidLengthMetrics
  3414. }
  3415. if (iNdEx + skippy) > l {
  3416. return io.ErrUnexpectedEOF
  3417. }
  3418. iNdEx += skippy
  3419. }
  3420. }
  3421. if iNdEx > l {
  3422. return io.ErrUnexpectedEOF
  3423. }
  3424. return nil
  3425. }
  3426. func (m *BlkIOEntry) Unmarshal(dAtA []byte) error {
  3427. l := len(dAtA)
  3428. iNdEx := 0
  3429. for iNdEx < l {
  3430. preIndex := iNdEx
  3431. var wire uint64
  3432. for shift := uint(0); ; shift += 7 {
  3433. if shift >= 64 {
  3434. return ErrIntOverflowMetrics
  3435. }
  3436. if iNdEx >= l {
  3437. return io.ErrUnexpectedEOF
  3438. }
  3439. b := dAtA[iNdEx]
  3440. iNdEx++
  3441. wire |= (uint64(b) & 0x7F) << shift
  3442. if b < 0x80 {
  3443. break
  3444. }
  3445. }
  3446. fieldNum := int32(wire >> 3)
  3447. wireType := int(wire & 0x7)
  3448. if wireType == 4 {
  3449. return fmt.Errorf("proto: BlkIOEntry: wiretype end group for non-group")
  3450. }
  3451. if fieldNum <= 0 {
  3452. return fmt.Errorf("proto: BlkIOEntry: illegal tag %d (wire type %d)", fieldNum, wire)
  3453. }
  3454. switch fieldNum {
  3455. case 1:
  3456. if wireType != 2 {
  3457. return fmt.Errorf("proto: wrong wireType = %d for field Op", wireType)
  3458. }
  3459. var stringLen uint64
  3460. for shift := uint(0); ; shift += 7 {
  3461. if shift >= 64 {
  3462. return ErrIntOverflowMetrics
  3463. }
  3464. if iNdEx >= l {
  3465. return io.ErrUnexpectedEOF
  3466. }
  3467. b := dAtA[iNdEx]
  3468. iNdEx++
  3469. stringLen |= (uint64(b) & 0x7F) << shift
  3470. if b < 0x80 {
  3471. break
  3472. }
  3473. }
  3474. intStringLen := int(stringLen)
  3475. if intStringLen < 0 {
  3476. return ErrInvalidLengthMetrics
  3477. }
  3478. postIndex := iNdEx + intStringLen
  3479. if postIndex > l {
  3480. return io.ErrUnexpectedEOF
  3481. }
  3482. m.Op = string(dAtA[iNdEx:postIndex])
  3483. iNdEx = postIndex
  3484. case 2:
  3485. if wireType != 2 {
  3486. return fmt.Errorf("proto: wrong wireType = %d for field Device", wireType)
  3487. }
  3488. var stringLen uint64
  3489. for shift := uint(0); ; shift += 7 {
  3490. if shift >= 64 {
  3491. return ErrIntOverflowMetrics
  3492. }
  3493. if iNdEx >= l {
  3494. return io.ErrUnexpectedEOF
  3495. }
  3496. b := dAtA[iNdEx]
  3497. iNdEx++
  3498. stringLen |= (uint64(b) & 0x7F) << shift
  3499. if b < 0x80 {
  3500. break
  3501. }
  3502. }
  3503. intStringLen := int(stringLen)
  3504. if intStringLen < 0 {
  3505. return ErrInvalidLengthMetrics
  3506. }
  3507. postIndex := iNdEx + intStringLen
  3508. if postIndex > l {
  3509. return io.ErrUnexpectedEOF
  3510. }
  3511. m.Device = string(dAtA[iNdEx:postIndex])
  3512. iNdEx = postIndex
  3513. case 3:
  3514. if wireType != 0 {
  3515. return fmt.Errorf("proto: wrong wireType = %d for field Major", wireType)
  3516. }
  3517. m.Major = 0
  3518. for shift := uint(0); ; shift += 7 {
  3519. if shift >= 64 {
  3520. return ErrIntOverflowMetrics
  3521. }
  3522. if iNdEx >= l {
  3523. return io.ErrUnexpectedEOF
  3524. }
  3525. b := dAtA[iNdEx]
  3526. iNdEx++
  3527. m.Major |= (uint64(b) & 0x7F) << shift
  3528. if b < 0x80 {
  3529. break
  3530. }
  3531. }
  3532. case 4:
  3533. if wireType != 0 {
  3534. return fmt.Errorf("proto: wrong wireType = %d for field Minor", wireType)
  3535. }
  3536. m.Minor = 0
  3537. for shift := uint(0); ; shift += 7 {
  3538. if shift >= 64 {
  3539. return ErrIntOverflowMetrics
  3540. }
  3541. if iNdEx >= l {
  3542. return io.ErrUnexpectedEOF
  3543. }
  3544. b := dAtA[iNdEx]
  3545. iNdEx++
  3546. m.Minor |= (uint64(b) & 0x7F) << shift
  3547. if b < 0x80 {
  3548. break
  3549. }
  3550. }
  3551. case 5:
  3552. if wireType != 0 {
  3553. return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType)
  3554. }
  3555. m.Value = 0
  3556. for shift := uint(0); ; shift += 7 {
  3557. if shift >= 64 {
  3558. return ErrIntOverflowMetrics
  3559. }
  3560. if iNdEx >= l {
  3561. return io.ErrUnexpectedEOF
  3562. }
  3563. b := dAtA[iNdEx]
  3564. iNdEx++
  3565. m.Value |= (uint64(b) & 0x7F) << shift
  3566. if b < 0x80 {
  3567. break
  3568. }
  3569. }
  3570. default:
  3571. iNdEx = preIndex
  3572. skippy, err := skipMetrics(dAtA[iNdEx:])
  3573. if err != nil {
  3574. return err
  3575. }
  3576. if skippy < 0 {
  3577. return ErrInvalidLengthMetrics
  3578. }
  3579. if (iNdEx + skippy) > l {
  3580. return io.ErrUnexpectedEOF
  3581. }
  3582. iNdEx += skippy
  3583. }
  3584. }
  3585. if iNdEx > l {
  3586. return io.ErrUnexpectedEOF
  3587. }
  3588. return nil
  3589. }
  3590. func skipMetrics(dAtA []byte) (n int, err error) {
  3591. l := len(dAtA)
  3592. iNdEx := 0
  3593. for iNdEx < l {
  3594. var wire uint64
  3595. for shift := uint(0); ; shift += 7 {
  3596. if shift >= 64 {
  3597. return 0, ErrIntOverflowMetrics
  3598. }
  3599. if iNdEx >= l {
  3600. return 0, io.ErrUnexpectedEOF
  3601. }
  3602. b := dAtA[iNdEx]
  3603. iNdEx++
  3604. wire |= (uint64(b) & 0x7F) << shift
  3605. if b < 0x80 {
  3606. break
  3607. }
  3608. }
  3609. wireType := int(wire & 0x7)
  3610. switch wireType {
  3611. case 0:
  3612. for shift := uint(0); ; shift += 7 {
  3613. if shift >= 64 {
  3614. return 0, ErrIntOverflowMetrics
  3615. }
  3616. if iNdEx >= l {
  3617. return 0, io.ErrUnexpectedEOF
  3618. }
  3619. iNdEx++
  3620. if dAtA[iNdEx-1] < 0x80 {
  3621. break
  3622. }
  3623. }
  3624. return iNdEx, nil
  3625. case 1:
  3626. iNdEx += 8
  3627. return iNdEx, nil
  3628. case 2:
  3629. var length int
  3630. for shift := uint(0); ; shift += 7 {
  3631. if shift >= 64 {
  3632. return 0, ErrIntOverflowMetrics
  3633. }
  3634. if iNdEx >= l {
  3635. return 0, io.ErrUnexpectedEOF
  3636. }
  3637. b := dAtA[iNdEx]
  3638. iNdEx++
  3639. length |= (int(b) & 0x7F) << shift
  3640. if b < 0x80 {
  3641. break
  3642. }
  3643. }
  3644. iNdEx += length
  3645. if length < 0 {
  3646. return 0, ErrInvalidLengthMetrics
  3647. }
  3648. return iNdEx, nil
  3649. case 3:
  3650. for {
  3651. var innerWire uint64
  3652. var start int = iNdEx
  3653. for shift := uint(0); ; shift += 7 {
  3654. if shift >= 64 {
  3655. return 0, ErrIntOverflowMetrics
  3656. }
  3657. if iNdEx >= l {
  3658. return 0, io.ErrUnexpectedEOF
  3659. }
  3660. b := dAtA[iNdEx]
  3661. iNdEx++
  3662. innerWire |= (uint64(b) & 0x7F) << shift
  3663. if b < 0x80 {
  3664. break
  3665. }
  3666. }
  3667. innerWireType := int(innerWire & 0x7)
  3668. if innerWireType == 4 {
  3669. break
  3670. }
  3671. next, err := skipMetrics(dAtA[start:])
  3672. if err != nil {
  3673. return 0, err
  3674. }
  3675. iNdEx = start + next
  3676. }
  3677. return iNdEx, nil
  3678. case 4:
  3679. return iNdEx, nil
  3680. case 5:
  3681. iNdEx += 4
  3682. return iNdEx, nil
  3683. default:
  3684. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  3685. }
  3686. }
  3687. panic("unreachable")
  3688. }
  3689. var (
  3690. ErrInvalidLengthMetrics = fmt.Errorf("proto: negative length found during unmarshaling")
  3691. ErrIntOverflowMetrics = fmt.Errorf("proto: integer overflow")
  3692. )
  3693. func init() { proto.RegisterFile("github.com/containerd/cgroups/metrics.proto", fileDescriptorMetrics) }
  3694. var fileDescriptorMetrics = []byte{
  3695. // 1325 bytes of a gzipped FileDescriptorProto
  3696. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x57, 0x4d, 0x6f, 0x1b, 0xb7,
  3697. 0x16, 0x8d, 0xac, 0xb1, 0x3e, 0xae, 0x6c, 0xc7, 0xa6, 0x13, 0x67, 0xec, 0x97, 0x27, 0x29, 0xb2,
  3698. 0xfd, 0x9e, 0x5b, 0x03, 0x32, 0x9a, 0x02, 0x41, 0x93, 0xa6, 0x28, 0x22, 0xb7, 0x41, 0x83, 0xd6,
  3699. 0x88, 0x32, 0xb2, 0x91, 0x76, 0x35, 0x18, 0x8d, 0x98, 0x31, 0xe3, 0xd1, 0x70, 0xc2, 0xe1, 0xc8,
  3700. 0x71, 0x57, 0xdd, 0xf5, 0x37, 0xf5, 0x1f, 0x64, 0xd9, 0x4d, 0x81, 0x76, 0x63, 0x34, 0xfa, 0x25,
  3701. 0x05, 0x2f, 0xe7, 0x4b, 0x49, 0xdc, 0x40, 0xbb, 0xb9, 0xbc, 0xe7, 0x1c, 0x5e, 0x5e, 0x1e, 0x8a,
  3702. 0x14, 0xec, 0x7b, 0x4c, 0x9e, 0xc6, 0xc3, 0xae, 0xcb, 0xc7, 0x07, 0x2e, 0x0f, 0xa4, 0xc3, 0x02,
  3703. 0x2a, 0x46, 0x07, 0xae, 0x27, 0x78, 0x1c, 0x46, 0x07, 0x63, 0x2a, 0x05, 0x73, 0xa3, 0x6e, 0x28,
  3704. 0xb8, 0xe4, 0xc4, 0x64, 0xbc, 0x9b, 0x83, 0xba, 0x09, 0xa8, 0x3b, 0xf9, 0x6c, 0xeb, 0x86, 0xc7,
  3705. 0x3d, 0x8e, 0xa0, 0x03, 0xf5, 0xa5, 0xf1, 0x9d, 0xdf, 0x16, 0xa0, 0x7a, 0xa4, 0x15, 0xc8, 0xd7,
  3706. 0x50, 0x3d, 0x8d, 0x3d, 0x2a, 0xfd, 0xa1, 0x59, 0x6a, 0x97, 0xf7, 0x1a, 0x77, 0x77, 0xbb, 0x57,
  3707. 0xa9, 0x75, 0xbf, 0xd3, 0xc0, 0x81, 0x74, 0xa4, 0x95, 0xb2, 0xc8, 0x3d, 0x30, 0x42, 0x36, 0x8a,
  3708. 0xcc, 0x85, 0x76, 0x69, 0xaf, 0x71, 0xb7, 0x73, 0x35, 0xbb, 0xcf, 0x46, 0x11, 0x52, 0x11, 0x4f,
  3709. 0x1e, 0x42, 0xd9, 0x0d, 0x63, 0xb3, 0x8c, 0xb4, 0x3b, 0x57, 0xd3, 0x0e, 0xfb, 0x27, 0x8a, 0xd5,
  3710. 0xab, 0x4e, 0x2f, 0x5b, 0xe5, 0xc3, 0xfe, 0x89, 0xa5, 0x68, 0xe4, 0x21, 0x54, 0xc6, 0x74, 0xcc,
  3711. 0xc5, 0x85, 0x69, 0xa0, 0xc0, 0xce, 0xd5, 0x02, 0x47, 0x88, 0xc3, 0x99, 0x13, 0x0e, 0xb9, 0x0f,
  3712. 0x8b, 0x43, 0xff, 0x8c, 0x71, 0x73, 0x11, 0xc9, 0xdb, 0x57, 0x93, 0x7b, 0xfe, 0xd9, 0x93, 0xa7,
  3713. 0xc8, 0xd5, 0x8c, 0xce, 0x19, 0x34, 0x0a, 0x6d, 0x20, 0x37, 0x60, 0x31, 0x8e, 0x1c, 0x8f, 0x9a,
  3714. 0xa5, 0x76, 0x69, 0xcf, 0xb0, 0x74, 0x40, 0x56, 0xa1, 0x3c, 0x76, 0x5e, 0x63, 0x4b, 0x0c, 0x4b,
  3715. 0x7d, 0x12, 0x13, 0xaa, 0x2f, 0x1c, 0xe6, 0xbb, 0x81, 0xc4, 0x15, 0x1b, 0x56, 0x1a, 0x92, 0x2d,
  3716. 0xa8, 0x85, 0x8e, 0x47, 0x23, 0xf6, 0x33, 0xc5, 0xb5, 0xd4, 0xad, 0x2c, 0xee, 0x3c, 0x80, 0x5a,
  3717. 0xda, 0x35, 0xa5, 0xe0, 0xc6, 0x42, 0xd0, 0x40, 0x26, 0x73, 0xa5, 0xa1, 0xaa, 0xc1, 0x67, 0x63,
  3718. 0x26, 0x93, 0xf9, 0x74, 0xd0, 0xf9, 0xb5, 0x04, 0xd5, 0xa4, 0x77, 0xe4, 0x8b, 0x62, 0x95, 0xff,
  3719. 0xba, 0x49, 0x87, 0xfd, 0x93, 0x13, 0x85, 0x4c, 0x57, 0xd2, 0x03, 0x90, 0xa7, 0x82, 0x4b, 0xe9,
  3720. 0xb3, 0xc0, 0xfb, 0xf8, 0x1e, 0x1f, 0x6b, 0x2c, 0xb5, 0x0a, 0xac, 0xce, 0x2b, 0xa8, 0xa5, 0xb2,
  3721. 0xaa, 0x56, 0xc9, 0xa5, 0xe3, 0xa7, 0xfd, 0xc2, 0x80, 0x6c, 0x40, 0xe5, 0x8c, 0x8a, 0x80, 0xfa,
  3722. 0xc9, 0x12, 0x92, 0x88, 0x10, 0x30, 0xe2, 0x88, 0x8a, 0xa4, 0x65, 0xf8, 0x4d, 0xb6, 0xa1, 0x1a,
  3723. 0x52, 0x61, 0x2b, 0xef, 0x18, 0xed, 0xf2, 0x9e, 0xd1, 0x83, 0xe9, 0x65, 0xab, 0xd2, 0xa7, 0x42,
  3724. 0x79, 0xa3, 0x12, 0x52, 0x71, 0x18, 0xc6, 0x9d, 0xd7, 0x50, 0x4b, 0x4b, 0x51, 0x8d, 0x0b, 0xa9,
  3725. 0x60, 0x7c, 0x14, 0xa5, 0x8d, 0x4b, 0x42, 0xb2, 0x0f, 0x6b, 0x49, 0x99, 0x74, 0x64, 0xa7, 0x18,
  3726. 0x5d, 0xc1, 0x6a, 0x96, 0xe8, 0x27, 0xe0, 0x5d, 0x58, 0xc9, 0xc1, 0x92, 0x8d, 0x69, 0x52, 0xd5,
  3727. 0x72, 0x36, 0x7a, 0xcc, 0xc6, 0xb4, 0xf3, 0x57, 0x03, 0x20, 0x77, 0x9c, 0x5a, 0xaf, 0xeb, 0xb8,
  3728. 0xa7, 0x99, 0x3f, 0x30, 0x20, 0x9b, 0x50, 0x16, 0x51, 0x32, 0x95, 0x36, 0xb6, 0x35, 0x18, 0x58,
  3729. 0x6a, 0x8c, 0xfc, 0x0f, 0x6a, 0x22, 0x8a, 0x6c, 0x75, 0xba, 0xf4, 0x04, 0xbd, 0xc6, 0xf4, 0xb2,
  3730. 0x55, 0xb5, 0x06, 0x03, 0x65, 0x3b, 0xab, 0x2a, 0xa2, 0x48, 0x7d, 0x90, 0x16, 0x34, 0xc6, 0x4e,
  3731. 0x18, 0xd2, 0x91, 0xfd, 0x82, 0xf9, 0xda, 0x39, 0x86, 0x05, 0x7a, 0xe8, 0x31, 0xf3, 0xb1, 0xd3,
  3732. 0x23, 0x26, 0xe4, 0x05, 0x7a, 0xdc, 0xb0, 0x74, 0x40, 0x6e, 0x43, 0xfd, 0x5c, 0x30, 0x49, 0x87,
  3733. 0x8e, 0x7b, 0x66, 0x56, 0x30, 0x93, 0x0f, 0x10, 0x13, 0x6a, 0xa1, 0x67, 0x87, 0x9e, 0xcd, 0x02,
  3734. 0xb3, 0xaa, 0x77, 0x22, 0xf4, 0xfa, 0xde, 0x93, 0x80, 0x6c, 0x41, 0x5d, 0x67, 0x78, 0x2c, 0xcd,
  3735. 0x5a, 0xd2, 0x46, 0xaf, 0xef, 0x3d, 0x8d, 0x25, 0xd9, 0x44, 0xd6, 0x0b, 0x27, 0xf6, 0xa5, 0x59,
  3736. 0x4f, 0x53, 0x8f, 0x55, 0x48, 0xda, 0xb0, 0x14, 0x7a, 0xf6, 0xd8, 0x79, 0x99, 0xa4, 0x41, 0x97,
  3737. 0x19, 0x7a, 0x47, 0xce, 0x4b, 0x8d, 0xd8, 0x86, 0x65, 0x16, 0x38, 0xae, 0x64, 0x13, 0x6a, 0x3b,
  3738. 0x01, 0x0f, 0xcc, 0x06, 0x42, 0x96, 0xd2, 0xc1, 0x47, 0x01, 0x0f, 0xd4, 0x62, 0x8b, 0x90, 0x25,
  3739. 0xad, 0x52, 0x00, 0x14, 0x55, 0xb0, 0x1f, 0xcb, 0xb3, 0x2a, 0xd8, 0x91, 0x5c, 0x05, 0x21, 0x2b,
  3740. 0x45, 0x15, 0x04, 0xb4, 0xa1, 0x11, 0x07, 0x74, 0xc2, 0x5c, 0xe9, 0x0c, 0x7d, 0x6a, 0x5e, 0x47,
  3741. 0x40, 0x71, 0x88, 0x3c, 0x80, 0xcd, 0x53, 0x46, 0x85, 0x23, 0xdc, 0x53, 0xe6, 0x3a, 0xbe, 0xad,
  3742. 0x7f, 0x4f, 0x6c, 0x7d, 0xfc, 0x56, 0x11, 0x7f, 0xab, 0x08, 0xd0, 0x4e, 0xf8, 0x41, 0xa5, 0xc9,
  3743. 0x3d, 0x98, 0x49, 0xd9, 0xd1, 0xb9, 0x13, 0x26, 0xcc, 0x35, 0x64, 0xde, 0x2c, 0xa6, 0x07, 0xe7,
  3744. 0x4e, 0xa8, 0x79, 0x2d, 0x68, 0xe0, 0x29, 0xb1, 0xb5, 0x91, 0x88, 0x2e, 0x1b, 0x87, 0x0e, 0xd1,
  3745. 0x4d, 0x9f, 0x40, 0x5d, 0x03, 0x94, 0xa7, 0xd6, 0xd1, 0x33, 0x4b, 0xd3, 0xcb, 0x56, 0xed, 0x58,
  3746. 0x0d, 0x2a, 0x63, 0xd5, 0x30, 0x6d, 0x45, 0x11, 0xb9, 0x07, 0x2b, 0x19, 0x54, 0x7b, 0xec, 0x06,
  3747. 0xe2, 0x57, 0xa7, 0x97, 0xad, 0xa5, 0x14, 0x8f, 0x46, 0x5b, 0x4a, 0x39, 0xe8, 0xb6, 0x4f, 0x61,
  3748. 0x4d, 0xf3, 0x8a, 0x9e, 0xbb, 0x89, 0x95, 0x5c, 0xc7, 0xc4, 0x51, 0x6e, 0xbc, 0xac, 0x5e, 0x6d,
  3749. 0xbf, 0x8d, 0x42, 0xbd, 0xdf, 0xa0, 0x07, 0xff, 0x0f, 0x9a, 0x63, 0xe7, 0x4e, 0xbc, 0x85, 0x20,
  3750. 0x5d, 0xdb, 0xf3, 0xcc, 0x8e, 0xdb, 0x69, 0xb5, 0x99, 0x29, 0x4d, 0xbd, 0x25, 0x38, 0xda, 0xd7,
  3751. 0xce, 0xdc, 0x4d, 0xd5, 0x72, 0x7f, 0x6e, 0xea, 0xcd, 0xcf, 0x50, 0xca, 0xa4, 0x3b, 0x05, 0x2d,
  3752. 0xed, 0xc5, 0xad, 0x19, 0x94, 0x76, 0xe3, 0x3e, 0x90, 0x0c, 0x95, 0xbb, 0xf6, 0x3f, 0x85, 0x85,
  3753. 0xf6, 0x73, 0xeb, 0x76, 0x61, 0x5d, 0x83, 0x67, 0x0d, 0x7c, 0x1b, 0xd1, 0xba, 0x5f, 0x4f, 0x8a,
  3754. 0x2e, 0xce, 0x9a, 0x58, 0x44, 0xff, 0xb7, 0xa0, 0xfd, 0x28, 0xc7, 0xbe, 0xaf, 0x8d, 0x2d, 0x6f,
  3755. 0x7e, 0x40, 0x1b, 0x9b, 0xfe, 0xae, 0x36, 0xa2, 0x5b, 0xef, 0x69, 0x23, 0x76, 0x3f, 0xc5, 0x16,
  3756. 0xcd, 0xde, 0x4e, 0x7e, 0xf6, 0x54, 0xe2, 0xa4, 0xe0, 0xf8, 0x2f, 0xd3, 0xab, 0xe3, 0x0e, 0xfe,
  3757. 0xf6, 0xef, 0x7e, 0xec, 0x9e, 0xfd, 0x36, 0x90, 0xe2, 0x22, 0xbd, 0x3d, 0xee, 0x83, 0xa1, 0x5c,
  3758. 0x6e, 0x76, 0xe6, 0xe1, 0x22, 0x85, 0x7c, 0x95, 0x5d, 0x09, 0xdb, 0xf3, 0x90, 0xd3, 0x9b, 0x63,
  3759. 0x00, 0xa0, 0xbf, 0x6c, 0xe9, 0x86, 0xe6, 0xce, 0x1c, 0x12, 0xbd, 0xe5, 0xe9, 0x65, 0xab, 0xfe,
  3760. 0x3d, 0x92, 0x8f, 0x0f, 0xfb, 0x56, 0x5d, 0xeb, 0x1c, 0xbb, 0x61, 0x87, 0x42, 0xa3, 0x00, 0xcc,
  3761. 0xef, 0xdd, 0x52, 0xe1, 0xde, 0xcd, 0x5f, 0x04, 0x0b, 0x1f, 0x78, 0x11, 0x94, 0x3f, 0xf8, 0x22,
  3762. 0x30, 0x66, 0x5e, 0x04, 0x9d, 0x3f, 0x16, 0xa1, 0x9e, 0xbd, 0x3b, 0x88, 0x03, 0x5b, 0x8c, 0xdb,
  3763. 0x11, 0x15, 0x13, 0xe6, 0x52, 0x7b, 0x78, 0x21, 0x69, 0x64, 0x0b, 0xea, 0xc6, 0x22, 0x62, 0x13,
  3764. 0x9a, 0xbc, 0xd9, 0x76, 0x3e, 0xf2, 0x80, 0xd1, 0xbd, 0xb9, 0xc5, 0xf8, 0x40, 0xcb, 0xf4, 0x94,
  3765. 0x8a, 0x95, 0x8a, 0x90, 0x1f, 0xe1, 0x66, 0x3e, 0xc5, 0xa8, 0xa0, 0xbe, 0x30, 0x87, 0xfa, 0x7a,
  3766. 0xa6, 0x3e, 0xca, 0x95, 0x8f, 0x61, 0x9d, 0x71, 0xfb, 0x55, 0x4c, 0xe3, 0x19, 0xdd, 0xf2, 0x1c,
  3767. 0xba, 0x6b, 0x8c, 0x3f, 0x43, 0x7e, 0xae, 0x6a, 0xc3, 0x66, 0xa1, 0x25, 0xea, 0x2e, 0x2e, 0x68,
  3768. 0x1b, 0x73, 0x68, 0x6f, 0x64, 0x35, 0xab, 0xbb, 0x3b, 0x9f, 0xe0, 0x27, 0xd8, 0x60, 0xdc, 0x3e,
  3769. 0x77, 0x98, 0x7c, 0x57, 0x7d, 0x71, 0xbe, 0x8e, 0x3c, 0x77, 0x98, 0x9c, 0x95, 0xd6, 0x1d, 0x19,
  3770. 0x53, 0xe1, 0xcd, 0x74, 0xa4, 0x32, 0x5f, 0x47, 0x8e, 0x90, 0x9f, 0xab, 0xf6, 0x61, 0x8d, 0xf1,
  3771. 0x77, 0x6b, 0xad, 0xce, 0xa1, 0x79, 0x9d, 0xf1, 0xd9, 0x3a, 0x9f, 0xc1, 0x5a, 0x44, 0x5d, 0xc9,
  3772. 0x45, 0xd1, 0x6d, 0xb5, 0x39, 0x14, 0x57, 0x13, 0x7a, 0x26, 0xd9, 0x99, 0x00, 0xe4, 0x79, 0xb2,
  3773. 0x02, 0x0b, 0x3c, 0xc4, 0xa3, 0x53, 0xb7, 0x16, 0x78, 0xa8, 0xde, 0x80, 0x23, 0xf5, 0xb3, 0xa3,
  3774. 0x0f, 0x4e, 0xdd, 0x4a, 0x22, 0x75, 0x9e, 0xc6, 0xce, 0x4b, 0x9e, 0x3e, 0x02, 0x75, 0x80, 0xa3,
  3775. 0x2c, 0xe0, 0x22, 0x39, 0x3b, 0x3a, 0x50, 0xa3, 0x13, 0xc7, 0x8f, 0x69, 0xfa, 0xe6, 0xc1, 0xa0,
  3776. 0x67, 0xbe, 0x79, 0xdb, 0xbc, 0xf6, 0xe7, 0xdb, 0xe6, 0xb5, 0x5f, 0xa6, 0xcd, 0xd2, 0x9b, 0x69,
  3777. 0xb3, 0xf4, 0xfb, 0xb4, 0x59, 0xfa, 0x7b, 0xda, 0x2c, 0x0d, 0x2b, 0xf8, 0x7f, 0xe8, 0xf3, 0x7f,
  3778. 0x02, 0x00, 0x00, 0xff, 0xff, 0xb2, 0x21, 0x0b, 0xcd, 0x6e, 0x0d, 0x00, 0x00,
  3779. }