metrics.pb.go 157 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125
  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: github.com/containerd/cgroups/stats/v1/metrics.proto
  3. package v1
  4. import (
  5. fmt "fmt"
  6. _ "github.com/gogo/protobuf/gogoproto"
  7. proto "github.com/gogo/protobuf/proto"
  8. io "io"
  9. math "math"
  10. math_bits "math/bits"
  11. reflect "reflect"
  12. strings "strings"
  13. )
  14. // Reference imports to suppress errors if they are not otherwise used.
  15. var _ = proto.Marshal
  16. var _ = fmt.Errorf
  17. var _ = math.Inf
  18. // This is a compile-time assertion to ensure that this generated file
  19. // is compatible with the proto package it is being compiled against.
  20. // A compilation error at this line likely means your copy of the
  21. // proto package needs to be updated.
  22. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
  23. type Metrics struct {
  24. Hugetlb []*HugetlbStat `protobuf:"bytes,1,rep,name=hugetlb,proto3" json:"hugetlb,omitempty"`
  25. Pids *PidsStat `protobuf:"bytes,2,opt,name=pids,proto3" json:"pids,omitempty"`
  26. CPU *CPUStat `protobuf:"bytes,3,opt,name=cpu,proto3" json:"cpu,omitempty"`
  27. Memory *MemoryStat `protobuf:"bytes,4,opt,name=memory,proto3" json:"memory,omitempty"`
  28. Blkio *BlkIOStat `protobuf:"bytes,5,opt,name=blkio,proto3" json:"blkio,omitempty"`
  29. Rdma *RdmaStat `protobuf:"bytes,6,opt,name=rdma,proto3" json:"rdma,omitempty"`
  30. Network []*NetworkStat `protobuf:"bytes,7,rep,name=network,proto3" json:"network,omitempty"`
  31. CgroupStats *CgroupStats `protobuf:"bytes,8,opt,name=cgroup_stats,json=cgroupStats,proto3" json:"cgroup_stats,omitempty"`
  32. MemoryOomControl *MemoryOomControl `protobuf:"bytes,9,opt,name=memory_oom_control,json=memoryOomControl,proto3" json:"memory_oom_control,omitempty"`
  33. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  34. XXX_unrecognized []byte `json:"-"`
  35. XXX_sizecache int32 `json:"-"`
  36. }
  37. func (m *Metrics) Reset() { *m = Metrics{} }
  38. func (*Metrics) ProtoMessage() {}
  39. func (*Metrics) Descriptor() ([]byte, []int) {
  40. return fileDescriptor_a17b2d87c332bfaa, []int{0}
  41. }
  42. func (m *Metrics) XXX_Unmarshal(b []byte) error {
  43. return m.Unmarshal(b)
  44. }
  45. func (m *Metrics) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  46. if deterministic {
  47. return xxx_messageInfo_Metrics.Marshal(b, m, deterministic)
  48. } else {
  49. b = b[:cap(b)]
  50. n, err := m.MarshalToSizedBuffer(b)
  51. if err != nil {
  52. return nil, err
  53. }
  54. return b[:n], nil
  55. }
  56. }
  57. func (m *Metrics) XXX_Merge(src proto.Message) {
  58. xxx_messageInfo_Metrics.Merge(m, src)
  59. }
  60. func (m *Metrics) XXX_Size() int {
  61. return m.Size()
  62. }
  63. func (m *Metrics) XXX_DiscardUnknown() {
  64. xxx_messageInfo_Metrics.DiscardUnknown(m)
  65. }
  66. var xxx_messageInfo_Metrics proto.InternalMessageInfo
  67. type HugetlbStat struct {
  68. Usage uint64 `protobuf:"varint,1,opt,name=usage,proto3" json:"usage,omitempty"`
  69. Max uint64 `protobuf:"varint,2,opt,name=max,proto3" json:"max,omitempty"`
  70. Failcnt uint64 `protobuf:"varint,3,opt,name=failcnt,proto3" json:"failcnt,omitempty"`
  71. Pagesize string `protobuf:"bytes,4,opt,name=pagesize,proto3" json:"pagesize,omitempty"`
  72. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  73. XXX_unrecognized []byte `json:"-"`
  74. XXX_sizecache int32 `json:"-"`
  75. }
  76. func (m *HugetlbStat) Reset() { *m = HugetlbStat{} }
  77. func (*HugetlbStat) ProtoMessage() {}
  78. func (*HugetlbStat) Descriptor() ([]byte, []int) {
  79. return fileDescriptor_a17b2d87c332bfaa, []int{1}
  80. }
  81. func (m *HugetlbStat) XXX_Unmarshal(b []byte) error {
  82. return m.Unmarshal(b)
  83. }
  84. func (m *HugetlbStat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  85. if deterministic {
  86. return xxx_messageInfo_HugetlbStat.Marshal(b, m, deterministic)
  87. } else {
  88. b = b[:cap(b)]
  89. n, err := m.MarshalToSizedBuffer(b)
  90. if err != nil {
  91. return nil, err
  92. }
  93. return b[:n], nil
  94. }
  95. }
  96. func (m *HugetlbStat) XXX_Merge(src proto.Message) {
  97. xxx_messageInfo_HugetlbStat.Merge(m, src)
  98. }
  99. func (m *HugetlbStat) XXX_Size() int {
  100. return m.Size()
  101. }
  102. func (m *HugetlbStat) XXX_DiscardUnknown() {
  103. xxx_messageInfo_HugetlbStat.DiscardUnknown(m)
  104. }
  105. var xxx_messageInfo_HugetlbStat proto.InternalMessageInfo
  106. type PidsStat struct {
  107. Current uint64 `protobuf:"varint,1,opt,name=current,proto3" json:"current,omitempty"`
  108. Limit uint64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
  109. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  110. XXX_unrecognized []byte `json:"-"`
  111. XXX_sizecache int32 `json:"-"`
  112. }
  113. func (m *PidsStat) Reset() { *m = PidsStat{} }
  114. func (*PidsStat) ProtoMessage() {}
  115. func (*PidsStat) Descriptor() ([]byte, []int) {
  116. return fileDescriptor_a17b2d87c332bfaa, []int{2}
  117. }
  118. func (m *PidsStat) XXX_Unmarshal(b []byte) error {
  119. return m.Unmarshal(b)
  120. }
  121. func (m *PidsStat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  122. if deterministic {
  123. return xxx_messageInfo_PidsStat.Marshal(b, m, deterministic)
  124. } else {
  125. b = b[:cap(b)]
  126. n, err := m.MarshalToSizedBuffer(b)
  127. if err != nil {
  128. return nil, err
  129. }
  130. return b[:n], nil
  131. }
  132. }
  133. func (m *PidsStat) XXX_Merge(src proto.Message) {
  134. xxx_messageInfo_PidsStat.Merge(m, src)
  135. }
  136. func (m *PidsStat) XXX_Size() int {
  137. return m.Size()
  138. }
  139. func (m *PidsStat) XXX_DiscardUnknown() {
  140. xxx_messageInfo_PidsStat.DiscardUnknown(m)
  141. }
  142. var xxx_messageInfo_PidsStat proto.InternalMessageInfo
  143. type CPUStat struct {
  144. Usage *CPUUsage `protobuf:"bytes,1,opt,name=usage,proto3" json:"usage,omitempty"`
  145. Throttling *Throttle `protobuf:"bytes,2,opt,name=throttling,proto3" json:"throttling,omitempty"`
  146. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  147. XXX_unrecognized []byte `json:"-"`
  148. XXX_sizecache int32 `json:"-"`
  149. }
  150. func (m *CPUStat) Reset() { *m = CPUStat{} }
  151. func (*CPUStat) ProtoMessage() {}
  152. func (*CPUStat) Descriptor() ([]byte, []int) {
  153. return fileDescriptor_a17b2d87c332bfaa, []int{3}
  154. }
  155. func (m *CPUStat) XXX_Unmarshal(b []byte) error {
  156. return m.Unmarshal(b)
  157. }
  158. func (m *CPUStat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  159. if deterministic {
  160. return xxx_messageInfo_CPUStat.Marshal(b, m, deterministic)
  161. } else {
  162. b = b[:cap(b)]
  163. n, err := m.MarshalToSizedBuffer(b)
  164. if err != nil {
  165. return nil, err
  166. }
  167. return b[:n], nil
  168. }
  169. }
  170. func (m *CPUStat) XXX_Merge(src proto.Message) {
  171. xxx_messageInfo_CPUStat.Merge(m, src)
  172. }
  173. func (m *CPUStat) XXX_Size() int {
  174. return m.Size()
  175. }
  176. func (m *CPUStat) XXX_DiscardUnknown() {
  177. xxx_messageInfo_CPUStat.DiscardUnknown(m)
  178. }
  179. var xxx_messageInfo_CPUStat proto.InternalMessageInfo
  180. type CPUUsage struct {
  181. // values in nanoseconds
  182. Total uint64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
  183. Kernel uint64 `protobuf:"varint,2,opt,name=kernel,proto3" json:"kernel,omitempty"`
  184. User uint64 `protobuf:"varint,3,opt,name=user,proto3" json:"user,omitempty"`
  185. PerCPU []uint64 `protobuf:"varint,4,rep,packed,name=per_cpu,json=perCpu,proto3" json:"per_cpu,omitempty"`
  186. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  187. XXX_unrecognized []byte `json:"-"`
  188. XXX_sizecache int32 `json:"-"`
  189. }
  190. func (m *CPUUsage) Reset() { *m = CPUUsage{} }
  191. func (*CPUUsage) ProtoMessage() {}
  192. func (*CPUUsage) Descriptor() ([]byte, []int) {
  193. return fileDescriptor_a17b2d87c332bfaa, []int{4}
  194. }
  195. func (m *CPUUsage) XXX_Unmarshal(b []byte) error {
  196. return m.Unmarshal(b)
  197. }
  198. func (m *CPUUsage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  199. if deterministic {
  200. return xxx_messageInfo_CPUUsage.Marshal(b, m, deterministic)
  201. } else {
  202. b = b[:cap(b)]
  203. n, err := m.MarshalToSizedBuffer(b)
  204. if err != nil {
  205. return nil, err
  206. }
  207. return b[:n], nil
  208. }
  209. }
  210. func (m *CPUUsage) XXX_Merge(src proto.Message) {
  211. xxx_messageInfo_CPUUsage.Merge(m, src)
  212. }
  213. func (m *CPUUsage) XXX_Size() int {
  214. return m.Size()
  215. }
  216. func (m *CPUUsage) XXX_DiscardUnknown() {
  217. xxx_messageInfo_CPUUsage.DiscardUnknown(m)
  218. }
  219. var xxx_messageInfo_CPUUsage proto.InternalMessageInfo
  220. type Throttle struct {
  221. Periods uint64 `protobuf:"varint,1,opt,name=periods,proto3" json:"periods,omitempty"`
  222. ThrottledPeriods uint64 `protobuf:"varint,2,opt,name=throttled_periods,json=throttledPeriods,proto3" json:"throttled_periods,omitempty"`
  223. ThrottledTime uint64 `protobuf:"varint,3,opt,name=throttled_time,json=throttledTime,proto3" json:"throttled_time,omitempty"`
  224. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  225. XXX_unrecognized []byte `json:"-"`
  226. XXX_sizecache int32 `json:"-"`
  227. }
  228. func (m *Throttle) Reset() { *m = Throttle{} }
  229. func (*Throttle) ProtoMessage() {}
  230. func (*Throttle) Descriptor() ([]byte, []int) {
  231. return fileDescriptor_a17b2d87c332bfaa, []int{5}
  232. }
  233. func (m *Throttle) XXX_Unmarshal(b []byte) error {
  234. return m.Unmarshal(b)
  235. }
  236. func (m *Throttle) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  237. if deterministic {
  238. return xxx_messageInfo_Throttle.Marshal(b, m, deterministic)
  239. } else {
  240. b = b[:cap(b)]
  241. n, err := m.MarshalToSizedBuffer(b)
  242. if err != nil {
  243. return nil, err
  244. }
  245. return b[:n], nil
  246. }
  247. }
  248. func (m *Throttle) XXX_Merge(src proto.Message) {
  249. xxx_messageInfo_Throttle.Merge(m, src)
  250. }
  251. func (m *Throttle) XXX_Size() int {
  252. return m.Size()
  253. }
  254. func (m *Throttle) XXX_DiscardUnknown() {
  255. xxx_messageInfo_Throttle.DiscardUnknown(m)
  256. }
  257. var xxx_messageInfo_Throttle proto.InternalMessageInfo
  258. type MemoryStat struct {
  259. Cache uint64 `protobuf:"varint,1,opt,name=cache,proto3" json:"cache,omitempty"`
  260. RSS uint64 `protobuf:"varint,2,opt,name=rss,proto3" json:"rss,omitempty"`
  261. RSSHuge uint64 `protobuf:"varint,3,opt,name=rss_huge,json=rssHuge,proto3" json:"rss_huge,omitempty"`
  262. MappedFile uint64 `protobuf:"varint,4,opt,name=mapped_file,json=mappedFile,proto3" json:"mapped_file,omitempty"`
  263. Dirty uint64 `protobuf:"varint,5,opt,name=dirty,proto3" json:"dirty,omitempty"`
  264. Writeback uint64 `protobuf:"varint,6,opt,name=writeback,proto3" json:"writeback,omitempty"`
  265. PgPgIn uint64 `protobuf:"varint,7,opt,name=pg_pg_in,json=pgPgIn,proto3" json:"pg_pg_in,omitempty"`
  266. PgPgOut uint64 `protobuf:"varint,8,opt,name=pg_pg_out,json=pgPgOut,proto3" json:"pg_pg_out,omitempty"`
  267. PgFault uint64 `protobuf:"varint,9,opt,name=pg_fault,json=pgFault,proto3" json:"pg_fault,omitempty"`
  268. PgMajFault uint64 `protobuf:"varint,10,opt,name=pg_maj_fault,json=pgMajFault,proto3" json:"pg_maj_fault,omitempty"`
  269. InactiveAnon uint64 `protobuf:"varint,11,opt,name=inactive_anon,json=inactiveAnon,proto3" json:"inactive_anon,omitempty"`
  270. ActiveAnon uint64 `protobuf:"varint,12,opt,name=active_anon,json=activeAnon,proto3" json:"active_anon,omitempty"`
  271. InactiveFile uint64 `protobuf:"varint,13,opt,name=inactive_file,json=inactiveFile,proto3" json:"inactive_file,omitempty"`
  272. ActiveFile uint64 `protobuf:"varint,14,opt,name=active_file,json=activeFile,proto3" json:"active_file,omitempty"`
  273. Unevictable uint64 `protobuf:"varint,15,opt,name=unevictable,proto3" json:"unevictable,omitempty"`
  274. HierarchicalMemoryLimit uint64 `protobuf:"varint,16,opt,name=hierarchical_memory_limit,json=hierarchicalMemoryLimit,proto3" json:"hierarchical_memory_limit,omitempty"`
  275. HierarchicalSwapLimit uint64 `protobuf:"varint,17,opt,name=hierarchical_swap_limit,json=hierarchicalSwapLimit,proto3" json:"hierarchical_swap_limit,omitempty"`
  276. TotalCache uint64 `protobuf:"varint,18,opt,name=total_cache,json=totalCache,proto3" json:"total_cache,omitempty"`
  277. TotalRSS uint64 `protobuf:"varint,19,opt,name=total_rss,json=totalRss,proto3" json:"total_rss,omitempty"`
  278. TotalRSSHuge uint64 `protobuf:"varint,20,opt,name=total_rss_huge,json=totalRssHuge,proto3" json:"total_rss_huge,omitempty"`
  279. TotalMappedFile uint64 `protobuf:"varint,21,opt,name=total_mapped_file,json=totalMappedFile,proto3" json:"total_mapped_file,omitempty"`
  280. TotalDirty uint64 `protobuf:"varint,22,opt,name=total_dirty,json=totalDirty,proto3" json:"total_dirty,omitempty"`
  281. TotalWriteback uint64 `protobuf:"varint,23,opt,name=total_writeback,json=totalWriteback,proto3" json:"total_writeback,omitempty"`
  282. TotalPgPgIn uint64 `protobuf:"varint,24,opt,name=total_pg_pg_in,json=totalPgPgIn,proto3" json:"total_pg_pg_in,omitempty"`
  283. TotalPgPgOut uint64 `protobuf:"varint,25,opt,name=total_pg_pg_out,json=totalPgPgOut,proto3" json:"total_pg_pg_out,omitempty"`
  284. TotalPgFault uint64 `protobuf:"varint,26,opt,name=total_pg_fault,json=totalPgFault,proto3" json:"total_pg_fault,omitempty"`
  285. TotalPgMajFault uint64 `protobuf:"varint,27,opt,name=total_pg_maj_fault,json=totalPgMajFault,proto3" json:"total_pg_maj_fault,omitempty"`
  286. TotalInactiveAnon uint64 `protobuf:"varint,28,opt,name=total_inactive_anon,json=totalInactiveAnon,proto3" json:"total_inactive_anon,omitempty"`
  287. TotalActiveAnon uint64 `protobuf:"varint,29,opt,name=total_active_anon,json=totalActiveAnon,proto3" json:"total_active_anon,omitempty"`
  288. TotalInactiveFile uint64 `protobuf:"varint,30,opt,name=total_inactive_file,json=totalInactiveFile,proto3" json:"total_inactive_file,omitempty"`
  289. TotalActiveFile uint64 `protobuf:"varint,31,opt,name=total_active_file,json=totalActiveFile,proto3" json:"total_active_file,omitempty"`
  290. TotalUnevictable uint64 `protobuf:"varint,32,opt,name=total_unevictable,json=totalUnevictable,proto3" json:"total_unevictable,omitempty"`
  291. Usage *MemoryEntry `protobuf:"bytes,33,opt,name=usage,proto3" json:"usage,omitempty"`
  292. Swap *MemoryEntry `protobuf:"bytes,34,opt,name=swap,proto3" json:"swap,omitempty"`
  293. Kernel *MemoryEntry `protobuf:"bytes,35,opt,name=kernel,proto3" json:"kernel,omitempty"`
  294. KernelTCP *MemoryEntry `protobuf:"bytes,36,opt,name=kernel_tcp,json=kernelTcp,proto3" json:"kernel_tcp,omitempty"`
  295. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  296. XXX_unrecognized []byte `json:"-"`
  297. XXX_sizecache int32 `json:"-"`
  298. }
  299. func (m *MemoryStat) Reset() { *m = MemoryStat{} }
  300. func (*MemoryStat) ProtoMessage() {}
  301. func (*MemoryStat) Descriptor() ([]byte, []int) {
  302. return fileDescriptor_a17b2d87c332bfaa, []int{6}
  303. }
  304. func (m *MemoryStat) XXX_Unmarshal(b []byte) error {
  305. return m.Unmarshal(b)
  306. }
  307. func (m *MemoryStat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  308. if deterministic {
  309. return xxx_messageInfo_MemoryStat.Marshal(b, m, deterministic)
  310. } else {
  311. b = b[:cap(b)]
  312. n, err := m.MarshalToSizedBuffer(b)
  313. if err != nil {
  314. return nil, err
  315. }
  316. return b[:n], nil
  317. }
  318. }
  319. func (m *MemoryStat) XXX_Merge(src proto.Message) {
  320. xxx_messageInfo_MemoryStat.Merge(m, src)
  321. }
  322. func (m *MemoryStat) XXX_Size() int {
  323. return m.Size()
  324. }
  325. func (m *MemoryStat) XXX_DiscardUnknown() {
  326. xxx_messageInfo_MemoryStat.DiscardUnknown(m)
  327. }
  328. var xxx_messageInfo_MemoryStat proto.InternalMessageInfo
  329. type MemoryEntry struct {
  330. Limit uint64 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"`
  331. Usage uint64 `protobuf:"varint,2,opt,name=usage,proto3" json:"usage,omitempty"`
  332. Max uint64 `protobuf:"varint,3,opt,name=max,proto3" json:"max,omitempty"`
  333. Failcnt uint64 `protobuf:"varint,4,opt,name=failcnt,proto3" json:"failcnt,omitempty"`
  334. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  335. XXX_unrecognized []byte `json:"-"`
  336. XXX_sizecache int32 `json:"-"`
  337. }
  338. func (m *MemoryEntry) Reset() { *m = MemoryEntry{} }
  339. func (*MemoryEntry) ProtoMessage() {}
  340. func (*MemoryEntry) Descriptor() ([]byte, []int) {
  341. return fileDescriptor_a17b2d87c332bfaa, []int{7}
  342. }
  343. func (m *MemoryEntry) XXX_Unmarshal(b []byte) error {
  344. return m.Unmarshal(b)
  345. }
  346. func (m *MemoryEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  347. if deterministic {
  348. return xxx_messageInfo_MemoryEntry.Marshal(b, m, deterministic)
  349. } else {
  350. b = b[:cap(b)]
  351. n, err := m.MarshalToSizedBuffer(b)
  352. if err != nil {
  353. return nil, err
  354. }
  355. return b[:n], nil
  356. }
  357. }
  358. func (m *MemoryEntry) XXX_Merge(src proto.Message) {
  359. xxx_messageInfo_MemoryEntry.Merge(m, src)
  360. }
  361. func (m *MemoryEntry) XXX_Size() int {
  362. return m.Size()
  363. }
  364. func (m *MemoryEntry) XXX_DiscardUnknown() {
  365. xxx_messageInfo_MemoryEntry.DiscardUnknown(m)
  366. }
  367. var xxx_messageInfo_MemoryEntry proto.InternalMessageInfo
  368. type MemoryOomControl struct {
  369. OomKillDisable uint64 `protobuf:"varint,1,opt,name=oom_kill_disable,json=oomKillDisable,proto3" json:"oom_kill_disable,omitempty"`
  370. UnderOom uint64 `protobuf:"varint,2,opt,name=under_oom,json=underOom,proto3" json:"under_oom,omitempty"`
  371. OomKill uint64 `protobuf:"varint,3,opt,name=oom_kill,json=oomKill,proto3" json:"oom_kill,omitempty"`
  372. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  373. XXX_unrecognized []byte `json:"-"`
  374. XXX_sizecache int32 `json:"-"`
  375. }
  376. func (m *MemoryOomControl) Reset() { *m = MemoryOomControl{} }
  377. func (*MemoryOomControl) ProtoMessage() {}
  378. func (*MemoryOomControl) Descriptor() ([]byte, []int) {
  379. return fileDescriptor_a17b2d87c332bfaa, []int{8}
  380. }
  381. func (m *MemoryOomControl) XXX_Unmarshal(b []byte) error {
  382. return m.Unmarshal(b)
  383. }
  384. func (m *MemoryOomControl) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  385. if deterministic {
  386. return xxx_messageInfo_MemoryOomControl.Marshal(b, m, deterministic)
  387. } else {
  388. b = b[:cap(b)]
  389. n, err := m.MarshalToSizedBuffer(b)
  390. if err != nil {
  391. return nil, err
  392. }
  393. return b[:n], nil
  394. }
  395. }
  396. func (m *MemoryOomControl) XXX_Merge(src proto.Message) {
  397. xxx_messageInfo_MemoryOomControl.Merge(m, src)
  398. }
  399. func (m *MemoryOomControl) XXX_Size() int {
  400. return m.Size()
  401. }
  402. func (m *MemoryOomControl) XXX_DiscardUnknown() {
  403. xxx_messageInfo_MemoryOomControl.DiscardUnknown(m)
  404. }
  405. var xxx_messageInfo_MemoryOomControl proto.InternalMessageInfo
  406. type BlkIOStat struct {
  407. IoServiceBytesRecursive []*BlkIOEntry `protobuf:"bytes,1,rep,name=io_service_bytes_recursive,json=ioServiceBytesRecursive,proto3" json:"io_service_bytes_recursive,omitempty"`
  408. IoServicedRecursive []*BlkIOEntry `protobuf:"bytes,2,rep,name=io_serviced_recursive,json=ioServicedRecursive,proto3" json:"io_serviced_recursive,omitempty"`
  409. IoQueuedRecursive []*BlkIOEntry `protobuf:"bytes,3,rep,name=io_queued_recursive,json=ioQueuedRecursive,proto3" json:"io_queued_recursive,omitempty"`
  410. IoServiceTimeRecursive []*BlkIOEntry `protobuf:"bytes,4,rep,name=io_service_time_recursive,json=ioServiceTimeRecursive,proto3" json:"io_service_time_recursive,omitempty"`
  411. IoWaitTimeRecursive []*BlkIOEntry `protobuf:"bytes,5,rep,name=io_wait_time_recursive,json=ioWaitTimeRecursive,proto3" json:"io_wait_time_recursive,omitempty"`
  412. IoMergedRecursive []*BlkIOEntry `protobuf:"bytes,6,rep,name=io_merged_recursive,json=ioMergedRecursive,proto3" json:"io_merged_recursive,omitempty"`
  413. IoTimeRecursive []*BlkIOEntry `protobuf:"bytes,7,rep,name=io_time_recursive,json=ioTimeRecursive,proto3" json:"io_time_recursive,omitempty"`
  414. SectorsRecursive []*BlkIOEntry `protobuf:"bytes,8,rep,name=sectors_recursive,json=sectorsRecursive,proto3" json:"sectors_recursive,omitempty"`
  415. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  416. XXX_unrecognized []byte `json:"-"`
  417. XXX_sizecache int32 `json:"-"`
  418. }
  419. func (m *BlkIOStat) Reset() { *m = BlkIOStat{} }
  420. func (*BlkIOStat) ProtoMessage() {}
  421. func (*BlkIOStat) Descriptor() ([]byte, []int) {
  422. return fileDescriptor_a17b2d87c332bfaa, []int{9}
  423. }
  424. func (m *BlkIOStat) XXX_Unmarshal(b []byte) error {
  425. return m.Unmarshal(b)
  426. }
  427. func (m *BlkIOStat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  428. if deterministic {
  429. return xxx_messageInfo_BlkIOStat.Marshal(b, m, deterministic)
  430. } else {
  431. b = b[:cap(b)]
  432. n, err := m.MarshalToSizedBuffer(b)
  433. if err != nil {
  434. return nil, err
  435. }
  436. return b[:n], nil
  437. }
  438. }
  439. func (m *BlkIOStat) XXX_Merge(src proto.Message) {
  440. xxx_messageInfo_BlkIOStat.Merge(m, src)
  441. }
  442. func (m *BlkIOStat) XXX_Size() int {
  443. return m.Size()
  444. }
  445. func (m *BlkIOStat) XXX_DiscardUnknown() {
  446. xxx_messageInfo_BlkIOStat.DiscardUnknown(m)
  447. }
  448. var xxx_messageInfo_BlkIOStat proto.InternalMessageInfo
  449. type BlkIOEntry struct {
  450. Op string `protobuf:"bytes,1,opt,name=op,proto3" json:"op,omitempty"`
  451. Device string `protobuf:"bytes,2,opt,name=device,proto3" json:"device,omitempty"`
  452. Major uint64 `protobuf:"varint,3,opt,name=major,proto3" json:"major,omitempty"`
  453. Minor uint64 `protobuf:"varint,4,opt,name=minor,proto3" json:"minor,omitempty"`
  454. Value uint64 `protobuf:"varint,5,opt,name=value,proto3" json:"value,omitempty"`
  455. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  456. XXX_unrecognized []byte `json:"-"`
  457. XXX_sizecache int32 `json:"-"`
  458. }
  459. func (m *BlkIOEntry) Reset() { *m = BlkIOEntry{} }
  460. func (*BlkIOEntry) ProtoMessage() {}
  461. func (*BlkIOEntry) Descriptor() ([]byte, []int) {
  462. return fileDescriptor_a17b2d87c332bfaa, []int{10}
  463. }
  464. func (m *BlkIOEntry) XXX_Unmarshal(b []byte) error {
  465. return m.Unmarshal(b)
  466. }
  467. func (m *BlkIOEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  468. if deterministic {
  469. return xxx_messageInfo_BlkIOEntry.Marshal(b, m, deterministic)
  470. } else {
  471. b = b[:cap(b)]
  472. n, err := m.MarshalToSizedBuffer(b)
  473. if err != nil {
  474. return nil, err
  475. }
  476. return b[:n], nil
  477. }
  478. }
  479. func (m *BlkIOEntry) XXX_Merge(src proto.Message) {
  480. xxx_messageInfo_BlkIOEntry.Merge(m, src)
  481. }
  482. func (m *BlkIOEntry) XXX_Size() int {
  483. return m.Size()
  484. }
  485. func (m *BlkIOEntry) XXX_DiscardUnknown() {
  486. xxx_messageInfo_BlkIOEntry.DiscardUnknown(m)
  487. }
  488. var xxx_messageInfo_BlkIOEntry proto.InternalMessageInfo
  489. type RdmaStat struct {
  490. Current []*RdmaEntry `protobuf:"bytes,1,rep,name=current,proto3" json:"current,omitempty"`
  491. Limit []*RdmaEntry `protobuf:"bytes,2,rep,name=limit,proto3" json:"limit,omitempty"`
  492. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  493. XXX_unrecognized []byte `json:"-"`
  494. XXX_sizecache int32 `json:"-"`
  495. }
  496. func (m *RdmaStat) Reset() { *m = RdmaStat{} }
  497. func (*RdmaStat) ProtoMessage() {}
  498. func (*RdmaStat) Descriptor() ([]byte, []int) {
  499. return fileDescriptor_a17b2d87c332bfaa, []int{11}
  500. }
  501. func (m *RdmaStat) XXX_Unmarshal(b []byte) error {
  502. return m.Unmarshal(b)
  503. }
  504. func (m *RdmaStat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  505. if deterministic {
  506. return xxx_messageInfo_RdmaStat.Marshal(b, m, deterministic)
  507. } else {
  508. b = b[:cap(b)]
  509. n, err := m.MarshalToSizedBuffer(b)
  510. if err != nil {
  511. return nil, err
  512. }
  513. return b[:n], nil
  514. }
  515. }
  516. func (m *RdmaStat) XXX_Merge(src proto.Message) {
  517. xxx_messageInfo_RdmaStat.Merge(m, src)
  518. }
  519. func (m *RdmaStat) XXX_Size() int {
  520. return m.Size()
  521. }
  522. func (m *RdmaStat) XXX_DiscardUnknown() {
  523. xxx_messageInfo_RdmaStat.DiscardUnknown(m)
  524. }
  525. var xxx_messageInfo_RdmaStat proto.InternalMessageInfo
  526. type RdmaEntry struct {
  527. Device string `protobuf:"bytes,1,opt,name=device,proto3" json:"device,omitempty"`
  528. HcaHandles uint32 `protobuf:"varint,2,opt,name=hca_handles,json=hcaHandles,proto3" json:"hca_handles,omitempty"`
  529. HcaObjects uint32 `protobuf:"varint,3,opt,name=hca_objects,json=hcaObjects,proto3" json:"hca_objects,omitempty"`
  530. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  531. XXX_unrecognized []byte `json:"-"`
  532. XXX_sizecache int32 `json:"-"`
  533. }
  534. func (m *RdmaEntry) Reset() { *m = RdmaEntry{} }
  535. func (*RdmaEntry) ProtoMessage() {}
  536. func (*RdmaEntry) Descriptor() ([]byte, []int) {
  537. return fileDescriptor_a17b2d87c332bfaa, []int{12}
  538. }
  539. func (m *RdmaEntry) XXX_Unmarshal(b []byte) error {
  540. return m.Unmarshal(b)
  541. }
  542. func (m *RdmaEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  543. if deterministic {
  544. return xxx_messageInfo_RdmaEntry.Marshal(b, m, deterministic)
  545. } else {
  546. b = b[:cap(b)]
  547. n, err := m.MarshalToSizedBuffer(b)
  548. if err != nil {
  549. return nil, err
  550. }
  551. return b[:n], nil
  552. }
  553. }
  554. func (m *RdmaEntry) XXX_Merge(src proto.Message) {
  555. xxx_messageInfo_RdmaEntry.Merge(m, src)
  556. }
  557. func (m *RdmaEntry) XXX_Size() int {
  558. return m.Size()
  559. }
  560. func (m *RdmaEntry) XXX_DiscardUnknown() {
  561. xxx_messageInfo_RdmaEntry.DiscardUnknown(m)
  562. }
  563. var xxx_messageInfo_RdmaEntry proto.InternalMessageInfo
  564. type NetworkStat struct {
  565. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  566. RxBytes uint64 `protobuf:"varint,2,opt,name=rx_bytes,json=rxBytes,proto3" json:"rx_bytes,omitempty"`
  567. RxPackets uint64 `protobuf:"varint,3,opt,name=rx_packets,json=rxPackets,proto3" json:"rx_packets,omitempty"`
  568. RxErrors uint64 `protobuf:"varint,4,opt,name=rx_errors,json=rxErrors,proto3" json:"rx_errors,omitempty"`
  569. RxDropped uint64 `protobuf:"varint,5,opt,name=rx_dropped,json=rxDropped,proto3" json:"rx_dropped,omitempty"`
  570. TxBytes uint64 `protobuf:"varint,6,opt,name=tx_bytes,json=txBytes,proto3" json:"tx_bytes,omitempty"`
  571. TxPackets uint64 `protobuf:"varint,7,opt,name=tx_packets,json=txPackets,proto3" json:"tx_packets,omitempty"`
  572. TxErrors uint64 `protobuf:"varint,8,opt,name=tx_errors,json=txErrors,proto3" json:"tx_errors,omitempty"`
  573. TxDropped uint64 `protobuf:"varint,9,opt,name=tx_dropped,json=txDropped,proto3" json:"tx_dropped,omitempty"`
  574. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  575. XXX_unrecognized []byte `json:"-"`
  576. XXX_sizecache int32 `json:"-"`
  577. }
  578. func (m *NetworkStat) Reset() { *m = NetworkStat{} }
  579. func (*NetworkStat) ProtoMessage() {}
  580. func (*NetworkStat) Descriptor() ([]byte, []int) {
  581. return fileDescriptor_a17b2d87c332bfaa, []int{13}
  582. }
  583. func (m *NetworkStat) XXX_Unmarshal(b []byte) error {
  584. return m.Unmarshal(b)
  585. }
  586. func (m *NetworkStat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  587. if deterministic {
  588. return xxx_messageInfo_NetworkStat.Marshal(b, m, deterministic)
  589. } else {
  590. b = b[:cap(b)]
  591. n, err := m.MarshalToSizedBuffer(b)
  592. if err != nil {
  593. return nil, err
  594. }
  595. return b[:n], nil
  596. }
  597. }
  598. func (m *NetworkStat) XXX_Merge(src proto.Message) {
  599. xxx_messageInfo_NetworkStat.Merge(m, src)
  600. }
  601. func (m *NetworkStat) XXX_Size() int {
  602. return m.Size()
  603. }
  604. func (m *NetworkStat) XXX_DiscardUnknown() {
  605. xxx_messageInfo_NetworkStat.DiscardUnknown(m)
  606. }
  607. var xxx_messageInfo_NetworkStat proto.InternalMessageInfo
  608. // CgroupStats exports per-cgroup statistics.
  609. type CgroupStats struct {
  610. // number of tasks sleeping
  611. NrSleeping uint64 `protobuf:"varint,1,opt,name=nr_sleeping,json=nrSleeping,proto3" json:"nr_sleeping,omitempty"`
  612. // number of tasks running
  613. NrRunning uint64 `protobuf:"varint,2,opt,name=nr_running,json=nrRunning,proto3" json:"nr_running,omitempty"`
  614. // number of tasks in stopped state
  615. NrStopped uint64 `protobuf:"varint,3,opt,name=nr_stopped,json=nrStopped,proto3" json:"nr_stopped,omitempty"`
  616. // number of tasks in uninterruptible state
  617. NrUninterruptible uint64 `protobuf:"varint,4,opt,name=nr_uninterruptible,json=nrUninterruptible,proto3" json:"nr_uninterruptible,omitempty"`
  618. // number of tasks waiting on IO
  619. NrIoWait uint64 `protobuf:"varint,5,opt,name=nr_io_wait,json=nrIoWait,proto3" json:"nr_io_wait,omitempty"`
  620. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  621. XXX_unrecognized []byte `json:"-"`
  622. XXX_sizecache int32 `json:"-"`
  623. }
  624. func (m *CgroupStats) Reset() { *m = CgroupStats{} }
  625. func (*CgroupStats) ProtoMessage() {}
  626. func (*CgroupStats) Descriptor() ([]byte, []int) {
  627. return fileDescriptor_a17b2d87c332bfaa, []int{14}
  628. }
  629. func (m *CgroupStats) XXX_Unmarshal(b []byte) error {
  630. return m.Unmarshal(b)
  631. }
  632. func (m *CgroupStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  633. if deterministic {
  634. return xxx_messageInfo_CgroupStats.Marshal(b, m, deterministic)
  635. } else {
  636. b = b[:cap(b)]
  637. n, err := m.MarshalToSizedBuffer(b)
  638. if err != nil {
  639. return nil, err
  640. }
  641. return b[:n], nil
  642. }
  643. }
  644. func (m *CgroupStats) XXX_Merge(src proto.Message) {
  645. xxx_messageInfo_CgroupStats.Merge(m, src)
  646. }
  647. func (m *CgroupStats) XXX_Size() int {
  648. return m.Size()
  649. }
  650. func (m *CgroupStats) XXX_DiscardUnknown() {
  651. xxx_messageInfo_CgroupStats.DiscardUnknown(m)
  652. }
  653. var xxx_messageInfo_CgroupStats proto.InternalMessageInfo
  654. func init() {
  655. proto.RegisterType((*Metrics)(nil), "io.containerd.cgroups.v1.Metrics")
  656. proto.RegisterType((*HugetlbStat)(nil), "io.containerd.cgroups.v1.HugetlbStat")
  657. proto.RegisterType((*PidsStat)(nil), "io.containerd.cgroups.v1.PidsStat")
  658. proto.RegisterType((*CPUStat)(nil), "io.containerd.cgroups.v1.CPUStat")
  659. proto.RegisterType((*CPUUsage)(nil), "io.containerd.cgroups.v1.CPUUsage")
  660. proto.RegisterType((*Throttle)(nil), "io.containerd.cgroups.v1.Throttle")
  661. proto.RegisterType((*MemoryStat)(nil), "io.containerd.cgroups.v1.MemoryStat")
  662. proto.RegisterType((*MemoryEntry)(nil), "io.containerd.cgroups.v1.MemoryEntry")
  663. proto.RegisterType((*MemoryOomControl)(nil), "io.containerd.cgroups.v1.MemoryOomControl")
  664. proto.RegisterType((*BlkIOStat)(nil), "io.containerd.cgroups.v1.BlkIOStat")
  665. proto.RegisterType((*BlkIOEntry)(nil), "io.containerd.cgroups.v1.BlkIOEntry")
  666. proto.RegisterType((*RdmaStat)(nil), "io.containerd.cgroups.v1.RdmaStat")
  667. proto.RegisterType((*RdmaEntry)(nil), "io.containerd.cgroups.v1.RdmaEntry")
  668. proto.RegisterType((*NetworkStat)(nil), "io.containerd.cgroups.v1.NetworkStat")
  669. proto.RegisterType((*CgroupStats)(nil), "io.containerd.cgroups.v1.CgroupStats")
  670. }
  671. func init() {
  672. proto.RegisterFile("github.com/containerd/cgroups/stats/v1/metrics.proto", fileDescriptor_a17b2d87c332bfaa)
  673. }
  674. var fileDescriptor_a17b2d87c332bfaa = []byte{
  675. // 1749 bytes of a gzipped FileDescriptorProto
  676. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x58, 0xcd, 0x72, 0xe3, 0xc6,
  677. 0x11, 0x36, 0x45, 0x48, 0x24, 0x9a, 0x92, 0x56, 0x9a, 0xfd, 0x83, 0xe4, 0xb5, 0x28, 0x53, 0xbb,
  678. 0x89, 0xe2, 0xad, 0x48, 0x65, 0x27, 0xb5, 0x95, 0x75, 0xec, 0x4a, 0x59, 0x5a, 0xbb, 0x76, 0xcb,
  679. 0x51, 0x44, 0x83, 0x52, 0xd9, 0x39, 0xa1, 0x40, 0x70, 0x16, 0x9c, 0x15, 0x80, 0x81, 0x07, 0x03,
  680. 0x89, 0xca, 0x29, 0x87, 0x54, 0xe5, 0x94, 0x07, 0xca, 0x1b, 0xf8, 0x98, 0x4b, 0x52, 0xc9, 0x45,
  681. 0x15, 0xf3, 0x49, 0x52, 0x33, 0x3d, 0xf8, 0xa1, 0xbc, 0x5a, 0x85, 0x37, 0x76, 0xcf, 0xd7, 0x5f,
  682. 0xf7, 0x34, 0xbe, 0x19, 0x34, 0x08, 0xbf, 0x0e, 0x99, 0x1c, 0xe7, 0xc3, 0xbd, 0x80, 0xc7, 0xfb,
  683. 0x01, 0x4f, 0xa4, 0xcf, 0x12, 0x2a, 0x46, 0xfb, 0x41, 0x28, 0x78, 0x9e, 0x66, 0xfb, 0x99, 0xf4,
  684. 0x65, 0xb6, 0x7f, 0xfe, 0xf1, 0x7e, 0x4c, 0xa5, 0x60, 0x41, 0xb6, 0x97, 0x0a, 0x2e, 0x39, 0x71,
  685. 0x18, 0xdf, 0xab, 0xd0, 0x7b, 0x06, 0xbd, 0x77, 0xfe, 0xf1, 0xe6, 0xbd, 0x90, 0x87, 0x5c, 0x83,
  686. 0xf6, 0xd5, 0x2f, 0xc4, 0xf7, 0xfe, 0x65, 0x41, 0xeb, 0x08, 0x19, 0xc8, 0xef, 0xa0, 0x35, 0xce,
  687. 0x43, 0x2a, 0xa3, 0xa1, 0xd3, 0xd8, 0x6e, 0xee, 0x76, 0x3e, 0x79, 0xb2, 0x77, 0x13, 0xdb, 0xde,
  688. 0x4b, 0x04, 0x0e, 0xa4, 0x2f, 0xdd, 0x22, 0x8a, 0x3c, 0x03, 0x2b, 0x65, 0xa3, 0xcc, 0x59, 0xd8,
  689. 0x6e, 0xec, 0x76, 0x3e, 0xe9, 0xdd, 0x1c, 0xdd, 0x67, 0xa3, 0x4c, 0x87, 0x6a, 0x3c, 0xf9, 0x0c,
  690. 0x9a, 0x41, 0x9a, 0x3b, 0x4d, 0x1d, 0xf6, 0xe1, 0xcd, 0x61, 0x87, 0xfd, 0x53, 0x15, 0x75, 0xd0,
  691. 0x9a, 0x5e, 0x75, 0x9b, 0x87, 0xfd, 0x53, 0x57, 0x85, 0x91, 0xcf, 0x60, 0x29, 0xa6, 0x31, 0x17,
  692. 0x97, 0x8e, 0xa5, 0x09, 0x1e, 0xdf, 0x4c, 0x70, 0xa4, 0x71, 0x3a, 0xb3, 0x89, 0x21, 0xcf, 0x61,
  693. 0x71, 0x18, 0x9d, 0x31, 0xee, 0x2c, 0xea, 0xe0, 0x9d, 0x9b, 0x83, 0x0f, 0xa2, 0xb3, 0x57, 0xc7,
  694. 0x3a, 0x16, 0x23, 0xd4, 0x76, 0xc5, 0x28, 0xf6, 0x9d, 0xa5, 0xdb, 0xb6, 0xeb, 0x8e, 0x62, 0x1f,
  695. 0xb7, 0xab, 0xf0, 0xaa, 0xcf, 0x09, 0x95, 0x17, 0x5c, 0x9c, 0x39, 0xad, 0xdb, 0xfa, 0xfc, 0x07,
  696. 0x04, 0x62, 0x9f, 0x4d, 0x14, 0x79, 0x09, 0xcb, 0x08, 0xf1, 0xb4, 0x0a, 0x9c, 0xb6, 0x2e, 0xe0,
  697. 0x1d, 0x2c, 0x87, 0xfa, 0xa7, 0x22, 0xc9, 0xdc, 0x4e, 0x50, 0x19, 0xe4, 0x3b, 0x20, 0xd8, 0x07,
  698. 0x8f, 0xf3, 0xd8, 0x53, 0xc1, 0x82, 0x47, 0x8e, 0xad, 0xf9, 0x3e, 0xba, 0xad, 0x8f, 0xc7, 0x3c,
  699. 0x3e, 0xc4, 0x08, 0x77, 0x2d, 0xbe, 0xe6, 0xe9, 0x9d, 0x41, 0xa7, 0xa6, 0x11, 0x72, 0x0f, 0x16,
  700. 0xf3, 0xcc, 0x0f, 0xa9, 0xd3, 0xd8, 0x6e, 0xec, 0x5a, 0x2e, 0x1a, 0x64, 0x0d, 0x9a, 0xb1, 0x3f,
  701. 0xd1, 0x7a, 0xb1, 0x5c, 0xf5, 0x93, 0x38, 0xd0, 0x7a, 0xed, 0xb3, 0x28, 0x48, 0xa4, 0x96, 0x83,
  702. 0xe5, 0x16, 0x26, 0xd9, 0x84, 0x76, 0xea, 0x87, 0x34, 0x63, 0x7f, 0xa2, 0xfa, 0x41, 0xdb, 0x6e,
  703. 0x69, 0xf7, 0x3e, 0x85, 0x76, 0x21, 0x29, 0xc5, 0x10, 0xe4, 0x42, 0xd0, 0x44, 0x9a, 0x5c, 0x85,
  704. 0xa9, 0x6a, 0x88, 0x58, 0xcc, 0xa4, 0xc9, 0x87, 0x46, 0xef, 0xaf, 0x0d, 0x68, 0x19, 0x61, 0x91,
  705. 0xdf, 0xd4, 0xab, 0x7c, 0xe7, 0x23, 0x3d, 0xec, 0x9f, 0x9e, 0x2a, 0x64, 0xb1, 0x93, 0x03, 0x00,
  706. 0x39, 0x16, 0x5c, 0xca, 0x88, 0x25, 0xe1, 0xed, 0x07, 0xe0, 0x04, 0xb1, 0xd4, 0xad, 0x45, 0xf5,
  707. 0xbe, 0x87, 0x76, 0x41, 0xab, 0x6a, 0x95, 0x5c, 0xfa, 0x51, 0xd1, 0x2f, 0x6d, 0x90, 0x07, 0xb0,
  708. 0x74, 0x46, 0x45, 0x42, 0x23, 0xb3, 0x05, 0x63, 0x11, 0x02, 0x56, 0x9e, 0x51, 0x61, 0x5a, 0xa6,
  709. 0x7f, 0x93, 0x1d, 0x68, 0xa5, 0x54, 0x78, 0xea, 0x60, 0x59, 0xdb, 0xcd, 0x5d, 0xeb, 0x00, 0xa6,
  710. 0x57, 0xdd, 0xa5, 0x3e, 0x15, 0xea, 0xe0, 0x2c, 0xa5, 0x54, 0x1c, 0xa6, 0x79, 0x6f, 0x02, 0xed,
  711. 0xa2, 0x14, 0xd5, 0xb8, 0x94, 0x0a, 0xc6, 0x47, 0x59, 0xd1, 0x38, 0x63, 0x92, 0xa7, 0xb0, 0x6e,
  712. 0xca, 0xa4, 0x23, 0xaf, 0xc0, 0x60, 0x05, 0x6b, 0xe5, 0x42, 0xdf, 0x80, 0x9f, 0xc0, 0x6a, 0x05,
  713. 0x96, 0x2c, 0xa6, 0xa6, 0xaa, 0x95, 0xd2, 0x7b, 0xc2, 0x62, 0xda, 0xfb, 0x4f, 0x07, 0xa0, 0x3a,
  714. 0x8e, 0x6a, 0xbf, 0x81, 0x1f, 0x8c, 0x4b, 0x7d, 0x68, 0x83, 0x6c, 0x40, 0x53, 0x64, 0x26, 0x15,
  715. 0x9e, 0x7a, 0x77, 0x30, 0x70, 0x95, 0x8f, 0xfc, 0x0c, 0xda, 0x22, 0xcb, 0x3c, 0x75, 0xf5, 0x60,
  716. 0x82, 0x83, 0xce, 0xf4, 0xaa, 0xdb, 0x72, 0x07, 0x03, 0x25, 0x3b, 0xb7, 0x25, 0xb2, 0x4c, 0xfd,
  717. 0x20, 0x5d, 0xe8, 0xc4, 0x7e, 0x9a, 0xd2, 0x91, 0xf7, 0x9a, 0x45, 0xa8, 0x1c, 0xcb, 0x05, 0x74,
  718. 0x7d, 0xc5, 0x22, 0xdd, 0xe9, 0x11, 0x13, 0xf2, 0x52, 0x5f, 0x00, 0x96, 0x8b, 0x06, 0x79, 0x04,
  719. 0xf6, 0x85, 0x60, 0x92, 0x0e, 0xfd, 0xe0, 0x4c, 0x1f, 0x70, 0xcb, 0xad, 0x1c, 0xc4, 0x81, 0x76,
  720. 0x1a, 0x7a, 0x69, 0xe8, 0xb1, 0xc4, 0x69, 0xe1, 0x93, 0x48, 0xc3, 0x7e, 0xf8, 0x2a, 0x21, 0x9b,
  721. 0x60, 0xe3, 0x0a, 0xcf, 0xa5, 0x3e, 0x97, 0xaa, 0x8d, 0x61, 0x3f, 0x3c, 0xce, 0x25, 0xd9, 0xd0,
  722. 0x51, 0xaf, 0xfd, 0x3c, 0x92, 0xfa, 0x88, 0xe9, 0xa5, 0xaf, 0x94, 0x49, 0xb6, 0x61, 0x39, 0x0d,
  723. 0xbd, 0xd8, 0x7f, 0x63, 0x96, 0x01, 0xcb, 0x4c, 0xc3, 0x23, 0xff, 0x0d, 0x22, 0x76, 0x60, 0x85,
  724. 0x25, 0x7e, 0x20, 0xd9, 0x39, 0xf5, 0xfc, 0x84, 0x27, 0x4e, 0x47, 0x43, 0x96, 0x0b, 0xe7, 0x17,
  725. 0x09, 0x4f, 0xd4, 0x66, 0xeb, 0x90, 0x65, 0x64, 0xa9, 0x01, 0xea, 0x2c, 0xba, 0x1f, 0x2b, 0xb3,
  726. 0x2c, 0xba, 0x23, 0x15, 0x8b, 0x86, 0xac, 0xd6, 0x59, 0x34, 0x60, 0x1b, 0x3a, 0x79, 0x42, 0xcf,
  727. 0x59, 0x20, 0xfd, 0x61, 0x44, 0x9d, 0x3b, 0x1a, 0x50, 0x77, 0x91, 0x4f, 0x61, 0x63, 0xcc, 0xa8,
  728. 0xf0, 0x45, 0x30, 0x66, 0x81, 0x1f, 0x79, 0xe6, 0x92, 0xc1, 0xe3, 0xb7, 0xa6, 0xf1, 0x0f, 0xeb,
  729. 0x00, 0x54, 0xc2, 0xef, 0xd5, 0x32, 0x79, 0x06, 0x33, 0x4b, 0x5e, 0x76, 0xe1, 0xa7, 0x26, 0x72,
  730. 0x5d, 0x47, 0xde, 0xaf, 0x2f, 0x0f, 0x2e, 0xfc, 0x14, 0xe3, 0xba, 0xd0, 0xd1, 0xa7, 0xc4, 0x43,
  731. 0x21, 0x11, 0x2c, 0x5b, 0xbb, 0x0e, 0xb5, 0x9a, 0x7e, 0x01, 0x36, 0x02, 0x94, 0xa6, 0xee, 0x6a,
  732. 0xcd, 0x2c, 0x4f, 0xaf, 0xba, 0xed, 0x13, 0xe5, 0x54, 0xc2, 0x6a, 0xeb, 0x65, 0x37, 0xcb, 0xc8,
  733. 0x33, 0x58, 0x2d, 0xa1, 0xa8, 0xb1, 0x7b, 0x1a, 0xbf, 0x36, 0xbd, 0xea, 0x2e, 0x17, 0x78, 0x2d,
  734. 0xb4, 0xe5, 0x22, 0x46, 0xab, 0xed, 0x23, 0x58, 0xc7, 0xb8, 0xba, 0xe6, 0xee, 0xeb, 0x4a, 0xee,
  735. 0xe8, 0x85, 0xa3, 0x4a, 0x78, 0x65, 0xbd, 0x28, 0xbf, 0x07, 0xb5, 0x7a, 0x5f, 0x68, 0x0d, 0xfe,
  736. 0x1c, 0x30, 0xc6, 0xab, 0x94, 0xf8, 0x50, 0x83, 0xb0, 0xb6, 0x6f, 0x4b, 0x39, 0xee, 0x14, 0xd5,
  737. 0x96, 0xa2, 0x74, 0xf0, 0x91, 0x68, 0x6f, 0x1f, 0x95, 0xf9, 0xa4, 0x60, 0xab, 0xf4, 0xb9, 0x81,
  738. 0x0f, 0xbf, 0x44, 0x29, 0x91, 0x3e, 0xae, 0x71, 0xa1, 0x16, 0x37, 0x67, 0x50, 0xa8, 0xc6, 0xa7,
  739. 0x40, 0x4a, 0x54, 0xa5, 0xda, 0xf7, 0x6b, 0x1b, 0xed, 0x57, 0xd2, 0xdd, 0x83, 0xbb, 0x08, 0x9e,
  740. 0x15, 0xf0, 0x23, 0x8d, 0xc6, 0x7e, 0xbd, 0xaa, 0xab, 0xb8, 0x6c, 0x62, 0x1d, 0xfd, 0x41, 0x8d,
  741. 0xfb, 0x8b, 0x0a, 0xfb, 0x53, 0x6e, 0xdd, 0xf2, 0xad, 0xb7, 0x70, 0xeb, 0xa6, 0x5f, 0xe7, 0xd6,
  742. 0xe8, 0xee, 0x4f, 0xb8, 0x35, 0xf6, 0x69, 0x81, 0xad, 0x8b, 0x7d, 0xdb, 0x5c, 0x7b, 0x6a, 0xe1,
  743. 0xb4, 0xa6, 0xf8, 0xdf, 0x16, 0xaf, 0x8e, 0x0f, 0x6f, 0x7b, 0x19, 0xa3, 0xd6, 0xbf, 0x4c, 0xa4,
  744. 0xb8, 0x2c, 0xde, 0x1e, 0xcf, 0xc1, 0x52, 0x2a, 0x77, 0x7a, 0xf3, 0xc4, 0xea, 0x10, 0xf2, 0x79,
  745. 0xf9, 0x4a, 0xd8, 0x99, 0x27, 0xb8, 0x78, 0x73, 0x0c, 0x00, 0xf0, 0x97, 0x27, 0x83, 0xd4, 0x79,
  746. 0x3c, 0x07, 0xc5, 0xc1, 0xca, 0xf4, 0xaa, 0x6b, 0x7f, 0xad, 0x83, 0x4f, 0x0e, 0xfb, 0xae, 0x8d,
  747. 0x3c, 0x27, 0x41, 0xda, 0xa3, 0xd0, 0xa9, 0x01, 0xab, 0xf7, 0x6e, 0xa3, 0xf6, 0xde, 0xad, 0x26,
  748. 0x82, 0x85, 0xb7, 0x4c, 0x04, 0xcd, 0xb7, 0x4e, 0x04, 0xd6, 0xcc, 0x44, 0xd0, 0x93, 0xb0, 0x76,
  749. 0x7d, 0x10, 0x21, 0xbb, 0xb0, 0xa6, 0x26, 0x99, 0x33, 0x16, 0xa9, 0x73, 0x95, 0xe9, 0x47, 0x86,
  750. 0x69, 0x57, 0x39, 0x8f, 0xbf, 0x66, 0x51, 0xf4, 0x02, 0xbd, 0xe4, 0x7d, 0xb0, 0xf3, 0x64, 0x44,
  751. 0x85, 0x9a, 0x7c, 0x4c, 0x0d, 0x6d, 0xed, 0x38, 0xe6, 0xb1, 0xba, 0xaa, 0x0b, 0x9a, 0x62, 0x0e,
  752. 0x31, 0xe1, 0xbd, 0x7f, 0x2e, 0x82, 0x5d, 0x8e, 0x82, 0xc4, 0x87, 0x4d, 0xc6, 0xbd, 0x8c, 0x8a,
  753. 0x73, 0x16, 0x50, 0x6f, 0x78, 0x29, 0x69, 0xe6, 0x09, 0x1a, 0xe4, 0x22, 0x63, 0xe7, 0xd4, 0x8c,
  754. 0xd1, 0x8f, 0x6f, 0x99, 0x29, 0xf1, 0x89, 0x3c, 0x64, 0x7c, 0x80, 0x34, 0x07, 0x8a, 0xc5, 0x2d,
  755. 0x48, 0xc8, 0x77, 0x70, 0xbf, 0x4a, 0x31, 0xaa, 0xb1, 0x2f, 0xcc, 0xc1, 0x7e, 0xb7, 0x64, 0x1f,
  756. 0x55, 0xcc, 0x27, 0x70, 0x97, 0x71, 0xef, 0xfb, 0x9c, 0xe6, 0x33, 0xbc, 0xcd, 0x39, 0x78, 0xd7,
  757. 0x19, 0xff, 0x46, 0xc7, 0x57, 0xac, 0x1e, 0x6c, 0xd4, 0x5a, 0xa2, 0x26, 0x80, 0x1a, 0xb7, 0x35,
  758. 0x07, 0xf7, 0x83, 0xb2, 0x66, 0x35, 0x31, 0x54, 0x09, 0xfe, 0x08, 0x0f, 0x18, 0xf7, 0x2e, 0x7c,
  759. 0x26, 0xaf, 0xb3, 0x2f, 0xce, 0xd7, 0x91, 0x6f, 0x7d, 0x26, 0x67, 0xa9, 0xb1, 0x23, 0x31, 0x15,
  760. 0xe1, 0x4c, 0x47, 0x96, 0xe6, 0xeb, 0xc8, 0x91, 0x8e, 0xaf, 0x58, 0xfb, 0xb0, 0xce, 0xf8, 0xf5,
  761. 0x5a, 0x5b, 0x73, 0x70, 0xde, 0x61, 0x7c, 0xb6, 0xce, 0x6f, 0x60, 0x3d, 0xa3, 0x81, 0xe4, 0xa2,
  762. 0xae, 0xb6, 0xf6, 0x1c, 0x8c, 0x6b, 0x26, 0xbc, 0xa4, 0xec, 0x9d, 0x03, 0x54, 0xeb, 0x64, 0x15,
  763. 0x16, 0x78, 0xaa, 0x4f, 0x8e, 0xed, 0x2e, 0xf0, 0x54, 0x4d, 0x9e, 0x23, 0x75, 0xd9, 0xe1, 0x71,
  764. 0xb5, 0x5d, 0x63, 0xa9, 0x53, 0x1c, 0xfb, 0x6f, 0x78, 0x31, 0x7a, 0xa2, 0xa1, 0xbd, 0x2c, 0xe1,
  765. 0xc2, 0x9c, 0x58, 0x34, 0x94, 0xf7, 0xdc, 0x8f, 0x72, 0x5a, 0x4c, 0x5a, 0xda, 0xe8, 0xfd, 0xa5,
  766. 0x01, 0xed, 0xe2, 0x03, 0x89, 0x7c, 0x5e, 0x1f, 0xde, 0x9b, 0xef, 0xfe, 0x1e, 0x53, 0x41, 0xb8,
  767. 0x99, 0x72, 0xc2, 0x7f, 0x5e, 0x4d, 0xf8, 0xff, 0x77, 0xb0, 0xf9, 0x0c, 0xa0, 0x60, 0x97, 0xbe,
  768. 0xda, 0x6e, 0x1b, 0x33, 0xbb, 0xed, 0x42, 0x67, 0x1c, 0xf8, 0xde, 0xd8, 0x4f, 0x46, 0x11, 0xc5,
  769. 0xb9, 0x74, 0xc5, 0x85, 0x71, 0xe0, 0xbf, 0x44, 0x4f, 0x01, 0xe0, 0xc3, 0x37, 0x34, 0x90, 0x99,
  770. 0x6e, 0x0a, 0x02, 0x8e, 0xd1, 0xd3, 0xfb, 0xdb, 0x02, 0x74, 0x6a, 0xdf, 0x74, 0x6a, 0x72, 0x4f,
  771. 0xfc, 0xb8, 0xc8, 0xa3, 0x7f, 0xab, 0xcb, 0x47, 0x4c, 0xf0, 0x2e, 0x31, 0x17, 0x53, 0x4b, 0x4c,
  772. 0xf4, 0xa5, 0x40, 0x3e, 0x00, 0x10, 0x13, 0x2f, 0xf5, 0x83, 0x33, 0x6a, 0xe8, 0x2d, 0xd7, 0x16,
  773. 0x93, 0x3e, 0x3a, 0xd4, 0x9d, 0x26, 0x26, 0x1e, 0x15, 0x82, 0x8b, 0xcc, 0xf4, 0xbe, 0x2d, 0x26,
  774. 0x5f, 0x6a, 0xdb, 0xc4, 0x8e, 0x04, 0x57, 0x13, 0x88, 0x79, 0x06, 0xb6, 0x98, 0xbc, 0x40, 0x87,
  775. 0xca, 0x2a, 0x8b, 0xac, 0x38, 0xf0, 0xb6, 0x64, 0x95, 0x55, 0x56, 0x59, 0x71, 0xe0, 0xb5, 0x65,
  776. 0x3d, 0xab, 0x2c, 0xb3, 0xe2, 0xcc, 0xdb, 0x96, 0xb5, 0xac, 0xb2, 0xca, 0x6a, 0x17, 0xb1, 0x26,
  777. 0x6b, 0xef, 0xef, 0x0d, 0xe8, 0xd4, 0xbe, 0x4e, 0x55, 0x03, 0x13, 0xe1, 0x65, 0x11, 0xa5, 0xa9,
  778. 0xfa, 0x90, 0xc2, 0xab, 0x1b, 0x12, 0x31, 0x30, 0x1e, 0xc5, 0x97, 0x08, 0x4f, 0xe4, 0x49, 0x52,
  779. 0x7c, 0x68, 0x59, 0xae, 0x9d, 0x08, 0x17, 0x1d, 0x66, 0x39, 0x93, 0x98, 0xae, 0x59, 0x2c, 0x0f,
  780. 0xd0, 0x41, 0x7e, 0x09, 0x24, 0x11, 0x5e, 0x9e, 0xb0, 0x44, 0x52, 0x21, 0xf2, 0x54, 0xb2, 0x61,
  781. 0xf9, 0x51, 0xb0, 0x9e, 0x88, 0xd3, 0xd9, 0x05, 0xf2, 0x48, 0xb3, 0x99, 0xcb, 0xc6, 0xb4, 0xac,
  782. 0x9d, 0x88, 0x57, 0xfa, 0xe6, 0x38, 0x70, 0x7e, 0xf8, 0x71, 0xeb, 0xbd, 0x7f, 0xff, 0xb8, 0xf5,
  783. 0xde, 0x9f, 0xa7, 0x5b, 0x8d, 0x1f, 0xa6, 0x5b, 0x8d, 0x7f, 0x4c, 0xb7, 0x1a, 0xff, 0x9d, 0x6e,
  784. 0x35, 0x86, 0x4b, 0xfa, 0xcf, 0x95, 0x5f, 0xfd, 0x2f, 0x00, 0x00, 0xff, 0xff, 0xc4, 0x4e, 0x24,
  785. 0x22, 0xc4, 0x11, 0x00, 0x00,
  786. }
  787. func (m *Metrics) Marshal() (dAtA []byte, err error) {
  788. size := m.Size()
  789. dAtA = make([]byte, size)
  790. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  791. if err != nil {
  792. return nil, err
  793. }
  794. return dAtA[:n], nil
  795. }
  796. func (m *Metrics) MarshalTo(dAtA []byte) (int, error) {
  797. size := m.Size()
  798. return m.MarshalToSizedBuffer(dAtA[:size])
  799. }
  800. func (m *Metrics) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  801. i := len(dAtA)
  802. _ = i
  803. var l int
  804. _ = l
  805. if m.XXX_unrecognized != nil {
  806. i -= len(m.XXX_unrecognized)
  807. copy(dAtA[i:], m.XXX_unrecognized)
  808. }
  809. if m.MemoryOomControl != nil {
  810. {
  811. size, err := m.MemoryOomControl.MarshalToSizedBuffer(dAtA[:i])
  812. if err != nil {
  813. return 0, err
  814. }
  815. i -= size
  816. i = encodeVarintMetrics(dAtA, i, uint64(size))
  817. }
  818. i--
  819. dAtA[i] = 0x4a
  820. }
  821. if m.CgroupStats != nil {
  822. {
  823. size, err := m.CgroupStats.MarshalToSizedBuffer(dAtA[:i])
  824. if err != nil {
  825. return 0, err
  826. }
  827. i -= size
  828. i = encodeVarintMetrics(dAtA, i, uint64(size))
  829. }
  830. i--
  831. dAtA[i] = 0x42
  832. }
  833. if len(m.Network) > 0 {
  834. for iNdEx := len(m.Network) - 1; iNdEx >= 0; iNdEx-- {
  835. {
  836. size, err := m.Network[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  837. if err != nil {
  838. return 0, err
  839. }
  840. i -= size
  841. i = encodeVarintMetrics(dAtA, i, uint64(size))
  842. }
  843. i--
  844. dAtA[i] = 0x3a
  845. }
  846. }
  847. if m.Rdma != nil {
  848. {
  849. size, err := m.Rdma.MarshalToSizedBuffer(dAtA[:i])
  850. if err != nil {
  851. return 0, err
  852. }
  853. i -= size
  854. i = encodeVarintMetrics(dAtA, i, uint64(size))
  855. }
  856. i--
  857. dAtA[i] = 0x32
  858. }
  859. if m.Blkio != nil {
  860. {
  861. size, err := m.Blkio.MarshalToSizedBuffer(dAtA[:i])
  862. if err != nil {
  863. return 0, err
  864. }
  865. i -= size
  866. i = encodeVarintMetrics(dAtA, i, uint64(size))
  867. }
  868. i--
  869. dAtA[i] = 0x2a
  870. }
  871. if m.Memory != nil {
  872. {
  873. size, err := m.Memory.MarshalToSizedBuffer(dAtA[:i])
  874. if err != nil {
  875. return 0, err
  876. }
  877. i -= size
  878. i = encodeVarintMetrics(dAtA, i, uint64(size))
  879. }
  880. i--
  881. dAtA[i] = 0x22
  882. }
  883. if m.CPU != nil {
  884. {
  885. size, err := m.CPU.MarshalToSizedBuffer(dAtA[:i])
  886. if err != nil {
  887. return 0, err
  888. }
  889. i -= size
  890. i = encodeVarintMetrics(dAtA, i, uint64(size))
  891. }
  892. i--
  893. dAtA[i] = 0x1a
  894. }
  895. if m.Pids != nil {
  896. {
  897. size, err := m.Pids.MarshalToSizedBuffer(dAtA[:i])
  898. if err != nil {
  899. return 0, err
  900. }
  901. i -= size
  902. i = encodeVarintMetrics(dAtA, i, uint64(size))
  903. }
  904. i--
  905. dAtA[i] = 0x12
  906. }
  907. if len(m.Hugetlb) > 0 {
  908. for iNdEx := len(m.Hugetlb) - 1; iNdEx >= 0; iNdEx-- {
  909. {
  910. size, err := m.Hugetlb[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  911. if err != nil {
  912. return 0, err
  913. }
  914. i -= size
  915. i = encodeVarintMetrics(dAtA, i, uint64(size))
  916. }
  917. i--
  918. dAtA[i] = 0xa
  919. }
  920. }
  921. return len(dAtA) - i, nil
  922. }
  923. func (m *HugetlbStat) Marshal() (dAtA []byte, err error) {
  924. size := m.Size()
  925. dAtA = make([]byte, size)
  926. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  927. if err != nil {
  928. return nil, err
  929. }
  930. return dAtA[:n], nil
  931. }
  932. func (m *HugetlbStat) MarshalTo(dAtA []byte) (int, error) {
  933. size := m.Size()
  934. return m.MarshalToSizedBuffer(dAtA[:size])
  935. }
  936. func (m *HugetlbStat) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  937. i := len(dAtA)
  938. _ = i
  939. var l int
  940. _ = l
  941. if m.XXX_unrecognized != nil {
  942. i -= len(m.XXX_unrecognized)
  943. copy(dAtA[i:], m.XXX_unrecognized)
  944. }
  945. if len(m.Pagesize) > 0 {
  946. i -= len(m.Pagesize)
  947. copy(dAtA[i:], m.Pagesize)
  948. i = encodeVarintMetrics(dAtA, i, uint64(len(m.Pagesize)))
  949. i--
  950. dAtA[i] = 0x22
  951. }
  952. if m.Failcnt != 0 {
  953. i = encodeVarintMetrics(dAtA, i, uint64(m.Failcnt))
  954. i--
  955. dAtA[i] = 0x18
  956. }
  957. if m.Max != 0 {
  958. i = encodeVarintMetrics(dAtA, i, uint64(m.Max))
  959. i--
  960. dAtA[i] = 0x10
  961. }
  962. if m.Usage != 0 {
  963. i = encodeVarintMetrics(dAtA, i, uint64(m.Usage))
  964. i--
  965. dAtA[i] = 0x8
  966. }
  967. return len(dAtA) - i, nil
  968. }
  969. func (m *PidsStat) Marshal() (dAtA []byte, err error) {
  970. size := m.Size()
  971. dAtA = make([]byte, size)
  972. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  973. if err != nil {
  974. return nil, err
  975. }
  976. return dAtA[:n], nil
  977. }
  978. func (m *PidsStat) MarshalTo(dAtA []byte) (int, error) {
  979. size := m.Size()
  980. return m.MarshalToSizedBuffer(dAtA[:size])
  981. }
  982. func (m *PidsStat) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  983. i := len(dAtA)
  984. _ = i
  985. var l int
  986. _ = l
  987. if m.XXX_unrecognized != nil {
  988. i -= len(m.XXX_unrecognized)
  989. copy(dAtA[i:], m.XXX_unrecognized)
  990. }
  991. if m.Limit != 0 {
  992. i = encodeVarintMetrics(dAtA, i, uint64(m.Limit))
  993. i--
  994. dAtA[i] = 0x10
  995. }
  996. if m.Current != 0 {
  997. i = encodeVarintMetrics(dAtA, i, uint64(m.Current))
  998. i--
  999. dAtA[i] = 0x8
  1000. }
  1001. return len(dAtA) - i, nil
  1002. }
  1003. func (m *CPUStat) Marshal() (dAtA []byte, err error) {
  1004. size := m.Size()
  1005. dAtA = make([]byte, size)
  1006. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1007. if err != nil {
  1008. return nil, err
  1009. }
  1010. return dAtA[:n], nil
  1011. }
  1012. func (m *CPUStat) MarshalTo(dAtA []byte) (int, error) {
  1013. size := m.Size()
  1014. return m.MarshalToSizedBuffer(dAtA[:size])
  1015. }
  1016. func (m *CPUStat) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1017. i := len(dAtA)
  1018. _ = i
  1019. var l int
  1020. _ = l
  1021. if m.XXX_unrecognized != nil {
  1022. i -= len(m.XXX_unrecognized)
  1023. copy(dAtA[i:], m.XXX_unrecognized)
  1024. }
  1025. if m.Throttling != nil {
  1026. {
  1027. size, err := m.Throttling.MarshalToSizedBuffer(dAtA[:i])
  1028. if err != nil {
  1029. return 0, err
  1030. }
  1031. i -= size
  1032. i = encodeVarintMetrics(dAtA, i, uint64(size))
  1033. }
  1034. i--
  1035. dAtA[i] = 0x12
  1036. }
  1037. if m.Usage != nil {
  1038. {
  1039. size, err := m.Usage.MarshalToSizedBuffer(dAtA[:i])
  1040. if err != nil {
  1041. return 0, err
  1042. }
  1043. i -= size
  1044. i = encodeVarintMetrics(dAtA, i, uint64(size))
  1045. }
  1046. i--
  1047. dAtA[i] = 0xa
  1048. }
  1049. return len(dAtA) - i, nil
  1050. }
  1051. func (m *CPUUsage) Marshal() (dAtA []byte, err error) {
  1052. size := m.Size()
  1053. dAtA = make([]byte, size)
  1054. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1055. if err != nil {
  1056. return nil, err
  1057. }
  1058. return dAtA[:n], nil
  1059. }
  1060. func (m *CPUUsage) MarshalTo(dAtA []byte) (int, error) {
  1061. size := m.Size()
  1062. return m.MarshalToSizedBuffer(dAtA[:size])
  1063. }
  1064. func (m *CPUUsage) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1065. i := len(dAtA)
  1066. _ = i
  1067. var l int
  1068. _ = l
  1069. if m.XXX_unrecognized != nil {
  1070. i -= len(m.XXX_unrecognized)
  1071. copy(dAtA[i:], m.XXX_unrecognized)
  1072. }
  1073. if len(m.PerCPU) > 0 {
  1074. dAtA11 := make([]byte, len(m.PerCPU)*10)
  1075. var j10 int
  1076. for _, num := range m.PerCPU {
  1077. for num >= 1<<7 {
  1078. dAtA11[j10] = uint8(uint64(num)&0x7f | 0x80)
  1079. num >>= 7
  1080. j10++
  1081. }
  1082. dAtA11[j10] = uint8(num)
  1083. j10++
  1084. }
  1085. i -= j10
  1086. copy(dAtA[i:], dAtA11[:j10])
  1087. i = encodeVarintMetrics(dAtA, i, uint64(j10))
  1088. i--
  1089. dAtA[i] = 0x22
  1090. }
  1091. if m.User != 0 {
  1092. i = encodeVarintMetrics(dAtA, i, uint64(m.User))
  1093. i--
  1094. dAtA[i] = 0x18
  1095. }
  1096. if m.Kernel != 0 {
  1097. i = encodeVarintMetrics(dAtA, i, uint64(m.Kernel))
  1098. i--
  1099. dAtA[i] = 0x10
  1100. }
  1101. if m.Total != 0 {
  1102. i = encodeVarintMetrics(dAtA, i, uint64(m.Total))
  1103. i--
  1104. dAtA[i] = 0x8
  1105. }
  1106. return len(dAtA) - i, nil
  1107. }
  1108. func (m *Throttle) Marshal() (dAtA []byte, err error) {
  1109. size := m.Size()
  1110. dAtA = make([]byte, size)
  1111. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1112. if err != nil {
  1113. return nil, err
  1114. }
  1115. return dAtA[:n], nil
  1116. }
  1117. func (m *Throttle) MarshalTo(dAtA []byte) (int, error) {
  1118. size := m.Size()
  1119. return m.MarshalToSizedBuffer(dAtA[:size])
  1120. }
  1121. func (m *Throttle) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1122. i := len(dAtA)
  1123. _ = i
  1124. var l int
  1125. _ = l
  1126. if m.XXX_unrecognized != nil {
  1127. i -= len(m.XXX_unrecognized)
  1128. copy(dAtA[i:], m.XXX_unrecognized)
  1129. }
  1130. if m.ThrottledTime != 0 {
  1131. i = encodeVarintMetrics(dAtA, i, uint64(m.ThrottledTime))
  1132. i--
  1133. dAtA[i] = 0x18
  1134. }
  1135. if m.ThrottledPeriods != 0 {
  1136. i = encodeVarintMetrics(dAtA, i, uint64(m.ThrottledPeriods))
  1137. i--
  1138. dAtA[i] = 0x10
  1139. }
  1140. if m.Periods != 0 {
  1141. i = encodeVarintMetrics(dAtA, i, uint64(m.Periods))
  1142. i--
  1143. dAtA[i] = 0x8
  1144. }
  1145. return len(dAtA) - i, nil
  1146. }
  1147. func (m *MemoryStat) Marshal() (dAtA []byte, err error) {
  1148. size := m.Size()
  1149. dAtA = make([]byte, size)
  1150. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1151. if err != nil {
  1152. return nil, err
  1153. }
  1154. return dAtA[:n], nil
  1155. }
  1156. func (m *MemoryStat) MarshalTo(dAtA []byte) (int, error) {
  1157. size := m.Size()
  1158. return m.MarshalToSizedBuffer(dAtA[:size])
  1159. }
  1160. func (m *MemoryStat) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1161. i := len(dAtA)
  1162. _ = i
  1163. var l int
  1164. _ = l
  1165. if m.XXX_unrecognized != nil {
  1166. i -= len(m.XXX_unrecognized)
  1167. copy(dAtA[i:], m.XXX_unrecognized)
  1168. }
  1169. if m.KernelTCP != nil {
  1170. {
  1171. size, err := m.KernelTCP.MarshalToSizedBuffer(dAtA[:i])
  1172. if err != nil {
  1173. return 0, err
  1174. }
  1175. i -= size
  1176. i = encodeVarintMetrics(dAtA, i, uint64(size))
  1177. }
  1178. i--
  1179. dAtA[i] = 0x2
  1180. i--
  1181. dAtA[i] = 0xa2
  1182. }
  1183. if m.Kernel != nil {
  1184. {
  1185. size, err := m.Kernel.MarshalToSizedBuffer(dAtA[:i])
  1186. if err != nil {
  1187. return 0, err
  1188. }
  1189. i -= size
  1190. i = encodeVarintMetrics(dAtA, i, uint64(size))
  1191. }
  1192. i--
  1193. dAtA[i] = 0x2
  1194. i--
  1195. dAtA[i] = 0x9a
  1196. }
  1197. if m.Swap != nil {
  1198. {
  1199. size, err := m.Swap.MarshalToSizedBuffer(dAtA[:i])
  1200. if err != nil {
  1201. return 0, err
  1202. }
  1203. i -= size
  1204. i = encodeVarintMetrics(dAtA, i, uint64(size))
  1205. }
  1206. i--
  1207. dAtA[i] = 0x2
  1208. i--
  1209. dAtA[i] = 0x92
  1210. }
  1211. if m.Usage != nil {
  1212. {
  1213. size, err := m.Usage.MarshalToSizedBuffer(dAtA[:i])
  1214. if err != nil {
  1215. return 0, err
  1216. }
  1217. i -= size
  1218. i = encodeVarintMetrics(dAtA, i, uint64(size))
  1219. }
  1220. i--
  1221. dAtA[i] = 0x2
  1222. i--
  1223. dAtA[i] = 0x8a
  1224. }
  1225. if m.TotalUnevictable != 0 {
  1226. i = encodeVarintMetrics(dAtA, i, uint64(m.TotalUnevictable))
  1227. i--
  1228. dAtA[i] = 0x2
  1229. i--
  1230. dAtA[i] = 0x80
  1231. }
  1232. if m.TotalActiveFile != 0 {
  1233. i = encodeVarintMetrics(dAtA, i, uint64(m.TotalActiveFile))
  1234. i--
  1235. dAtA[i] = 0x1
  1236. i--
  1237. dAtA[i] = 0xf8
  1238. }
  1239. if m.TotalInactiveFile != 0 {
  1240. i = encodeVarintMetrics(dAtA, i, uint64(m.TotalInactiveFile))
  1241. i--
  1242. dAtA[i] = 0x1
  1243. i--
  1244. dAtA[i] = 0xf0
  1245. }
  1246. if m.TotalActiveAnon != 0 {
  1247. i = encodeVarintMetrics(dAtA, i, uint64(m.TotalActiveAnon))
  1248. i--
  1249. dAtA[i] = 0x1
  1250. i--
  1251. dAtA[i] = 0xe8
  1252. }
  1253. if m.TotalInactiveAnon != 0 {
  1254. i = encodeVarintMetrics(dAtA, i, uint64(m.TotalInactiveAnon))
  1255. i--
  1256. dAtA[i] = 0x1
  1257. i--
  1258. dAtA[i] = 0xe0
  1259. }
  1260. if m.TotalPgMajFault != 0 {
  1261. i = encodeVarintMetrics(dAtA, i, uint64(m.TotalPgMajFault))
  1262. i--
  1263. dAtA[i] = 0x1
  1264. i--
  1265. dAtA[i] = 0xd8
  1266. }
  1267. if m.TotalPgFault != 0 {
  1268. i = encodeVarintMetrics(dAtA, i, uint64(m.TotalPgFault))
  1269. i--
  1270. dAtA[i] = 0x1
  1271. i--
  1272. dAtA[i] = 0xd0
  1273. }
  1274. if m.TotalPgPgOut != 0 {
  1275. i = encodeVarintMetrics(dAtA, i, uint64(m.TotalPgPgOut))
  1276. i--
  1277. dAtA[i] = 0x1
  1278. i--
  1279. dAtA[i] = 0xc8
  1280. }
  1281. if m.TotalPgPgIn != 0 {
  1282. i = encodeVarintMetrics(dAtA, i, uint64(m.TotalPgPgIn))
  1283. i--
  1284. dAtA[i] = 0x1
  1285. i--
  1286. dAtA[i] = 0xc0
  1287. }
  1288. if m.TotalWriteback != 0 {
  1289. i = encodeVarintMetrics(dAtA, i, uint64(m.TotalWriteback))
  1290. i--
  1291. dAtA[i] = 0x1
  1292. i--
  1293. dAtA[i] = 0xb8
  1294. }
  1295. if m.TotalDirty != 0 {
  1296. i = encodeVarintMetrics(dAtA, i, uint64(m.TotalDirty))
  1297. i--
  1298. dAtA[i] = 0x1
  1299. i--
  1300. dAtA[i] = 0xb0
  1301. }
  1302. if m.TotalMappedFile != 0 {
  1303. i = encodeVarintMetrics(dAtA, i, uint64(m.TotalMappedFile))
  1304. i--
  1305. dAtA[i] = 0x1
  1306. i--
  1307. dAtA[i] = 0xa8
  1308. }
  1309. if m.TotalRSSHuge != 0 {
  1310. i = encodeVarintMetrics(dAtA, i, uint64(m.TotalRSSHuge))
  1311. i--
  1312. dAtA[i] = 0x1
  1313. i--
  1314. dAtA[i] = 0xa0
  1315. }
  1316. if m.TotalRSS != 0 {
  1317. i = encodeVarintMetrics(dAtA, i, uint64(m.TotalRSS))
  1318. i--
  1319. dAtA[i] = 0x1
  1320. i--
  1321. dAtA[i] = 0x98
  1322. }
  1323. if m.TotalCache != 0 {
  1324. i = encodeVarintMetrics(dAtA, i, uint64(m.TotalCache))
  1325. i--
  1326. dAtA[i] = 0x1
  1327. i--
  1328. dAtA[i] = 0x90
  1329. }
  1330. if m.HierarchicalSwapLimit != 0 {
  1331. i = encodeVarintMetrics(dAtA, i, uint64(m.HierarchicalSwapLimit))
  1332. i--
  1333. dAtA[i] = 0x1
  1334. i--
  1335. dAtA[i] = 0x88
  1336. }
  1337. if m.HierarchicalMemoryLimit != 0 {
  1338. i = encodeVarintMetrics(dAtA, i, uint64(m.HierarchicalMemoryLimit))
  1339. i--
  1340. dAtA[i] = 0x1
  1341. i--
  1342. dAtA[i] = 0x80
  1343. }
  1344. if m.Unevictable != 0 {
  1345. i = encodeVarintMetrics(dAtA, i, uint64(m.Unevictable))
  1346. i--
  1347. dAtA[i] = 0x78
  1348. }
  1349. if m.ActiveFile != 0 {
  1350. i = encodeVarintMetrics(dAtA, i, uint64(m.ActiveFile))
  1351. i--
  1352. dAtA[i] = 0x70
  1353. }
  1354. if m.InactiveFile != 0 {
  1355. i = encodeVarintMetrics(dAtA, i, uint64(m.InactiveFile))
  1356. i--
  1357. dAtA[i] = 0x68
  1358. }
  1359. if m.ActiveAnon != 0 {
  1360. i = encodeVarintMetrics(dAtA, i, uint64(m.ActiveAnon))
  1361. i--
  1362. dAtA[i] = 0x60
  1363. }
  1364. if m.InactiveAnon != 0 {
  1365. i = encodeVarintMetrics(dAtA, i, uint64(m.InactiveAnon))
  1366. i--
  1367. dAtA[i] = 0x58
  1368. }
  1369. if m.PgMajFault != 0 {
  1370. i = encodeVarintMetrics(dAtA, i, uint64(m.PgMajFault))
  1371. i--
  1372. dAtA[i] = 0x50
  1373. }
  1374. if m.PgFault != 0 {
  1375. i = encodeVarintMetrics(dAtA, i, uint64(m.PgFault))
  1376. i--
  1377. dAtA[i] = 0x48
  1378. }
  1379. if m.PgPgOut != 0 {
  1380. i = encodeVarintMetrics(dAtA, i, uint64(m.PgPgOut))
  1381. i--
  1382. dAtA[i] = 0x40
  1383. }
  1384. if m.PgPgIn != 0 {
  1385. i = encodeVarintMetrics(dAtA, i, uint64(m.PgPgIn))
  1386. i--
  1387. dAtA[i] = 0x38
  1388. }
  1389. if m.Writeback != 0 {
  1390. i = encodeVarintMetrics(dAtA, i, uint64(m.Writeback))
  1391. i--
  1392. dAtA[i] = 0x30
  1393. }
  1394. if m.Dirty != 0 {
  1395. i = encodeVarintMetrics(dAtA, i, uint64(m.Dirty))
  1396. i--
  1397. dAtA[i] = 0x28
  1398. }
  1399. if m.MappedFile != 0 {
  1400. i = encodeVarintMetrics(dAtA, i, uint64(m.MappedFile))
  1401. i--
  1402. dAtA[i] = 0x20
  1403. }
  1404. if m.RSSHuge != 0 {
  1405. i = encodeVarintMetrics(dAtA, i, uint64(m.RSSHuge))
  1406. i--
  1407. dAtA[i] = 0x18
  1408. }
  1409. if m.RSS != 0 {
  1410. i = encodeVarintMetrics(dAtA, i, uint64(m.RSS))
  1411. i--
  1412. dAtA[i] = 0x10
  1413. }
  1414. if m.Cache != 0 {
  1415. i = encodeVarintMetrics(dAtA, i, uint64(m.Cache))
  1416. i--
  1417. dAtA[i] = 0x8
  1418. }
  1419. return len(dAtA) - i, nil
  1420. }
  1421. func (m *MemoryEntry) Marshal() (dAtA []byte, err error) {
  1422. size := m.Size()
  1423. dAtA = make([]byte, size)
  1424. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1425. if err != nil {
  1426. return nil, err
  1427. }
  1428. return dAtA[:n], nil
  1429. }
  1430. func (m *MemoryEntry) MarshalTo(dAtA []byte) (int, error) {
  1431. size := m.Size()
  1432. return m.MarshalToSizedBuffer(dAtA[:size])
  1433. }
  1434. func (m *MemoryEntry) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1435. i := len(dAtA)
  1436. _ = i
  1437. var l int
  1438. _ = l
  1439. if m.XXX_unrecognized != nil {
  1440. i -= len(m.XXX_unrecognized)
  1441. copy(dAtA[i:], m.XXX_unrecognized)
  1442. }
  1443. if m.Failcnt != 0 {
  1444. i = encodeVarintMetrics(dAtA, i, uint64(m.Failcnt))
  1445. i--
  1446. dAtA[i] = 0x20
  1447. }
  1448. if m.Max != 0 {
  1449. i = encodeVarintMetrics(dAtA, i, uint64(m.Max))
  1450. i--
  1451. dAtA[i] = 0x18
  1452. }
  1453. if m.Usage != 0 {
  1454. i = encodeVarintMetrics(dAtA, i, uint64(m.Usage))
  1455. i--
  1456. dAtA[i] = 0x10
  1457. }
  1458. if m.Limit != 0 {
  1459. i = encodeVarintMetrics(dAtA, i, uint64(m.Limit))
  1460. i--
  1461. dAtA[i] = 0x8
  1462. }
  1463. return len(dAtA) - i, nil
  1464. }
  1465. func (m *MemoryOomControl) Marshal() (dAtA []byte, err error) {
  1466. size := m.Size()
  1467. dAtA = make([]byte, size)
  1468. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1469. if err != nil {
  1470. return nil, err
  1471. }
  1472. return dAtA[:n], nil
  1473. }
  1474. func (m *MemoryOomControl) MarshalTo(dAtA []byte) (int, error) {
  1475. size := m.Size()
  1476. return m.MarshalToSizedBuffer(dAtA[:size])
  1477. }
  1478. func (m *MemoryOomControl) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1479. i := len(dAtA)
  1480. _ = i
  1481. var l int
  1482. _ = l
  1483. if m.XXX_unrecognized != nil {
  1484. i -= len(m.XXX_unrecognized)
  1485. copy(dAtA[i:], m.XXX_unrecognized)
  1486. }
  1487. if m.OomKill != 0 {
  1488. i = encodeVarintMetrics(dAtA, i, uint64(m.OomKill))
  1489. i--
  1490. dAtA[i] = 0x18
  1491. }
  1492. if m.UnderOom != 0 {
  1493. i = encodeVarintMetrics(dAtA, i, uint64(m.UnderOom))
  1494. i--
  1495. dAtA[i] = 0x10
  1496. }
  1497. if m.OomKillDisable != 0 {
  1498. i = encodeVarintMetrics(dAtA, i, uint64(m.OomKillDisable))
  1499. i--
  1500. dAtA[i] = 0x8
  1501. }
  1502. return len(dAtA) - i, nil
  1503. }
  1504. func (m *BlkIOStat) Marshal() (dAtA []byte, err error) {
  1505. size := m.Size()
  1506. dAtA = make([]byte, size)
  1507. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1508. if err != nil {
  1509. return nil, err
  1510. }
  1511. return dAtA[:n], nil
  1512. }
  1513. func (m *BlkIOStat) MarshalTo(dAtA []byte) (int, error) {
  1514. size := m.Size()
  1515. return m.MarshalToSizedBuffer(dAtA[:size])
  1516. }
  1517. func (m *BlkIOStat) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1518. i := len(dAtA)
  1519. _ = i
  1520. var l int
  1521. _ = l
  1522. if m.XXX_unrecognized != nil {
  1523. i -= len(m.XXX_unrecognized)
  1524. copy(dAtA[i:], m.XXX_unrecognized)
  1525. }
  1526. if len(m.SectorsRecursive) > 0 {
  1527. for iNdEx := len(m.SectorsRecursive) - 1; iNdEx >= 0; iNdEx-- {
  1528. {
  1529. size, err := m.SectorsRecursive[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1530. if err != nil {
  1531. return 0, err
  1532. }
  1533. i -= size
  1534. i = encodeVarintMetrics(dAtA, i, uint64(size))
  1535. }
  1536. i--
  1537. dAtA[i] = 0x42
  1538. }
  1539. }
  1540. if len(m.IoTimeRecursive) > 0 {
  1541. for iNdEx := len(m.IoTimeRecursive) - 1; iNdEx >= 0; iNdEx-- {
  1542. {
  1543. size, err := m.IoTimeRecursive[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1544. if err != nil {
  1545. return 0, err
  1546. }
  1547. i -= size
  1548. i = encodeVarintMetrics(dAtA, i, uint64(size))
  1549. }
  1550. i--
  1551. dAtA[i] = 0x3a
  1552. }
  1553. }
  1554. if len(m.IoMergedRecursive) > 0 {
  1555. for iNdEx := len(m.IoMergedRecursive) - 1; iNdEx >= 0; iNdEx-- {
  1556. {
  1557. size, err := m.IoMergedRecursive[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1558. if err != nil {
  1559. return 0, err
  1560. }
  1561. i -= size
  1562. i = encodeVarintMetrics(dAtA, i, uint64(size))
  1563. }
  1564. i--
  1565. dAtA[i] = 0x32
  1566. }
  1567. }
  1568. if len(m.IoWaitTimeRecursive) > 0 {
  1569. for iNdEx := len(m.IoWaitTimeRecursive) - 1; iNdEx >= 0; iNdEx-- {
  1570. {
  1571. size, err := m.IoWaitTimeRecursive[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1572. if err != nil {
  1573. return 0, err
  1574. }
  1575. i -= size
  1576. i = encodeVarintMetrics(dAtA, i, uint64(size))
  1577. }
  1578. i--
  1579. dAtA[i] = 0x2a
  1580. }
  1581. }
  1582. if len(m.IoServiceTimeRecursive) > 0 {
  1583. for iNdEx := len(m.IoServiceTimeRecursive) - 1; iNdEx >= 0; iNdEx-- {
  1584. {
  1585. size, err := m.IoServiceTimeRecursive[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1586. if err != nil {
  1587. return 0, err
  1588. }
  1589. i -= size
  1590. i = encodeVarintMetrics(dAtA, i, uint64(size))
  1591. }
  1592. i--
  1593. dAtA[i] = 0x22
  1594. }
  1595. }
  1596. if len(m.IoQueuedRecursive) > 0 {
  1597. for iNdEx := len(m.IoQueuedRecursive) - 1; iNdEx >= 0; iNdEx-- {
  1598. {
  1599. size, err := m.IoQueuedRecursive[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1600. if err != nil {
  1601. return 0, err
  1602. }
  1603. i -= size
  1604. i = encodeVarintMetrics(dAtA, i, uint64(size))
  1605. }
  1606. i--
  1607. dAtA[i] = 0x1a
  1608. }
  1609. }
  1610. if len(m.IoServicedRecursive) > 0 {
  1611. for iNdEx := len(m.IoServicedRecursive) - 1; iNdEx >= 0; iNdEx-- {
  1612. {
  1613. size, err := m.IoServicedRecursive[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1614. if err != nil {
  1615. return 0, err
  1616. }
  1617. i -= size
  1618. i = encodeVarintMetrics(dAtA, i, uint64(size))
  1619. }
  1620. i--
  1621. dAtA[i] = 0x12
  1622. }
  1623. }
  1624. if len(m.IoServiceBytesRecursive) > 0 {
  1625. for iNdEx := len(m.IoServiceBytesRecursive) - 1; iNdEx >= 0; iNdEx-- {
  1626. {
  1627. size, err := m.IoServiceBytesRecursive[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1628. if err != nil {
  1629. return 0, err
  1630. }
  1631. i -= size
  1632. i = encodeVarintMetrics(dAtA, i, uint64(size))
  1633. }
  1634. i--
  1635. dAtA[i] = 0xa
  1636. }
  1637. }
  1638. return len(dAtA) - i, nil
  1639. }
  1640. func (m *BlkIOEntry) Marshal() (dAtA []byte, err error) {
  1641. size := m.Size()
  1642. dAtA = make([]byte, size)
  1643. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1644. if err != nil {
  1645. return nil, err
  1646. }
  1647. return dAtA[:n], nil
  1648. }
  1649. func (m *BlkIOEntry) MarshalTo(dAtA []byte) (int, error) {
  1650. size := m.Size()
  1651. return m.MarshalToSizedBuffer(dAtA[:size])
  1652. }
  1653. func (m *BlkIOEntry) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1654. i := len(dAtA)
  1655. _ = i
  1656. var l int
  1657. _ = l
  1658. if m.XXX_unrecognized != nil {
  1659. i -= len(m.XXX_unrecognized)
  1660. copy(dAtA[i:], m.XXX_unrecognized)
  1661. }
  1662. if m.Value != 0 {
  1663. i = encodeVarintMetrics(dAtA, i, uint64(m.Value))
  1664. i--
  1665. dAtA[i] = 0x28
  1666. }
  1667. if m.Minor != 0 {
  1668. i = encodeVarintMetrics(dAtA, i, uint64(m.Minor))
  1669. i--
  1670. dAtA[i] = 0x20
  1671. }
  1672. if m.Major != 0 {
  1673. i = encodeVarintMetrics(dAtA, i, uint64(m.Major))
  1674. i--
  1675. dAtA[i] = 0x18
  1676. }
  1677. if len(m.Device) > 0 {
  1678. i -= len(m.Device)
  1679. copy(dAtA[i:], m.Device)
  1680. i = encodeVarintMetrics(dAtA, i, uint64(len(m.Device)))
  1681. i--
  1682. dAtA[i] = 0x12
  1683. }
  1684. if len(m.Op) > 0 {
  1685. i -= len(m.Op)
  1686. copy(dAtA[i:], m.Op)
  1687. i = encodeVarintMetrics(dAtA, i, uint64(len(m.Op)))
  1688. i--
  1689. dAtA[i] = 0xa
  1690. }
  1691. return len(dAtA) - i, nil
  1692. }
  1693. func (m *RdmaStat) Marshal() (dAtA []byte, err error) {
  1694. size := m.Size()
  1695. dAtA = make([]byte, size)
  1696. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1697. if err != nil {
  1698. return nil, err
  1699. }
  1700. return dAtA[:n], nil
  1701. }
  1702. func (m *RdmaStat) MarshalTo(dAtA []byte) (int, error) {
  1703. size := m.Size()
  1704. return m.MarshalToSizedBuffer(dAtA[:size])
  1705. }
  1706. func (m *RdmaStat) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1707. i := len(dAtA)
  1708. _ = i
  1709. var l int
  1710. _ = l
  1711. if m.XXX_unrecognized != nil {
  1712. i -= len(m.XXX_unrecognized)
  1713. copy(dAtA[i:], m.XXX_unrecognized)
  1714. }
  1715. if len(m.Limit) > 0 {
  1716. for iNdEx := len(m.Limit) - 1; iNdEx >= 0; iNdEx-- {
  1717. {
  1718. size, err := m.Limit[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1719. if err != nil {
  1720. return 0, err
  1721. }
  1722. i -= size
  1723. i = encodeVarintMetrics(dAtA, i, uint64(size))
  1724. }
  1725. i--
  1726. dAtA[i] = 0x12
  1727. }
  1728. }
  1729. if len(m.Current) > 0 {
  1730. for iNdEx := len(m.Current) - 1; iNdEx >= 0; iNdEx-- {
  1731. {
  1732. size, err := m.Current[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1733. if err != nil {
  1734. return 0, err
  1735. }
  1736. i -= size
  1737. i = encodeVarintMetrics(dAtA, i, uint64(size))
  1738. }
  1739. i--
  1740. dAtA[i] = 0xa
  1741. }
  1742. }
  1743. return len(dAtA) - i, nil
  1744. }
  1745. func (m *RdmaEntry) Marshal() (dAtA []byte, err error) {
  1746. size := m.Size()
  1747. dAtA = make([]byte, size)
  1748. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1749. if err != nil {
  1750. return nil, err
  1751. }
  1752. return dAtA[:n], nil
  1753. }
  1754. func (m *RdmaEntry) MarshalTo(dAtA []byte) (int, error) {
  1755. size := m.Size()
  1756. return m.MarshalToSizedBuffer(dAtA[:size])
  1757. }
  1758. func (m *RdmaEntry) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1759. i := len(dAtA)
  1760. _ = i
  1761. var l int
  1762. _ = l
  1763. if m.XXX_unrecognized != nil {
  1764. i -= len(m.XXX_unrecognized)
  1765. copy(dAtA[i:], m.XXX_unrecognized)
  1766. }
  1767. if m.HcaObjects != 0 {
  1768. i = encodeVarintMetrics(dAtA, i, uint64(m.HcaObjects))
  1769. i--
  1770. dAtA[i] = 0x18
  1771. }
  1772. if m.HcaHandles != 0 {
  1773. i = encodeVarintMetrics(dAtA, i, uint64(m.HcaHandles))
  1774. i--
  1775. dAtA[i] = 0x10
  1776. }
  1777. if len(m.Device) > 0 {
  1778. i -= len(m.Device)
  1779. copy(dAtA[i:], m.Device)
  1780. i = encodeVarintMetrics(dAtA, i, uint64(len(m.Device)))
  1781. i--
  1782. dAtA[i] = 0xa
  1783. }
  1784. return len(dAtA) - i, nil
  1785. }
  1786. func (m *NetworkStat) Marshal() (dAtA []byte, err error) {
  1787. size := m.Size()
  1788. dAtA = make([]byte, size)
  1789. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1790. if err != nil {
  1791. return nil, err
  1792. }
  1793. return dAtA[:n], nil
  1794. }
  1795. func (m *NetworkStat) MarshalTo(dAtA []byte) (int, error) {
  1796. size := m.Size()
  1797. return m.MarshalToSizedBuffer(dAtA[:size])
  1798. }
  1799. func (m *NetworkStat) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1800. i := len(dAtA)
  1801. _ = i
  1802. var l int
  1803. _ = l
  1804. if m.XXX_unrecognized != nil {
  1805. i -= len(m.XXX_unrecognized)
  1806. copy(dAtA[i:], m.XXX_unrecognized)
  1807. }
  1808. if m.TxDropped != 0 {
  1809. i = encodeVarintMetrics(dAtA, i, uint64(m.TxDropped))
  1810. i--
  1811. dAtA[i] = 0x48
  1812. }
  1813. if m.TxErrors != 0 {
  1814. i = encodeVarintMetrics(dAtA, i, uint64(m.TxErrors))
  1815. i--
  1816. dAtA[i] = 0x40
  1817. }
  1818. if m.TxPackets != 0 {
  1819. i = encodeVarintMetrics(dAtA, i, uint64(m.TxPackets))
  1820. i--
  1821. dAtA[i] = 0x38
  1822. }
  1823. if m.TxBytes != 0 {
  1824. i = encodeVarintMetrics(dAtA, i, uint64(m.TxBytes))
  1825. i--
  1826. dAtA[i] = 0x30
  1827. }
  1828. if m.RxDropped != 0 {
  1829. i = encodeVarintMetrics(dAtA, i, uint64(m.RxDropped))
  1830. i--
  1831. dAtA[i] = 0x28
  1832. }
  1833. if m.RxErrors != 0 {
  1834. i = encodeVarintMetrics(dAtA, i, uint64(m.RxErrors))
  1835. i--
  1836. dAtA[i] = 0x20
  1837. }
  1838. if m.RxPackets != 0 {
  1839. i = encodeVarintMetrics(dAtA, i, uint64(m.RxPackets))
  1840. i--
  1841. dAtA[i] = 0x18
  1842. }
  1843. if m.RxBytes != 0 {
  1844. i = encodeVarintMetrics(dAtA, i, uint64(m.RxBytes))
  1845. i--
  1846. dAtA[i] = 0x10
  1847. }
  1848. if len(m.Name) > 0 {
  1849. i -= len(m.Name)
  1850. copy(dAtA[i:], m.Name)
  1851. i = encodeVarintMetrics(dAtA, i, uint64(len(m.Name)))
  1852. i--
  1853. dAtA[i] = 0xa
  1854. }
  1855. return len(dAtA) - i, nil
  1856. }
  1857. func (m *CgroupStats) Marshal() (dAtA []byte, err error) {
  1858. size := m.Size()
  1859. dAtA = make([]byte, size)
  1860. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1861. if err != nil {
  1862. return nil, err
  1863. }
  1864. return dAtA[:n], nil
  1865. }
  1866. func (m *CgroupStats) MarshalTo(dAtA []byte) (int, error) {
  1867. size := m.Size()
  1868. return m.MarshalToSizedBuffer(dAtA[:size])
  1869. }
  1870. func (m *CgroupStats) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1871. i := len(dAtA)
  1872. _ = i
  1873. var l int
  1874. _ = l
  1875. if m.XXX_unrecognized != nil {
  1876. i -= len(m.XXX_unrecognized)
  1877. copy(dAtA[i:], m.XXX_unrecognized)
  1878. }
  1879. if m.NrIoWait != 0 {
  1880. i = encodeVarintMetrics(dAtA, i, uint64(m.NrIoWait))
  1881. i--
  1882. dAtA[i] = 0x28
  1883. }
  1884. if m.NrUninterruptible != 0 {
  1885. i = encodeVarintMetrics(dAtA, i, uint64(m.NrUninterruptible))
  1886. i--
  1887. dAtA[i] = 0x20
  1888. }
  1889. if m.NrStopped != 0 {
  1890. i = encodeVarintMetrics(dAtA, i, uint64(m.NrStopped))
  1891. i--
  1892. dAtA[i] = 0x18
  1893. }
  1894. if m.NrRunning != 0 {
  1895. i = encodeVarintMetrics(dAtA, i, uint64(m.NrRunning))
  1896. i--
  1897. dAtA[i] = 0x10
  1898. }
  1899. if m.NrSleeping != 0 {
  1900. i = encodeVarintMetrics(dAtA, i, uint64(m.NrSleeping))
  1901. i--
  1902. dAtA[i] = 0x8
  1903. }
  1904. return len(dAtA) - i, nil
  1905. }
  1906. func encodeVarintMetrics(dAtA []byte, offset int, v uint64) int {
  1907. offset -= sovMetrics(v)
  1908. base := offset
  1909. for v >= 1<<7 {
  1910. dAtA[offset] = uint8(v&0x7f | 0x80)
  1911. v >>= 7
  1912. offset++
  1913. }
  1914. dAtA[offset] = uint8(v)
  1915. return base
  1916. }
  1917. func (m *Metrics) Size() (n int) {
  1918. if m == nil {
  1919. return 0
  1920. }
  1921. var l int
  1922. _ = l
  1923. if len(m.Hugetlb) > 0 {
  1924. for _, e := range m.Hugetlb {
  1925. l = e.Size()
  1926. n += 1 + l + sovMetrics(uint64(l))
  1927. }
  1928. }
  1929. if m.Pids != nil {
  1930. l = m.Pids.Size()
  1931. n += 1 + l + sovMetrics(uint64(l))
  1932. }
  1933. if m.CPU != nil {
  1934. l = m.CPU.Size()
  1935. n += 1 + l + sovMetrics(uint64(l))
  1936. }
  1937. if m.Memory != nil {
  1938. l = m.Memory.Size()
  1939. n += 1 + l + sovMetrics(uint64(l))
  1940. }
  1941. if m.Blkio != nil {
  1942. l = m.Blkio.Size()
  1943. n += 1 + l + sovMetrics(uint64(l))
  1944. }
  1945. if m.Rdma != nil {
  1946. l = m.Rdma.Size()
  1947. n += 1 + l + sovMetrics(uint64(l))
  1948. }
  1949. if len(m.Network) > 0 {
  1950. for _, e := range m.Network {
  1951. l = e.Size()
  1952. n += 1 + l + sovMetrics(uint64(l))
  1953. }
  1954. }
  1955. if m.CgroupStats != nil {
  1956. l = m.CgroupStats.Size()
  1957. n += 1 + l + sovMetrics(uint64(l))
  1958. }
  1959. if m.MemoryOomControl != nil {
  1960. l = m.MemoryOomControl.Size()
  1961. n += 1 + l + sovMetrics(uint64(l))
  1962. }
  1963. if m.XXX_unrecognized != nil {
  1964. n += len(m.XXX_unrecognized)
  1965. }
  1966. return n
  1967. }
  1968. func (m *HugetlbStat) Size() (n int) {
  1969. if m == nil {
  1970. return 0
  1971. }
  1972. var l int
  1973. _ = l
  1974. if m.Usage != 0 {
  1975. n += 1 + sovMetrics(uint64(m.Usage))
  1976. }
  1977. if m.Max != 0 {
  1978. n += 1 + sovMetrics(uint64(m.Max))
  1979. }
  1980. if m.Failcnt != 0 {
  1981. n += 1 + sovMetrics(uint64(m.Failcnt))
  1982. }
  1983. l = len(m.Pagesize)
  1984. if l > 0 {
  1985. n += 1 + l + sovMetrics(uint64(l))
  1986. }
  1987. if m.XXX_unrecognized != nil {
  1988. n += len(m.XXX_unrecognized)
  1989. }
  1990. return n
  1991. }
  1992. func (m *PidsStat) Size() (n int) {
  1993. if m == nil {
  1994. return 0
  1995. }
  1996. var l int
  1997. _ = l
  1998. if m.Current != 0 {
  1999. n += 1 + sovMetrics(uint64(m.Current))
  2000. }
  2001. if m.Limit != 0 {
  2002. n += 1 + sovMetrics(uint64(m.Limit))
  2003. }
  2004. if m.XXX_unrecognized != nil {
  2005. n += len(m.XXX_unrecognized)
  2006. }
  2007. return n
  2008. }
  2009. func (m *CPUStat) Size() (n int) {
  2010. if m == nil {
  2011. return 0
  2012. }
  2013. var l int
  2014. _ = l
  2015. if m.Usage != nil {
  2016. l = m.Usage.Size()
  2017. n += 1 + l + sovMetrics(uint64(l))
  2018. }
  2019. if m.Throttling != nil {
  2020. l = m.Throttling.Size()
  2021. n += 1 + l + sovMetrics(uint64(l))
  2022. }
  2023. if m.XXX_unrecognized != nil {
  2024. n += len(m.XXX_unrecognized)
  2025. }
  2026. return n
  2027. }
  2028. func (m *CPUUsage) Size() (n int) {
  2029. if m == nil {
  2030. return 0
  2031. }
  2032. var l int
  2033. _ = l
  2034. if m.Total != 0 {
  2035. n += 1 + sovMetrics(uint64(m.Total))
  2036. }
  2037. if m.Kernel != 0 {
  2038. n += 1 + sovMetrics(uint64(m.Kernel))
  2039. }
  2040. if m.User != 0 {
  2041. n += 1 + sovMetrics(uint64(m.User))
  2042. }
  2043. if len(m.PerCPU) > 0 {
  2044. l = 0
  2045. for _, e := range m.PerCPU {
  2046. l += sovMetrics(uint64(e))
  2047. }
  2048. n += 1 + sovMetrics(uint64(l)) + l
  2049. }
  2050. if m.XXX_unrecognized != nil {
  2051. n += len(m.XXX_unrecognized)
  2052. }
  2053. return n
  2054. }
  2055. func (m *Throttle) Size() (n int) {
  2056. if m == nil {
  2057. return 0
  2058. }
  2059. var l int
  2060. _ = l
  2061. if m.Periods != 0 {
  2062. n += 1 + sovMetrics(uint64(m.Periods))
  2063. }
  2064. if m.ThrottledPeriods != 0 {
  2065. n += 1 + sovMetrics(uint64(m.ThrottledPeriods))
  2066. }
  2067. if m.ThrottledTime != 0 {
  2068. n += 1 + sovMetrics(uint64(m.ThrottledTime))
  2069. }
  2070. if m.XXX_unrecognized != nil {
  2071. n += len(m.XXX_unrecognized)
  2072. }
  2073. return n
  2074. }
  2075. func (m *MemoryStat) Size() (n int) {
  2076. if m == nil {
  2077. return 0
  2078. }
  2079. var l int
  2080. _ = l
  2081. if m.Cache != 0 {
  2082. n += 1 + sovMetrics(uint64(m.Cache))
  2083. }
  2084. if m.RSS != 0 {
  2085. n += 1 + sovMetrics(uint64(m.RSS))
  2086. }
  2087. if m.RSSHuge != 0 {
  2088. n += 1 + sovMetrics(uint64(m.RSSHuge))
  2089. }
  2090. if m.MappedFile != 0 {
  2091. n += 1 + sovMetrics(uint64(m.MappedFile))
  2092. }
  2093. if m.Dirty != 0 {
  2094. n += 1 + sovMetrics(uint64(m.Dirty))
  2095. }
  2096. if m.Writeback != 0 {
  2097. n += 1 + sovMetrics(uint64(m.Writeback))
  2098. }
  2099. if m.PgPgIn != 0 {
  2100. n += 1 + sovMetrics(uint64(m.PgPgIn))
  2101. }
  2102. if m.PgPgOut != 0 {
  2103. n += 1 + sovMetrics(uint64(m.PgPgOut))
  2104. }
  2105. if m.PgFault != 0 {
  2106. n += 1 + sovMetrics(uint64(m.PgFault))
  2107. }
  2108. if m.PgMajFault != 0 {
  2109. n += 1 + sovMetrics(uint64(m.PgMajFault))
  2110. }
  2111. if m.InactiveAnon != 0 {
  2112. n += 1 + sovMetrics(uint64(m.InactiveAnon))
  2113. }
  2114. if m.ActiveAnon != 0 {
  2115. n += 1 + sovMetrics(uint64(m.ActiveAnon))
  2116. }
  2117. if m.InactiveFile != 0 {
  2118. n += 1 + sovMetrics(uint64(m.InactiveFile))
  2119. }
  2120. if m.ActiveFile != 0 {
  2121. n += 1 + sovMetrics(uint64(m.ActiveFile))
  2122. }
  2123. if m.Unevictable != 0 {
  2124. n += 1 + sovMetrics(uint64(m.Unevictable))
  2125. }
  2126. if m.HierarchicalMemoryLimit != 0 {
  2127. n += 2 + sovMetrics(uint64(m.HierarchicalMemoryLimit))
  2128. }
  2129. if m.HierarchicalSwapLimit != 0 {
  2130. n += 2 + sovMetrics(uint64(m.HierarchicalSwapLimit))
  2131. }
  2132. if m.TotalCache != 0 {
  2133. n += 2 + sovMetrics(uint64(m.TotalCache))
  2134. }
  2135. if m.TotalRSS != 0 {
  2136. n += 2 + sovMetrics(uint64(m.TotalRSS))
  2137. }
  2138. if m.TotalRSSHuge != 0 {
  2139. n += 2 + sovMetrics(uint64(m.TotalRSSHuge))
  2140. }
  2141. if m.TotalMappedFile != 0 {
  2142. n += 2 + sovMetrics(uint64(m.TotalMappedFile))
  2143. }
  2144. if m.TotalDirty != 0 {
  2145. n += 2 + sovMetrics(uint64(m.TotalDirty))
  2146. }
  2147. if m.TotalWriteback != 0 {
  2148. n += 2 + sovMetrics(uint64(m.TotalWriteback))
  2149. }
  2150. if m.TotalPgPgIn != 0 {
  2151. n += 2 + sovMetrics(uint64(m.TotalPgPgIn))
  2152. }
  2153. if m.TotalPgPgOut != 0 {
  2154. n += 2 + sovMetrics(uint64(m.TotalPgPgOut))
  2155. }
  2156. if m.TotalPgFault != 0 {
  2157. n += 2 + sovMetrics(uint64(m.TotalPgFault))
  2158. }
  2159. if m.TotalPgMajFault != 0 {
  2160. n += 2 + sovMetrics(uint64(m.TotalPgMajFault))
  2161. }
  2162. if m.TotalInactiveAnon != 0 {
  2163. n += 2 + sovMetrics(uint64(m.TotalInactiveAnon))
  2164. }
  2165. if m.TotalActiveAnon != 0 {
  2166. n += 2 + sovMetrics(uint64(m.TotalActiveAnon))
  2167. }
  2168. if m.TotalInactiveFile != 0 {
  2169. n += 2 + sovMetrics(uint64(m.TotalInactiveFile))
  2170. }
  2171. if m.TotalActiveFile != 0 {
  2172. n += 2 + sovMetrics(uint64(m.TotalActiveFile))
  2173. }
  2174. if m.TotalUnevictable != 0 {
  2175. n += 2 + sovMetrics(uint64(m.TotalUnevictable))
  2176. }
  2177. if m.Usage != nil {
  2178. l = m.Usage.Size()
  2179. n += 2 + l + sovMetrics(uint64(l))
  2180. }
  2181. if m.Swap != nil {
  2182. l = m.Swap.Size()
  2183. n += 2 + l + sovMetrics(uint64(l))
  2184. }
  2185. if m.Kernel != nil {
  2186. l = m.Kernel.Size()
  2187. n += 2 + l + sovMetrics(uint64(l))
  2188. }
  2189. if m.KernelTCP != nil {
  2190. l = m.KernelTCP.Size()
  2191. n += 2 + l + sovMetrics(uint64(l))
  2192. }
  2193. if m.XXX_unrecognized != nil {
  2194. n += len(m.XXX_unrecognized)
  2195. }
  2196. return n
  2197. }
  2198. func (m *MemoryEntry) Size() (n int) {
  2199. if m == nil {
  2200. return 0
  2201. }
  2202. var l int
  2203. _ = l
  2204. if m.Limit != 0 {
  2205. n += 1 + sovMetrics(uint64(m.Limit))
  2206. }
  2207. if m.Usage != 0 {
  2208. n += 1 + sovMetrics(uint64(m.Usage))
  2209. }
  2210. if m.Max != 0 {
  2211. n += 1 + sovMetrics(uint64(m.Max))
  2212. }
  2213. if m.Failcnt != 0 {
  2214. n += 1 + sovMetrics(uint64(m.Failcnt))
  2215. }
  2216. if m.XXX_unrecognized != nil {
  2217. n += len(m.XXX_unrecognized)
  2218. }
  2219. return n
  2220. }
  2221. func (m *MemoryOomControl) Size() (n int) {
  2222. if m == nil {
  2223. return 0
  2224. }
  2225. var l int
  2226. _ = l
  2227. if m.OomKillDisable != 0 {
  2228. n += 1 + sovMetrics(uint64(m.OomKillDisable))
  2229. }
  2230. if m.UnderOom != 0 {
  2231. n += 1 + sovMetrics(uint64(m.UnderOom))
  2232. }
  2233. if m.OomKill != 0 {
  2234. n += 1 + sovMetrics(uint64(m.OomKill))
  2235. }
  2236. if m.XXX_unrecognized != nil {
  2237. n += len(m.XXX_unrecognized)
  2238. }
  2239. return n
  2240. }
  2241. func (m *BlkIOStat) Size() (n int) {
  2242. if m == nil {
  2243. return 0
  2244. }
  2245. var l int
  2246. _ = l
  2247. if len(m.IoServiceBytesRecursive) > 0 {
  2248. for _, e := range m.IoServiceBytesRecursive {
  2249. l = e.Size()
  2250. n += 1 + l + sovMetrics(uint64(l))
  2251. }
  2252. }
  2253. if len(m.IoServicedRecursive) > 0 {
  2254. for _, e := range m.IoServicedRecursive {
  2255. l = e.Size()
  2256. n += 1 + l + sovMetrics(uint64(l))
  2257. }
  2258. }
  2259. if len(m.IoQueuedRecursive) > 0 {
  2260. for _, e := range m.IoQueuedRecursive {
  2261. l = e.Size()
  2262. n += 1 + l + sovMetrics(uint64(l))
  2263. }
  2264. }
  2265. if len(m.IoServiceTimeRecursive) > 0 {
  2266. for _, e := range m.IoServiceTimeRecursive {
  2267. l = e.Size()
  2268. n += 1 + l + sovMetrics(uint64(l))
  2269. }
  2270. }
  2271. if len(m.IoWaitTimeRecursive) > 0 {
  2272. for _, e := range m.IoWaitTimeRecursive {
  2273. l = e.Size()
  2274. n += 1 + l + sovMetrics(uint64(l))
  2275. }
  2276. }
  2277. if len(m.IoMergedRecursive) > 0 {
  2278. for _, e := range m.IoMergedRecursive {
  2279. l = e.Size()
  2280. n += 1 + l + sovMetrics(uint64(l))
  2281. }
  2282. }
  2283. if len(m.IoTimeRecursive) > 0 {
  2284. for _, e := range m.IoTimeRecursive {
  2285. l = e.Size()
  2286. n += 1 + l + sovMetrics(uint64(l))
  2287. }
  2288. }
  2289. if len(m.SectorsRecursive) > 0 {
  2290. for _, e := range m.SectorsRecursive {
  2291. l = e.Size()
  2292. n += 1 + l + sovMetrics(uint64(l))
  2293. }
  2294. }
  2295. if m.XXX_unrecognized != nil {
  2296. n += len(m.XXX_unrecognized)
  2297. }
  2298. return n
  2299. }
  2300. func (m *BlkIOEntry) Size() (n int) {
  2301. if m == nil {
  2302. return 0
  2303. }
  2304. var l int
  2305. _ = l
  2306. l = len(m.Op)
  2307. if l > 0 {
  2308. n += 1 + l + sovMetrics(uint64(l))
  2309. }
  2310. l = len(m.Device)
  2311. if l > 0 {
  2312. n += 1 + l + sovMetrics(uint64(l))
  2313. }
  2314. if m.Major != 0 {
  2315. n += 1 + sovMetrics(uint64(m.Major))
  2316. }
  2317. if m.Minor != 0 {
  2318. n += 1 + sovMetrics(uint64(m.Minor))
  2319. }
  2320. if m.Value != 0 {
  2321. n += 1 + sovMetrics(uint64(m.Value))
  2322. }
  2323. if m.XXX_unrecognized != nil {
  2324. n += len(m.XXX_unrecognized)
  2325. }
  2326. return n
  2327. }
  2328. func (m *RdmaStat) Size() (n int) {
  2329. if m == nil {
  2330. return 0
  2331. }
  2332. var l int
  2333. _ = l
  2334. if len(m.Current) > 0 {
  2335. for _, e := range m.Current {
  2336. l = e.Size()
  2337. n += 1 + l + sovMetrics(uint64(l))
  2338. }
  2339. }
  2340. if len(m.Limit) > 0 {
  2341. for _, e := range m.Limit {
  2342. l = e.Size()
  2343. n += 1 + l + sovMetrics(uint64(l))
  2344. }
  2345. }
  2346. if m.XXX_unrecognized != nil {
  2347. n += len(m.XXX_unrecognized)
  2348. }
  2349. return n
  2350. }
  2351. func (m *RdmaEntry) Size() (n int) {
  2352. if m == nil {
  2353. return 0
  2354. }
  2355. var l int
  2356. _ = l
  2357. l = len(m.Device)
  2358. if l > 0 {
  2359. n += 1 + l + sovMetrics(uint64(l))
  2360. }
  2361. if m.HcaHandles != 0 {
  2362. n += 1 + sovMetrics(uint64(m.HcaHandles))
  2363. }
  2364. if m.HcaObjects != 0 {
  2365. n += 1 + sovMetrics(uint64(m.HcaObjects))
  2366. }
  2367. if m.XXX_unrecognized != nil {
  2368. n += len(m.XXX_unrecognized)
  2369. }
  2370. return n
  2371. }
  2372. func (m *NetworkStat) Size() (n int) {
  2373. if m == nil {
  2374. return 0
  2375. }
  2376. var l int
  2377. _ = l
  2378. l = len(m.Name)
  2379. if l > 0 {
  2380. n += 1 + l + sovMetrics(uint64(l))
  2381. }
  2382. if m.RxBytes != 0 {
  2383. n += 1 + sovMetrics(uint64(m.RxBytes))
  2384. }
  2385. if m.RxPackets != 0 {
  2386. n += 1 + sovMetrics(uint64(m.RxPackets))
  2387. }
  2388. if m.RxErrors != 0 {
  2389. n += 1 + sovMetrics(uint64(m.RxErrors))
  2390. }
  2391. if m.RxDropped != 0 {
  2392. n += 1 + sovMetrics(uint64(m.RxDropped))
  2393. }
  2394. if m.TxBytes != 0 {
  2395. n += 1 + sovMetrics(uint64(m.TxBytes))
  2396. }
  2397. if m.TxPackets != 0 {
  2398. n += 1 + sovMetrics(uint64(m.TxPackets))
  2399. }
  2400. if m.TxErrors != 0 {
  2401. n += 1 + sovMetrics(uint64(m.TxErrors))
  2402. }
  2403. if m.TxDropped != 0 {
  2404. n += 1 + sovMetrics(uint64(m.TxDropped))
  2405. }
  2406. if m.XXX_unrecognized != nil {
  2407. n += len(m.XXX_unrecognized)
  2408. }
  2409. return n
  2410. }
  2411. func (m *CgroupStats) Size() (n int) {
  2412. if m == nil {
  2413. return 0
  2414. }
  2415. var l int
  2416. _ = l
  2417. if m.NrSleeping != 0 {
  2418. n += 1 + sovMetrics(uint64(m.NrSleeping))
  2419. }
  2420. if m.NrRunning != 0 {
  2421. n += 1 + sovMetrics(uint64(m.NrRunning))
  2422. }
  2423. if m.NrStopped != 0 {
  2424. n += 1 + sovMetrics(uint64(m.NrStopped))
  2425. }
  2426. if m.NrUninterruptible != 0 {
  2427. n += 1 + sovMetrics(uint64(m.NrUninterruptible))
  2428. }
  2429. if m.NrIoWait != 0 {
  2430. n += 1 + sovMetrics(uint64(m.NrIoWait))
  2431. }
  2432. if m.XXX_unrecognized != nil {
  2433. n += len(m.XXX_unrecognized)
  2434. }
  2435. return n
  2436. }
  2437. func sovMetrics(x uint64) (n int) {
  2438. return (math_bits.Len64(x|1) + 6) / 7
  2439. }
  2440. func sozMetrics(x uint64) (n int) {
  2441. return sovMetrics(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  2442. }
  2443. func (this *Metrics) String() string {
  2444. if this == nil {
  2445. return "nil"
  2446. }
  2447. repeatedStringForHugetlb := "[]*HugetlbStat{"
  2448. for _, f := range this.Hugetlb {
  2449. repeatedStringForHugetlb += strings.Replace(f.String(), "HugetlbStat", "HugetlbStat", 1) + ","
  2450. }
  2451. repeatedStringForHugetlb += "}"
  2452. repeatedStringForNetwork := "[]*NetworkStat{"
  2453. for _, f := range this.Network {
  2454. repeatedStringForNetwork += strings.Replace(f.String(), "NetworkStat", "NetworkStat", 1) + ","
  2455. }
  2456. repeatedStringForNetwork += "}"
  2457. s := strings.Join([]string{`&Metrics{`,
  2458. `Hugetlb:` + repeatedStringForHugetlb + `,`,
  2459. `Pids:` + strings.Replace(this.Pids.String(), "PidsStat", "PidsStat", 1) + `,`,
  2460. `CPU:` + strings.Replace(this.CPU.String(), "CPUStat", "CPUStat", 1) + `,`,
  2461. `Memory:` + strings.Replace(this.Memory.String(), "MemoryStat", "MemoryStat", 1) + `,`,
  2462. `Blkio:` + strings.Replace(this.Blkio.String(), "BlkIOStat", "BlkIOStat", 1) + `,`,
  2463. `Rdma:` + strings.Replace(this.Rdma.String(), "RdmaStat", "RdmaStat", 1) + `,`,
  2464. `Network:` + repeatedStringForNetwork + `,`,
  2465. `CgroupStats:` + strings.Replace(this.CgroupStats.String(), "CgroupStats", "CgroupStats", 1) + `,`,
  2466. `MemoryOomControl:` + strings.Replace(this.MemoryOomControl.String(), "MemoryOomControl", "MemoryOomControl", 1) + `,`,
  2467. `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  2468. `}`,
  2469. }, "")
  2470. return s
  2471. }
  2472. func (this *HugetlbStat) String() string {
  2473. if this == nil {
  2474. return "nil"
  2475. }
  2476. s := strings.Join([]string{`&HugetlbStat{`,
  2477. `Usage:` + fmt.Sprintf("%v", this.Usage) + `,`,
  2478. `Max:` + fmt.Sprintf("%v", this.Max) + `,`,
  2479. `Failcnt:` + fmt.Sprintf("%v", this.Failcnt) + `,`,
  2480. `Pagesize:` + fmt.Sprintf("%v", this.Pagesize) + `,`,
  2481. `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  2482. `}`,
  2483. }, "")
  2484. return s
  2485. }
  2486. func (this *PidsStat) String() string {
  2487. if this == nil {
  2488. return "nil"
  2489. }
  2490. s := strings.Join([]string{`&PidsStat{`,
  2491. `Current:` + fmt.Sprintf("%v", this.Current) + `,`,
  2492. `Limit:` + fmt.Sprintf("%v", this.Limit) + `,`,
  2493. `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  2494. `}`,
  2495. }, "")
  2496. return s
  2497. }
  2498. func (this *CPUStat) String() string {
  2499. if this == nil {
  2500. return "nil"
  2501. }
  2502. s := strings.Join([]string{`&CPUStat{`,
  2503. `Usage:` + strings.Replace(this.Usage.String(), "CPUUsage", "CPUUsage", 1) + `,`,
  2504. `Throttling:` + strings.Replace(this.Throttling.String(), "Throttle", "Throttle", 1) + `,`,
  2505. `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  2506. `}`,
  2507. }, "")
  2508. return s
  2509. }
  2510. func (this *CPUUsage) String() string {
  2511. if this == nil {
  2512. return "nil"
  2513. }
  2514. s := strings.Join([]string{`&CPUUsage{`,
  2515. `Total:` + fmt.Sprintf("%v", this.Total) + `,`,
  2516. `Kernel:` + fmt.Sprintf("%v", this.Kernel) + `,`,
  2517. `User:` + fmt.Sprintf("%v", this.User) + `,`,
  2518. `PerCPU:` + fmt.Sprintf("%v", this.PerCPU) + `,`,
  2519. `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  2520. `}`,
  2521. }, "")
  2522. return s
  2523. }
  2524. func (this *Throttle) String() string {
  2525. if this == nil {
  2526. return "nil"
  2527. }
  2528. s := strings.Join([]string{`&Throttle{`,
  2529. `Periods:` + fmt.Sprintf("%v", this.Periods) + `,`,
  2530. `ThrottledPeriods:` + fmt.Sprintf("%v", this.ThrottledPeriods) + `,`,
  2531. `ThrottledTime:` + fmt.Sprintf("%v", this.ThrottledTime) + `,`,
  2532. `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  2533. `}`,
  2534. }, "")
  2535. return s
  2536. }
  2537. func (this *MemoryStat) String() string {
  2538. if this == nil {
  2539. return "nil"
  2540. }
  2541. s := strings.Join([]string{`&MemoryStat{`,
  2542. `Cache:` + fmt.Sprintf("%v", this.Cache) + `,`,
  2543. `RSS:` + fmt.Sprintf("%v", this.RSS) + `,`,
  2544. `RSSHuge:` + fmt.Sprintf("%v", this.RSSHuge) + `,`,
  2545. `MappedFile:` + fmt.Sprintf("%v", this.MappedFile) + `,`,
  2546. `Dirty:` + fmt.Sprintf("%v", this.Dirty) + `,`,
  2547. `Writeback:` + fmt.Sprintf("%v", this.Writeback) + `,`,
  2548. `PgPgIn:` + fmt.Sprintf("%v", this.PgPgIn) + `,`,
  2549. `PgPgOut:` + fmt.Sprintf("%v", this.PgPgOut) + `,`,
  2550. `PgFault:` + fmt.Sprintf("%v", this.PgFault) + `,`,
  2551. `PgMajFault:` + fmt.Sprintf("%v", this.PgMajFault) + `,`,
  2552. `InactiveAnon:` + fmt.Sprintf("%v", this.InactiveAnon) + `,`,
  2553. `ActiveAnon:` + fmt.Sprintf("%v", this.ActiveAnon) + `,`,
  2554. `InactiveFile:` + fmt.Sprintf("%v", this.InactiveFile) + `,`,
  2555. `ActiveFile:` + fmt.Sprintf("%v", this.ActiveFile) + `,`,
  2556. `Unevictable:` + fmt.Sprintf("%v", this.Unevictable) + `,`,
  2557. `HierarchicalMemoryLimit:` + fmt.Sprintf("%v", this.HierarchicalMemoryLimit) + `,`,
  2558. `HierarchicalSwapLimit:` + fmt.Sprintf("%v", this.HierarchicalSwapLimit) + `,`,
  2559. `TotalCache:` + fmt.Sprintf("%v", this.TotalCache) + `,`,
  2560. `TotalRSS:` + fmt.Sprintf("%v", this.TotalRSS) + `,`,
  2561. `TotalRSSHuge:` + fmt.Sprintf("%v", this.TotalRSSHuge) + `,`,
  2562. `TotalMappedFile:` + fmt.Sprintf("%v", this.TotalMappedFile) + `,`,
  2563. `TotalDirty:` + fmt.Sprintf("%v", this.TotalDirty) + `,`,
  2564. `TotalWriteback:` + fmt.Sprintf("%v", this.TotalWriteback) + `,`,
  2565. `TotalPgPgIn:` + fmt.Sprintf("%v", this.TotalPgPgIn) + `,`,
  2566. `TotalPgPgOut:` + fmt.Sprintf("%v", this.TotalPgPgOut) + `,`,
  2567. `TotalPgFault:` + fmt.Sprintf("%v", this.TotalPgFault) + `,`,
  2568. `TotalPgMajFault:` + fmt.Sprintf("%v", this.TotalPgMajFault) + `,`,
  2569. `TotalInactiveAnon:` + fmt.Sprintf("%v", this.TotalInactiveAnon) + `,`,
  2570. `TotalActiveAnon:` + fmt.Sprintf("%v", this.TotalActiveAnon) + `,`,
  2571. `TotalInactiveFile:` + fmt.Sprintf("%v", this.TotalInactiveFile) + `,`,
  2572. `TotalActiveFile:` + fmt.Sprintf("%v", this.TotalActiveFile) + `,`,
  2573. `TotalUnevictable:` + fmt.Sprintf("%v", this.TotalUnevictable) + `,`,
  2574. `Usage:` + strings.Replace(this.Usage.String(), "MemoryEntry", "MemoryEntry", 1) + `,`,
  2575. `Swap:` + strings.Replace(this.Swap.String(), "MemoryEntry", "MemoryEntry", 1) + `,`,
  2576. `Kernel:` + strings.Replace(this.Kernel.String(), "MemoryEntry", "MemoryEntry", 1) + `,`,
  2577. `KernelTCP:` + strings.Replace(this.KernelTCP.String(), "MemoryEntry", "MemoryEntry", 1) + `,`,
  2578. `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  2579. `}`,
  2580. }, "")
  2581. return s
  2582. }
  2583. func (this *MemoryEntry) String() string {
  2584. if this == nil {
  2585. return "nil"
  2586. }
  2587. s := strings.Join([]string{`&MemoryEntry{`,
  2588. `Limit:` + fmt.Sprintf("%v", this.Limit) + `,`,
  2589. `Usage:` + fmt.Sprintf("%v", this.Usage) + `,`,
  2590. `Max:` + fmt.Sprintf("%v", this.Max) + `,`,
  2591. `Failcnt:` + fmt.Sprintf("%v", this.Failcnt) + `,`,
  2592. `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  2593. `}`,
  2594. }, "")
  2595. return s
  2596. }
  2597. func (this *MemoryOomControl) String() string {
  2598. if this == nil {
  2599. return "nil"
  2600. }
  2601. s := strings.Join([]string{`&MemoryOomControl{`,
  2602. `OomKillDisable:` + fmt.Sprintf("%v", this.OomKillDisable) + `,`,
  2603. `UnderOom:` + fmt.Sprintf("%v", this.UnderOom) + `,`,
  2604. `OomKill:` + fmt.Sprintf("%v", this.OomKill) + `,`,
  2605. `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  2606. `}`,
  2607. }, "")
  2608. return s
  2609. }
  2610. func (this *BlkIOStat) String() string {
  2611. if this == nil {
  2612. return "nil"
  2613. }
  2614. repeatedStringForIoServiceBytesRecursive := "[]*BlkIOEntry{"
  2615. for _, f := range this.IoServiceBytesRecursive {
  2616. repeatedStringForIoServiceBytesRecursive += strings.Replace(f.String(), "BlkIOEntry", "BlkIOEntry", 1) + ","
  2617. }
  2618. repeatedStringForIoServiceBytesRecursive += "}"
  2619. repeatedStringForIoServicedRecursive := "[]*BlkIOEntry{"
  2620. for _, f := range this.IoServicedRecursive {
  2621. repeatedStringForIoServicedRecursive += strings.Replace(f.String(), "BlkIOEntry", "BlkIOEntry", 1) + ","
  2622. }
  2623. repeatedStringForIoServicedRecursive += "}"
  2624. repeatedStringForIoQueuedRecursive := "[]*BlkIOEntry{"
  2625. for _, f := range this.IoQueuedRecursive {
  2626. repeatedStringForIoQueuedRecursive += strings.Replace(f.String(), "BlkIOEntry", "BlkIOEntry", 1) + ","
  2627. }
  2628. repeatedStringForIoQueuedRecursive += "}"
  2629. repeatedStringForIoServiceTimeRecursive := "[]*BlkIOEntry{"
  2630. for _, f := range this.IoServiceTimeRecursive {
  2631. repeatedStringForIoServiceTimeRecursive += strings.Replace(f.String(), "BlkIOEntry", "BlkIOEntry", 1) + ","
  2632. }
  2633. repeatedStringForIoServiceTimeRecursive += "}"
  2634. repeatedStringForIoWaitTimeRecursive := "[]*BlkIOEntry{"
  2635. for _, f := range this.IoWaitTimeRecursive {
  2636. repeatedStringForIoWaitTimeRecursive += strings.Replace(f.String(), "BlkIOEntry", "BlkIOEntry", 1) + ","
  2637. }
  2638. repeatedStringForIoWaitTimeRecursive += "}"
  2639. repeatedStringForIoMergedRecursive := "[]*BlkIOEntry{"
  2640. for _, f := range this.IoMergedRecursive {
  2641. repeatedStringForIoMergedRecursive += strings.Replace(f.String(), "BlkIOEntry", "BlkIOEntry", 1) + ","
  2642. }
  2643. repeatedStringForIoMergedRecursive += "}"
  2644. repeatedStringForIoTimeRecursive := "[]*BlkIOEntry{"
  2645. for _, f := range this.IoTimeRecursive {
  2646. repeatedStringForIoTimeRecursive += strings.Replace(f.String(), "BlkIOEntry", "BlkIOEntry", 1) + ","
  2647. }
  2648. repeatedStringForIoTimeRecursive += "}"
  2649. repeatedStringForSectorsRecursive := "[]*BlkIOEntry{"
  2650. for _, f := range this.SectorsRecursive {
  2651. repeatedStringForSectorsRecursive += strings.Replace(f.String(), "BlkIOEntry", "BlkIOEntry", 1) + ","
  2652. }
  2653. repeatedStringForSectorsRecursive += "}"
  2654. s := strings.Join([]string{`&BlkIOStat{`,
  2655. `IoServiceBytesRecursive:` + repeatedStringForIoServiceBytesRecursive + `,`,
  2656. `IoServicedRecursive:` + repeatedStringForIoServicedRecursive + `,`,
  2657. `IoQueuedRecursive:` + repeatedStringForIoQueuedRecursive + `,`,
  2658. `IoServiceTimeRecursive:` + repeatedStringForIoServiceTimeRecursive + `,`,
  2659. `IoWaitTimeRecursive:` + repeatedStringForIoWaitTimeRecursive + `,`,
  2660. `IoMergedRecursive:` + repeatedStringForIoMergedRecursive + `,`,
  2661. `IoTimeRecursive:` + repeatedStringForIoTimeRecursive + `,`,
  2662. `SectorsRecursive:` + repeatedStringForSectorsRecursive + `,`,
  2663. `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  2664. `}`,
  2665. }, "")
  2666. return s
  2667. }
  2668. func (this *BlkIOEntry) String() string {
  2669. if this == nil {
  2670. return "nil"
  2671. }
  2672. s := strings.Join([]string{`&BlkIOEntry{`,
  2673. `Op:` + fmt.Sprintf("%v", this.Op) + `,`,
  2674. `Device:` + fmt.Sprintf("%v", this.Device) + `,`,
  2675. `Major:` + fmt.Sprintf("%v", this.Major) + `,`,
  2676. `Minor:` + fmt.Sprintf("%v", this.Minor) + `,`,
  2677. `Value:` + fmt.Sprintf("%v", this.Value) + `,`,
  2678. `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  2679. `}`,
  2680. }, "")
  2681. return s
  2682. }
  2683. func (this *RdmaStat) String() string {
  2684. if this == nil {
  2685. return "nil"
  2686. }
  2687. repeatedStringForCurrent := "[]*RdmaEntry{"
  2688. for _, f := range this.Current {
  2689. repeatedStringForCurrent += strings.Replace(f.String(), "RdmaEntry", "RdmaEntry", 1) + ","
  2690. }
  2691. repeatedStringForCurrent += "}"
  2692. repeatedStringForLimit := "[]*RdmaEntry{"
  2693. for _, f := range this.Limit {
  2694. repeatedStringForLimit += strings.Replace(f.String(), "RdmaEntry", "RdmaEntry", 1) + ","
  2695. }
  2696. repeatedStringForLimit += "}"
  2697. s := strings.Join([]string{`&RdmaStat{`,
  2698. `Current:` + repeatedStringForCurrent + `,`,
  2699. `Limit:` + repeatedStringForLimit + `,`,
  2700. `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  2701. `}`,
  2702. }, "")
  2703. return s
  2704. }
  2705. func (this *RdmaEntry) String() string {
  2706. if this == nil {
  2707. return "nil"
  2708. }
  2709. s := strings.Join([]string{`&RdmaEntry{`,
  2710. `Device:` + fmt.Sprintf("%v", this.Device) + `,`,
  2711. `HcaHandles:` + fmt.Sprintf("%v", this.HcaHandles) + `,`,
  2712. `HcaObjects:` + fmt.Sprintf("%v", this.HcaObjects) + `,`,
  2713. `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  2714. `}`,
  2715. }, "")
  2716. return s
  2717. }
  2718. func (this *NetworkStat) String() string {
  2719. if this == nil {
  2720. return "nil"
  2721. }
  2722. s := strings.Join([]string{`&NetworkStat{`,
  2723. `Name:` + fmt.Sprintf("%v", this.Name) + `,`,
  2724. `RxBytes:` + fmt.Sprintf("%v", this.RxBytes) + `,`,
  2725. `RxPackets:` + fmt.Sprintf("%v", this.RxPackets) + `,`,
  2726. `RxErrors:` + fmt.Sprintf("%v", this.RxErrors) + `,`,
  2727. `RxDropped:` + fmt.Sprintf("%v", this.RxDropped) + `,`,
  2728. `TxBytes:` + fmt.Sprintf("%v", this.TxBytes) + `,`,
  2729. `TxPackets:` + fmt.Sprintf("%v", this.TxPackets) + `,`,
  2730. `TxErrors:` + fmt.Sprintf("%v", this.TxErrors) + `,`,
  2731. `TxDropped:` + fmt.Sprintf("%v", this.TxDropped) + `,`,
  2732. `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  2733. `}`,
  2734. }, "")
  2735. return s
  2736. }
  2737. func (this *CgroupStats) String() string {
  2738. if this == nil {
  2739. return "nil"
  2740. }
  2741. s := strings.Join([]string{`&CgroupStats{`,
  2742. `NrSleeping:` + fmt.Sprintf("%v", this.NrSleeping) + `,`,
  2743. `NrRunning:` + fmt.Sprintf("%v", this.NrRunning) + `,`,
  2744. `NrStopped:` + fmt.Sprintf("%v", this.NrStopped) + `,`,
  2745. `NrUninterruptible:` + fmt.Sprintf("%v", this.NrUninterruptible) + `,`,
  2746. `NrIoWait:` + fmt.Sprintf("%v", this.NrIoWait) + `,`,
  2747. `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  2748. `}`,
  2749. }, "")
  2750. return s
  2751. }
  2752. func valueToStringMetrics(v interface{}) string {
  2753. rv := reflect.ValueOf(v)
  2754. if rv.IsNil() {
  2755. return "nil"
  2756. }
  2757. pv := reflect.Indirect(rv).Interface()
  2758. return fmt.Sprintf("*%v", pv)
  2759. }
  2760. func (m *Metrics) Unmarshal(dAtA []byte) error {
  2761. l := len(dAtA)
  2762. iNdEx := 0
  2763. for iNdEx < l {
  2764. preIndex := iNdEx
  2765. var wire uint64
  2766. for shift := uint(0); ; shift += 7 {
  2767. if shift >= 64 {
  2768. return ErrIntOverflowMetrics
  2769. }
  2770. if iNdEx >= l {
  2771. return io.ErrUnexpectedEOF
  2772. }
  2773. b := dAtA[iNdEx]
  2774. iNdEx++
  2775. wire |= uint64(b&0x7F) << shift
  2776. if b < 0x80 {
  2777. break
  2778. }
  2779. }
  2780. fieldNum := int32(wire >> 3)
  2781. wireType := int(wire & 0x7)
  2782. if wireType == 4 {
  2783. return fmt.Errorf("proto: Metrics: wiretype end group for non-group")
  2784. }
  2785. if fieldNum <= 0 {
  2786. return fmt.Errorf("proto: Metrics: illegal tag %d (wire type %d)", fieldNum, wire)
  2787. }
  2788. switch fieldNum {
  2789. case 1:
  2790. if wireType != 2 {
  2791. return fmt.Errorf("proto: wrong wireType = %d for field Hugetlb", wireType)
  2792. }
  2793. var msglen int
  2794. for shift := uint(0); ; shift += 7 {
  2795. if shift >= 64 {
  2796. return ErrIntOverflowMetrics
  2797. }
  2798. if iNdEx >= l {
  2799. return io.ErrUnexpectedEOF
  2800. }
  2801. b := dAtA[iNdEx]
  2802. iNdEx++
  2803. msglen |= int(b&0x7F) << shift
  2804. if b < 0x80 {
  2805. break
  2806. }
  2807. }
  2808. if msglen < 0 {
  2809. return ErrInvalidLengthMetrics
  2810. }
  2811. postIndex := iNdEx + msglen
  2812. if postIndex < 0 {
  2813. return ErrInvalidLengthMetrics
  2814. }
  2815. if postIndex > l {
  2816. return io.ErrUnexpectedEOF
  2817. }
  2818. m.Hugetlb = append(m.Hugetlb, &HugetlbStat{})
  2819. if err := m.Hugetlb[len(m.Hugetlb)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2820. return err
  2821. }
  2822. iNdEx = postIndex
  2823. case 2:
  2824. if wireType != 2 {
  2825. return fmt.Errorf("proto: wrong wireType = %d for field Pids", wireType)
  2826. }
  2827. var msglen int
  2828. for shift := uint(0); ; shift += 7 {
  2829. if shift >= 64 {
  2830. return ErrIntOverflowMetrics
  2831. }
  2832. if iNdEx >= l {
  2833. return io.ErrUnexpectedEOF
  2834. }
  2835. b := dAtA[iNdEx]
  2836. iNdEx++
  2837. msglen |= int(b&0x7F) << shift
  2838. if b < 0x80 {
  2839. break
  2840. }
  2841. }
  2842. if msglen < 0 {
  2843. return ErrInvalidLengthMetrics
  2844. }
  2845. postIndex := iNdEx + msglen
  2846. if postIndex < 0 {
  2847. return ErrInvalidLengthMetrics
  2848. }
  2849. if postIndex > l {
  2850. return io.ErrUnexpectedEOF
  2851. }
  2852. if m.Pids == nil {
  2853. m.Pids = &PidsStat{}
  2854. }
  2855. if err := m.Pids.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2856. return err
  2857. }
  2858. iNdEx = postIndex
  2859. case 3:
  2860. if wireType != 2 {
  2861. return fmt.Errorf("proto: wrong wireType = %d for field CPU", wireType)
  2862. }
  2863. var msglen int
  2864. for shift := uint(0); ; shift += 7 {
  2865. if shift >= 64 {
  2866. return ErrIntOverflowMetrics
  2867. }
  2868. if iNdEx >= l {
  2869. return io.ErrUnexpectedEOF
  2870. }
  2871. b := dAtA[iNdEx]
  2872. iNdEx++
  2873. msglen |= int(b&0x7F) << shift
  2874. if b < 0x80 {
  2875. break
  2876. }
  2877. }
  2878. if msglen < 0 {
  2879. return ErrInvalidLengthMetrics
  2880. }
  2881. postIndex := iNdEx + msglen
  2882. if postIndex < 0 {
  2883. return ErrInvalidLengthMetrics
  2884. }
  2885. if postIndex > l {
  2886. return io.ErrUnexpectedEOF
  2887. }
  2888. if m.CPU == nil {
  2889. m.CPU = &CPUStat{}
  2890. }
  2891. if err := m.CPU.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2892. return err
  2893. }
  2894. iNdEx = postIndex
  2895. case 4:
  2896. if wireType != 2 {
  2897. return fmt.Errorf("proto: wrong wireType = %d for field Memory", wireType)
  2898. }
  2899. var msglen int
  2900. for shift := uint(0); ; shift += 7 {
  2901. if shift >= 64 {
  2902. return ErrIntOverflowMetrics
  2903. }
  2904. if iNdEx >= l {
  2905. return io.ErrUnexpectedEOF
  2906. }
  2907. b := dAtA[iNdEx]
  2908. iNdEx++
  2909. msglen |= int(b&0x7F) << shift
  2910. if b < 0x80 {
  2911. break
  2912. }
  2913. }
  2914. if msglen < 0 {
  2915. return ErrInvalidLengthMetrics
  2916. }
  2917. postIndex := iNdEx + msglen
  2918. if postIndex < 0 {
  2919. return ErrInvalidLengthMetrics
  2920. }
  2921. if postIndex > l {
  2922. return io.ErrUnexpectedEOF
  2923. }
  2924. if m.Memory == nil {
  2925. m.Memory = &MemoryStat{}
  2926. }
  2927. if err := m.Memory.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2928. return err
  2929. }
  2930. iNdEx = postIndex
  2931. case 5:
  2932. if wireType != 2 {
  2933. return fmt.Errorf("proto: wrong wireType = %d for field Blkio", wireType)
  2934. }
  2935. var msglen int
  2936. for shift := uint(0); ; shift += 7 {
  2937. if shift >= 64 {
  2938. return ErrIntOverflowMetrics
  2939. }
  2940. if iNdEx >= l {
  2941. return io.ErrUnexpectedEOF
  2942. }
  2943. b := dAtA[iNdEx]
  2944. iNdEx++
  2945. msglen |= int(b&0x7F) << shift
  2946. if b < 0x80 {
  2947. break
  2948. }
  2949. }
  2950. if msglen < 0 {
  2951. return ErrInvalidLengthMetrics
  2952. }
  2953. postIndex := iNdEx + msglen
  2954. if postIndex < 0 {
  2955. return ErrInvalidLengthMetrics
  2956. }
  2957. if postIndex > l {
  2958. return io.ErrUnexpectedEOF
  2959. }
  2960. if m.Blkio == nil {
  2961. m.Blkio = &BlkIOStat{}
  2962. }
  2963. if err := m.Blkio.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2964. return err
  2965. }
  2966. iNdEx = postIndex
  2967. case 6:
  2968. if wireType != 2 {
  2969. return fmt.Errorf("proto: wrong wireType = %d for field Rdma", wireType)
  2970. }
  2971. var msglen int
  2972. for shift := uint(0); ; shift += 7 {
  2973. if shift >= 64 {
  2974. return ErrIntOverflowMetrics
  2975. }
  2976. if iNdEx >= l {
  2977. return io.ErrUnexpectedEOF
  2978. }
  2979. b := dAtA[iNdEx]
  2980. iNdEx++
  2981. msglen |= int(b&0x7F) << shift
  2982. if b < 0x80 {
  2983. break
  2984. }
  2985. }
  2986. if msglen < 0 {
  2987. return ErrInvalidLengthMetrics
  2988. }
  2989. postIndex := iNdEx + msglen
  2990. if postIndex < 0 {
  2991. return ErrInvalidLengthMetrics
  2992. }
  2993. if postIndex > l {
  2994. return io.ErrUnexpectedEOF
  2995. }
  2996. if m.Rdma == nil {
  2997. m.Rdma = &RdmaStat{}
  2998. }
  2999. if err := m.Rdma.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3000. return err
  3001. }
  3002. iNdEx = postIndex
  3003. case 7:
  3004. if wireType != 2 {
  3005. return fmt.Errorf("proto: wrong wireType = %d for field Network", wireType)
  3006. }
  3007. var msglen int
  3008. for shift := uint(0); ; shift += 7 {
  3009. if shift >= 64 {
  3010. return ErrIntOverflowMetrics
  3011. }
  3012. if iNdEx >= l {
  3013. return io.ErrUnexpectedEOF
  3014. }
  3015. b := dAtA[iNdEx]
  3016. iNdEx++
  3017. msglen |= int(b&0x7F) << shift
  3018. if b < 0x80 {
  3019. break
  3020. }
  3021. }
  3022. if msglen < 0 {
  3023. return ErrInvalidLengthMetrics
  3024. }
  3025. postIndex := iNdEx + msglen
  3026. if postIndex < 0 {
  3027. return ErrInvalidLengthMetrics
  3028. }
  3029. if postIndex > l {
  3030. return io.ErrUnexpectedEOF
  3031. }
  3032. m.Network = append(m.Network, &NetworkStat{})
  3033. if err := m.Network[len(m.Network)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3034. return err
  3035. }
  3036. iNdEx = postIndex
  3037. case 8:
  3038. if wireType != 2 {
  3039. return fmt.Errorf("proto: wrong wireType = %d for field CgroupStats", wireType)
  3040. }
  3041. var msglen int
  3042. for shift := uint(0); ; shift += 7 {
  3043. if shift >= 64 {
  3044. return ErrIntOverflowMetrics
  3045. }
  3046. if iNdEx >= l {
  3047. return io.ErrUnexpectedEOF
  3048. }
  3049. b := dAtA[iNdEx]
  3050. iNdEx++
  3051. msglen |= int(b&0x7F) << shift
  3052. if b < 0x80 {
  3053. break
  3054. }
  3055. }
  3056. if msglen < 0 {
  3057. return ErrInvalidLengthMetrics
  3058. }
  3059. postIndex := iNdEx + msglen
  3060. if postIndex < 0 {
  3061. return ErrInvalidLengthMetrics
  3062. }
  3063. if postIndex > l {
  3064. return io.ErrUnexpectedEOF
  3065. }
  3066. if m.CgroupStats == nil {
  3067. m.CgroupStats = &CgroupStats{}
  3068. }
  3069. if err := m.CgroupStats.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3070. return err
  3071. }
  3072. iNdEx = postIndex
  3073. case 9:
  3074. if wireType != 2 {
  3075. return fmt.Errorf("proto: wrong wireType = %d for field MemoryOomControl", wireType)
  3076. }
  3077. var msglen int
  3078. for shift := uint(0); ; shift += 7 {
  3079. if shift >= 64 {
  3080. return ErrIntOverflowMetrics
  3081. }
  3082. if iNdEx >= l {
  3083. return io.ErrUnexpectedEOF
  3084. }
  3085. b := dAtA[iNdEx]
  3086. iNdEx++
  3087. msglen |= int(b&0x7F) << shift
  3088. if b < 0x80 {
  3089. break
  3090. }
  3091. }
  3092. if msglen < 0 {
  3093. return ErrInvalidLengthMetrics
  3094. }
  3095. postIndex := iNdEx + msglen
  3096. if postIndex < 0 {
  3097. return ErrInvalidLengthMetrics
  3098. }
  3099. if postIndex > l {
  3100. return io.ErrUnexpectedEOF
  3101. }
  3102. if m.MemoryOomControl == nil {
  3103. m.MemoryOomControl = &MemoryOomControl{}
  3104. }
  3105. if err := m.MemoryOomControl.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3106. return err
  3107. }
  3108. iNdEx = postIndex
  3109. default:
  3110. iNdEx = preIndex
  3111. skippy, err := skipMetrics(dAtA[iNdEx:])
  3112. if err != nil {
  3113. return err
  3114. }
  3115. if (skippy < 0) || (iNdEx+skippy) < 0 {
  3116. return ErrInvalidLengthMetrics
  3117. }
  3118. if (iNdEx + skippy) > l {
  3119. return io.ErrUnexpectedEOF
  3120. }
  3121. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  3122. iNdEx += skippy
  3123. }
  3124. }
  3125. if iNdEx > l {
  3126. return io.ErrUnexpectedEOF
  3127. }
  3128. return nil
  3129. }
  3130. func (m *HugetlbStat) Unmarshal(dAtA []byte) error {
  3131. l := len(dAtA)
  3132. iNdEx := 0
  3133. for iNdEx < l {
  3134. preIndex := iNdEx
  3135. var wire uint64
  3136. for shift := uint(0); ; shift += 7 {
  3137. if shift >= 64 {
  3138. return ErrIntOverflowMetrics
  3139. }
  3140. if iNdEx >= l {
  3141. return io.ErrUnexpectedEOF
  3142. }
  3143. b := dAtA[iNdEx]
  3144. iNdEx++
  3145. wire |= uint64(b&0x7F) << shift
  3146. if b < 0x80 {
  3147. break
  3148. }
  3149. }
  3150. fieldNum := int32(wire >> 3)
  3151. wireType := int(wire & 0x7)
  3152. if wireType == 4 {
  3153. return fmt.Errorf("proto: HugetlbStat: wiretype end group for non-group")
  3154. }
  3155. if fieldNum <= 0 {
  3156. return fmt.Errorf("proto: HugetlbStat: illegal tag %d (wire type %d)", fieldNum, wire)
  3157. }
  3158. switch fieldNum {
  3159. case 1:
  3160. if wireType != 0 {
  3161. return fmt.Errorf("proto: wrong wireType = %d for field Usage", wireType)
  3162. }
  3163. m.Usage = 0
  3164. for shift := uint(0); ; shift += 7 {
  3165. if shift >= 64 {
  3166. return ErrIntOverflowMetrics
  3167. }
  3168. if iNdEx >= l {
  3169. return io.ErrUnexpectedEOF
  3170. }
  3171. b := dAtA[iNdEx]
  3172. iNdEx++
  3173. m.Usage |= uint64(b&0x7F) << shift
  3174. if b < 0x80 {
  3175. break
  3176. }
  3177. }
  3178. case 2:
  3179. if wireType != 0 {
  3180. return fmt.Errorf("proto: wrong wireType = %d for field Max", wireType)
  3181. }
  3182. m.Max = 0
  3183. for shift := uint(0); ; shift += 7 {
  3184. if shift >= 64 {
  3185. return ErrIntOverflowMetrics
  3186. }
  3187. if iNdEx >= l {
  3188. return io.ErrUnexpectedEOF
  3189. }
  3190. b := dAtA[iNdEx]
  3191. iNdEx++
  3192. m.Max |= uint64(b&0x7F) << shift
  3193. if b < 0x80 {
  3194. break
  3195. }
  3196. }
  3197. case 3:
  3198. if wireType != 0 {
  3199. return fmt.Errorf("proto: wrong wireType = %d for field Failcnt", wireType)
  3200. }
  3201. m.Failcnt = 0
  3202. for shift := uint(0); ; shift += 7 {
  3203. if shift >= 64 {
  3204. return ErrIntOverflowMetrics
  3205. }
  3206. if iNdEx >= l {
  3207. return io.ErrUnexpectedEOF
  3208. }
  3209. b := dAtA[iNdEx]
  3210. iNdEx++
  3211. m.Failcnt |= uint64(b&0x7F) << shift
  3212. if b < 0x80 {
  3213. break
  3214. }
  3215. }
  3216. case 4:
  3217. if wireType != 2 {
  3218. return fmt.Errorf("proto: wrong wireType = %d for field Pagesize", wireType)
  3219. }
  3220. var stringLen uint64
  3221. for shift := uint(0); ; shift += 7 {
  3222. if shift >= 64 {
  3223. return ErrIntOverflowMetrics
  3224. }
  3225. if iNdEx >= l {
  3226. return io.ErrUnexpectedEOF
  3227. }
  3228. b := dAtA[iNdEx]
  3229. iNdEx++
  3230. stringLen |= uint64(b&0x7F) << shift
  3231. if b < 0x80 {
  3232. break
  3233. }
  3234. }
  3235. intStringLen := int(stringLen)
  3236. if intStringLen < 0 {
  3237. return ErrInvalidLengthMetrics
  3238. }
  3239. postIndex := iNdEx + intStringLen
  3240. if postIndex < 0 {
  3241. return ErrInvalidLengthMetrics
  3242. }
  3243. if postIndex > l {
  3244. return io.ErrUnexpectedEOF
  3245. }
  3246. m.Pagesize = string(dAtA[iNdEx:postIndex])
  3247. iNdEx = postIndex
  3248. default:
  3249. iNdEx = preIndex
  3250. skippy, err := skipMetrics(dAtA[iNdEx:])
  3251. if err != nil {
  3252. return err
  3253. }
  3254. if (skippy < 0) || (iNdEx+skippy) < 0 {
  3255. return ErrInvalidLengthMetrics
  3256. }
  3257. if (iNdEx + skippy) > l {
  3258. return io.ErrUnexpectedEOF
  3259. }
  3260. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  3261. iNdEx += skippy
  3262. }
  3263. }
  3264. if iNdEx > l {
  3265. return io.ErrUnexpectedEOF
  3266. }
  3267. return nil
  3268. }
  3269. func (m *PidsStat) Unmarshal(dAtA []byte) error {
  3270. l := len(dAtA)
  3271. iNdEx := 0
  3272. for iNdEx < l {
  3273. preIndex := iNdEx
  3274. var wire uint64
  3275. for shift := uint(0); ; shift += 7 {
  3276. if shift >= 64 {
  3277. return ErrIntOverflowMetrics
  3278. }
  3279. if iNdEx >= l {
  3280. return io.ErrUnexpectedEOF
  3281. }
  3282. b := dAtA[iNdEx]
  3283. iNdEx++
  3284. wire |= uint64(b&0x7F) << shift
  3285. if b < 0x80 {
  3286. break
  3287. }
  3288. }
  3289. fieldNum := int32(wire >> 3)
  3290. wireType := int(wire & 0x7)
  3291. if wireType == 4 {
  3292. return fmt.Errorf("proto: PidsStat: wiretype end group for non-group")
  3293. }
  3294. if fieldNum <= 0 {
  3295. return fmt.Errorf("proto: PidsStat: illegal tag %d (wire type %d)", fieldNum, wire)
  3296. }
  3297. switch fieldNum {
  3298. case 1:
  3299. if wireType != 0 {
  3300. return fmt.Errorf("proto: wrong wireType = %d for field Current", wireType)
  3301. }
  3302. m.Current = 0
  3303. for shift := uint(0); ; shift += 7 {
  3304. if shift >= 64 {
  3305. return ErrIntOverflowMetrics
  3306. }
  3307. if iNdEx >= l {
  3308. return io.ErrUnexpectedEOF
  3309. }
  3310. b := dAtA[iNdEx]
  3311. iNdEx++
  3312. m.Current |= uint64(b&0x7F) << shift
  3313. if b < 0x80 {
  3314. break
  3315. }
  3316. }
  3317. case 2:
  3318. if wireType != 0 {
  3319. return fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType)
  3320. }
  3321. m.Limit = 0
  3322. for shift := uint(0); ; shift += 7 {
  3323. if shift >= 64 {
  3324. return ErrIntOverflowMetrics
  3325. }
  3326. if iNdEx >= l {
  3327. return io.ErrUnexpectedEOF
  3328. }
  3329. b := dAtA[iNdEx]
  3330. iNdEx++
  3331. m.Limit |= uint64(b&0x7F) << shift
  3332. if b < 0x80 {
  3333. break
  3334. }
  3335. }
  3336. default:
  3337. iNdEx = preIndex
  3338. skippy, err := skipMetrics(dAtA[iNdEx:])
  3339. if err != nil {
  3340. return err
  3341. }
  3342. if (skippy < 0) || (iNdEx+skippy) < 0 {
  3343. return ErrInvalidLengthMetrics
  3344. }
  3345. if (iNdEx + skippy) > l {
  3346. return io.ErrUnexpectedEOF
  3347. }
  3348. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  3349. iNdEx += skippy
  3350. }
  3351. }
  3352. if iNdEx > l {
  3353. return io.ErrUnexpectedEOF
  3354. }
  3355. return nil
  3356. }
  3357. func (m *CPUStat) Unmarshal(dAtA []byte) error {
  3358. l := len(dAtA)
  3359. iNdEx := 0
  3360. for iNdEx < l {
  3361. preIndex := iNdEx
  3362. var wire uint64
  3363. for shift := uint(0); ; shift += 7 {
  3364. if shift >= 64 {
  3365. return ErrIntOverflowMetrics
  3366. }
  3367. if iNdEx >= l {
  3368. return io.ErrUnexpectedEOF
  3369. }
  3370. b := dAtA[iNdEx]
  3371. iNdEx++
  3372. wire |= uint64(b&0x7F) << shift
  3373. if b < 0x80 {
  3374. break
  3375. }
  3376. }
  3377. fieldNum := int32(wire >> 3)
  3378. wireType := int(wire & 0x7)
  3379. if wireType == 4 {
  3380. return fmt.Errorf("proto: CPUStat: wiretype end group for non-group")
  3381. }
  3382. if fieldNum <= 0 {
  3383. return fmt.Errorf("proto: CPUStat: illegal tag %d (wire type %d)", fieldNum, wire)
  3384. }
  3385. switch fieldNum {
  3386. case 1:
  3387. if wireType != 2 {
  3388. return fmt.Errorf("proto: wrong wireType = %d for field Usage", wireType)
  3389. }
  3390. var msglen int
  3391. for shift := uint(0); ; shift += 7 {
  3392. if shift >= 64 {
  3393. return ErrIntOverflowMetrics
  3394. }
  3395. if iNdEx >= l {
  3396. return io.ErrUnexpectedEOF
  3397. }
  3398. b := dAtA[iNdEx]
  3399. iNdEx++
  3400. msglen |= int(b&0x7F) << shift
  3401. if b < 0x80 {
  3402. break
  3403. }
  3404. }
  3405. if msglen < 0 {
  3406. return ErrInvalidLengthMetrics
  3407. }
  3408. postIndex := iNdEx + msglen
  3409. if postIndex < 0 {
  3410. return ErrInvalidLengthMetrics
  3411. }
  3412. if postIndex > l {
  3413. return io.ErrUnexpectedEOF
  3414. }
  3415. if m.Usage == nil {
  3416. m.Usage = &CPUUsage{}
  3417. }
  3418. if err := m.Usage.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3419. return err
  3420. }
  3421. iNdEx = postIndex
  3422. case 2:
  3423. if wireType != 2 {
  3424. return fmt.Errorf("proto: wrong wireType = %d for field Throttling", wireType)
  3425. }
  3426. var msglen int
  3427. for shift := uint(0); ; shift += 7 {
  3428. if shift >= 64 {
  3429. return ErrIntOverflowMetrics
  3430. }
  3431. if iNdEx >= l {
  3432. return io.ErrUnexpectedEOF
  3433. }
  3434. b := dAtA[iNdEx]
  3435. iNdEx++
  3436. msglen |= int(b&0x7F) << shift
  3437. if b < 0x80 {
  3438. break
  3439. }
  3440. }
  3441. if msglen < 0 {
  3442. return ErrInvalidLengthMetrics
  3443. }
  3444. postIndex := iNdEx + msglen
  3445. if postIndex < 0 {
  3446. return ErrInvalidLengthMetrics
  3447. }
  3448. if postIndex > l {
  3449. return io.ErrUnexpectedEOF
  3450. }
  3451. if m.Throttling == nil {
  3452. m.Throttling = &Throttle{}
  3453. }
  3454. if err := m.Throttling.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3455. return err
  3456. }
  3457. iNdEx = postIndex
  3458. default:
  3459. iNdEx = preIndex
  3460. skippy, err := skipMetrics(dAtA[iNdEx:])
  3461. if err != nil {
  3462. return err
  3463. }
  3464. if (skippy < 0) || (iNdEx+skippy) < 0 {
  3465. return ErrInvalidLengthMetrics
  3466. }
  3467. if (iNdEx + skippy) > l {
  3468. return io.ErrUnexpectedEOF
  3469. }
  3470. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  3471. iNdEx += skippy
  3472. }
  3473. }
  3474. if iNdEx > l {
  3475. return io.ErrUnexpectedEOF
  3476. }
  3477. return nil
  3478. }
  3479. func (m *CPUUsage) Unmarshal(dAtA []byte) error {
  3480. l := len(dAtA)
  3481. iNdEx := 0
  3482. for iNdEx < l {
  3483. preIndex := iNdEx
  3484. var wire uint64
  3485. for shift := uint(0); ; shift += 7 {
  3486. if shift >= 64 {
  3487. return ErrIntOverflowMetrics
  3488. }
  3489. if iNdEx >= l {
  3490. return io.ErrUnexpectedEOF
  3491. }
  3492. b := dAtA[iNdEx]
  3493. iNdEx++
  3494. wire |= uint64(b&0x7F) << shift
  3495. if b < 0x80 {
  3496. break
  3497. }
  3498. }
  3499. fieldNum := int32(wire >> 3)
  3500. wireType := int(wire & 0x7)
  3501. if wireType == 4 {
  3502. return fmt.Errorf("proto: CPUUsage: wiretype end group for non-group")
  3503. }
  3504. if fieldNum <= 0 {
  3505. return fmt.Errorf("proto: CPUUsage: illegal tag %d (wire type %d)", fieldNum, wire)
  3506. }
  3507. switch fieldNum {
  3508. case 1:
  3509. if wireType != 0 {
  3510. return fmt.Errorf("proto: wrong wireType = %d for field Total", wireType)
  3511. }
  3512. m.Total = 0
  3513. for shift := uint(0); ; shift += 7 {
  3514. if shift >= 64 {
  3515. return ErrIntOverflowMetrics
  3516. }
  3517. if iNdEx >= l {
  3518. return io.ErrUnexpectedEOF
  3519. }
  3520. b := dAtA[iNdEx]
  3521. iNdEx++
  3522. m.Total |= uint64(b&0x7F) << shift
  3523. if b < 0x80 {
  3524. break
  3525. }
  3526. }
  3527. case 2:
  3528. if wireType != 0 {
  3529. return fmt.Errorf("proto: wrong wireType = %d for field Kernel", wireType)
  3530. }
  3531. m.Kernel = 0
  3532. for shift := uint(0); ; shift += 7 {
  3533. if shift >= 64 {
  3534. return ErrIntOverflowMetrics
  3535. }
  3536. if iNdEx >= l {
  3537. return io.ErrUnexpectedEOF
  3538. }
  3539. b := dAtA[iNdEx]
  3540. iNdEx++
  3541. m.Kernel |= uint64(b&0x7F) << shift
  3542. if b < 0x80 {
  3543. break
  3544. }
  3545. }
  3546. case 3:
  3547. if wireType != 0 {
  3548. return fmt.Errorf("proto: wrong wireType = %d for field User", wireType)
  3549. }
  3550. m.User = 0
  3551. for shift := uint(0); ; shift += 7 {
  3552. if shift >= 64 {
  3553. return ErrIntOverflowMetrics
  3554. }
  3555. if iNdEx >= l {
  3556. return io.ErrUnexpectedEOF
  3557. }
  3558. b := dAtA[iNdEx]
  3559. iNdEx++
  3560. m.User |= uint64(b&0x7F) << shift
  3561. if b < 0x80 {
  3562. break
  3563. }
  3564. }
  3565. case 4:
  3566. if wireType == 0 {
  3567. var v uint64
  3568. for shift := uint(0); ; shift += 7 {
  3569. if shift >= 64 {
  3570. return ErrIntOverflowMetrics
  3571. }
  3572. if iNdEx >= l {
  3573. return io.ErrUnexpectedEOF
  3574. }
  3575. b := dAtA[iNdEx]
  3576. iNdEx++
  3577. v |= uint64(b&0x7F) << shift
  3578. if b < 0x80 {
  3579. break
  3580. }
  3581. }
  3582. m.PerCPU = append(m.PerCPU, v)
  3583. } else if wireType == 2 {
  3584. var packedLen int
  3585. for shift := uint(0); ; shift += 7 {
  3586. if shift >= 64 {
  3587. return ErrIntOverflowMetrics
  3588. }
  3589. if iNdEx >= l {
  3590. return io.ErrUnexpectedEOF
  3591. }
  3592. b := dAtA[iNdEx]
  3593. iNdEx++
  3594. packedLen |= int(b&0x7F) << shift
  3595. if b < 0x80 {
  3596. break
  3597. }
  3598. }
  3599. if packedLen < 0 {
  3600. return ErrInvalidLengthMetrics
  3601. }
  3602. postIndex := iNdEx + packedLen
  3603. if postIndex < 0 {
  3604. return ErrInvalidLengthMetrics
  3605. }
  3606. if postIndex > l {
  3607. return io.ErrUnexpectedEOF
  3608. }
  3609. var elementCount int
  3610. var count int
  3611. for _, integer := range dAtA[iNdEx:postIndex] {
  3612. if integer < 128 {
  3613. count++
  3614. }
  3615. }
  3616. elementCount = count
  3617. if elementCount != 0 && len(m.PerCPU) == 0 {
  3618. m.PerCPU = make([]uint64, 0, elementCount)
  3619. }
  3620. for iNdEx < postIndex {
  3621. var v uint64
  3622. for shift := uint(0); ; shift += 7 {
  3623. if shift >= 64 {
  3624. return ErrIntOverflowMetrics
  3625. }
  3626. if iNdEx >= l {
  3627. return io.ErrUnexpectedEOF
  3628. }
  3629. b := dAtA[iNdEx]
  3630. iNdEx++
  3631. v |= uint64(b&0x7F) << shift
  3632. if b < 0x80 {
  3633. break
  3634. }
  3635. }
  3636. m.PerCPU = append(m.PerCPU, v)
  3637. }
  3638. } else {
  3639. return fmt.Errorf("proto: wrong wireType = %d for field PerCPU", wireType)
  3640. }
  3641. default:
  3642. iNdEx = preIndex
  3643. skippy, err := skipMetrics(dAtA[iNdEx:])
  3644. if err != nil {
  3645. return err
  3646. }
  3647. if (skippy < 0) || (iNdEx+skippy) < 0 {
  3648. return ErrInvalidLengthMetrics
  3649. }
  3650. if (iNdEx + skippy) > l {
  3651. return io.ErrUnexpectedEOF
  3652. }
  3653. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  3654. iNdEx += skippy
  3655. }
  3656. }
  3657. if iNdEx > l {
  3658. return io.ErrUnexpectedEOF
  3659. }
  3660. return nil
  3661. }
  3662. func (m *Throttle) Unmarshal(dAtA []byte) error {
  3663. l := len(dAtA)
  3664. iNdEx := 0
  3665. for iNdEx < l {
  3666. preIndex := iNdEx
  3667. var wire uint64
  3668. for shift := uint(0); ; shift += 7 {
  3669. if shift >= 64 {
  3670. return ErrIntOverflowMetrics
  3671. }
  3672. if iNdEx >= l {
  3673. return io.ErrUnexpectedEOF
  3674. }
  3675. b := dAtA[iNdEx]
  3676. iNdEx++
  3677. wire |= uint64(b&0x7F) << shift
  3678. if b < 0x80 {
  3679. break
  3680. }
  3681. }
  3682. fieldNum := int32(wire >> 3)
  3683. wireType := int(wire & 0x7)
  3684. if wireType == 4 {
  3685. return fmt.Errorf("proto: Throttle: wiretype end group for non-group")
  3686. }
  3687. if fieldNum <= 0 {
  3688. return fmt.Errorf("proto: Throttle: illegal tag %d (wire type %d)", fieldNum, wire)
  3689. }
  3690. switch fieldNum {
  3691. case 1:
  3692. if wireType != 0 {
  3693. return fmt.Errorf("proto: wrong wireType = %d for field Periods", wireType)
  3694. }
  3695. m.Periods = 0
  3696. for shift := uint(0); ; shift += 7 {
  3697. if shift >= 64 {
  3698. return ErrIntOverflowMetrics
  3699. }
  3700. if iNdEx >= l {
  3701. return io.ErrUnexpectedEOF
  3702. }
  3703. b := dAtA[iNdEx]
  3704. iNdEx++
  3705. m.Periods |= uint64(b&0x7F) << shift
  3706. if b < 0x80 {
  3707. break
  3708. }
  3709. }
  3710. case 2:
  3711. if wireType != 0 {
  3712. return fmt.Errorf("proto: wrong wireType = %d for field ThrottledPeriods", wireType)
  3713. }
  3714. m.ThrottledPeriods = 0
  3715. for shift := uint(0); ; shift += 7 {
  3716. if shift >= 64 {
  3717. return ErrIntOverflowMetrics
  3718. }
  3719. if iNdEx >= l {
  3720. return io.ErrUnexpectedEOF
  3721. }
  3722. b := dAtA[iNdEx]
  3723. iNdEx++
  3724. m.ThrottledPeriods |= uint64(b&0x7F) << shift
  3725. if b < 0x80 {
  3726. break
  3727. }
  3728. }
  3729. case 3:
  3730. if wireType != 0 {
  3731. return fmt.Errorf("proto: wrong wireType = %d for field ThrottledTime", wireType)
  3732. }
  3733. m.ThrottledTime = 0
  3734. for shift := uint(0); ; shift += 7 {
  3735. if shift >= 64 {
  3736. return ErrIntOverflowMetrics
  3737. }
  3738. if iNdEx >= l {
  3739. return io.ErrUnexpectedEOF
  3740. }
  3741. b := dAtA[iNdEx]
  3742. iNdEx++
  3743. m.ThrottledTime |= uint64(b&0x7F) << shift
  3744. if b < 0x80 {
  3745. break
  3746. }
  3747. }
  3748. default:
  3749. iNdEx = preIndex
  3750. skippy, err := skipMetrics(dAtA[iNdEx:])
  3751. if err != nil {
  3752. return err
  3753. }
  3754. if (skippy < 0) || (iNdEx+skippy) < 0 {
  3755. return ErrInvalidLengthMetrics
  3756. }
  3757. if (iNdEx + skippy) > l {
  3758. return io.ErrUnexpectedEOF
  3759. }
  3760. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  3761. iNdEx += skippy
  3762. }
  3763. }
  3764. if iNdEx > l {
  3765. return io.ErrUnexpectedEOF
  3766. }
  3767. return nil
  3768. }
  3769. func (m *MemoryStat) Unmarshal(dAtA []byte) error {
  3770. l := len(dAtA)
  3771. iNdEx := 0
  3772. for iNdEx < l {
  3773. preIndex := iNdEx
  3774. var wire uint64
  3775. for shift := uint(0); ; shift += 7 {
  3776. if shift >= 64 {
  3777. return ErrIntOverflowMetrics
  3778. }
  3779. if iNdEx >= l {
  3780. return io.ErrUnexpectedEOF
  3781. }
  3782. b := dAtA[iNdEx]
  3783. iNdEx++
  3784. wire |= uint64(b&0x7F) << shift
  3785. if b < 0x80 {
  3786. break
  3787. }
  3788. }
  3789. fieldNum := int32(wire >> 3)
  3790. wireType := int(wire & 0x7)
  3791. if wireType == 4 {
  3792. return fmt.Errorf("proto: MemoryStat: wiretype end group for non-group")
  3793. }
  3794. if fieldNum <= 0 {
  3795. return fmt.Errorf("proto: MemoryStat: illegal tag %d (wire type %d)", fieldNum, wire)
  3796. }
  3797. switch fieldNum {
  3798. case 1:
  3799. if wireType != 0 {
  3800. return fmt.Errorf("proto: wrong wireType = %d for field Cache", wireType)
  3801. }
  3802. m.Cache = 0
  3803. for shift := uint(0); ; shift += 7 {
  3804. if shift >= 64 {
  3805. return ErrIntOverflowMetrics
  3806. }
  3807. if iNdEx >= l {
  3808. return io.ErrUnexpectedEOF
  3809. }
  3810. b := dAtA[iNdEx]
  3811. iNdEx++
  3812. m.Cache |= uint64(b&0x7F) << shift
  3813. if b < 0x80 {
  3814. break
  3815. }
  3816. }
  3817. case 2:
  3818. if wireType != 0 {
  3819. return fmt.Errorf("proto: wrong wireType = %d for field RSS", wireType)
  3820. }
  3821. m.RSS = 0
  3822. for shift := uint(0); ; shift += 7 {
  3823. if shift >= 64 {
  3824. return ErrIntOverflowMetrics
  3825. }
  3826. if iNdEx >= l {
  3827. return io.ErrUnexpectedEOF
  3828. }
  3829. b := dAtA[iNdEx]
  3830. iNdEx++
  3831. m.RSS |= uint64(b&0x7F) << shift
  3832. if b < 0x80 {
  3833. break
  3834. }
  3835. }
  3836. case 3:
  3837. if wireType != 0 {
  3838. return fmt.Errorf("proto: wrong wireType = %d for field RSSHuge", wireType)
  3839. }
  3840. m.RSSHuge = 0
  3841. for shift := uint(0); ; shift += 7 {
  3842. if shift >= 64 {
  3843. return ErrIntOverflowMetrics
  3844. }
  3845. if iNdEx >= l {
  3846. return io.ErrUnexpectedEOF
  3847. }
  3848. b := dAtA[iNdEx]
  3849. iNdEx++
  3850. m.RSSHuge |= uint64(b&0x7F) << shift
  3851. if b < 0x80 {
  3852. break
  3853. }
  3854. }
  3855. case 4:
  3856. if wireType != 0 {
  3857. return fmt.Errorf("proto: wrong wireType = %d for field MappedFile", wireType)
  3858. }
  3859. m.MappedFile = 0
  3860. for shift := uint(0); ; shift += 7 {
  3861. if shift >= 64 {
  3862. return ErrIntOverflowMetrics
  3863. }
  3864. if iNdEx >= l {
  3865. return io.ErrUnexpectedEOF
  3866. }
  3867. b := dAtA[iNdEx]
  3868. iNdEx++
  3869. m.MappedFile |= uint64(b&0x7F) << shift
  3870. if b < 0x80 {
  3871. break
  3872. }
  3873. }
  3874. case 5:
  3875. if wireType != 0 {
  3876. return fmt.Errorf("proto: wrong wireType = %d for field Dirty", wireType)
  3877. }
  3878. m.Dirty = 0
  3879. for shift := uint(0); ; shift += 7 {
  3880. if shift >= 64 {
  3881. return ErrIntOverflowMetrics
  3882. }
  3883. if iNdEx >= l {
  3884. return io.ErrUnexpectedEOF
  3885. }
  3886. b := dAtA[iNdEx]
  3887. iNdEx++
  3888. m.Dirty |= uint64(b&0x7F) << shift
  3889. if b < 0x80 {
  3890. break
  3891. }
  3892. }
  3893. case 6:
  3894. if wireType != 0 {
  3895. return fmt.Errorf("proto: wrong wireType = %d for field Writeback", wireType)
  3896. }
  3897. m.Writeback = 0
  3898. for shift := uint(0); ; shift += 7 {
  3899. if shift >= 64 {
  3900. return ErrIntOverflowMetrics
  3901. }
  3902. if iNdEx >= l {
  3903. return io.ErrUnexpectedEOF
  3904. }
  3905. b := dAtA[iNdEx]
  3906. iNdEx++
  3907. m.Writeback |= uint64(b&0x7F) << shift
  3908. if b < 0x80 {
  3909. break
  3910. }
  3911. }
  3912. case 7:
  3913. if wireType != 0 {
  3914. return fmt.Errorf("proto: wrong wireType = %d for field PgPgIn", wireType)
  3915. }
  3916. m.PgPgIn = 0
  3917. for shift := uint(0); ; shift += 7 {
  3918. if shift >= 64 {
  3919. return ErrIntOverflowMetrics
  3920. }
  3921. if iNdEx >= l {
  3922. return io.ErrUnexpectedEOF
  3923. }
  3924. b := dAtA[iNdEx]
  3925. iNdEx++
  3926. m.PgPgIn |= uint64(b&0x7F) << shift
  3927. if b < 0x80 {
  3928. break
  3929. }
  3930. }
  3931. case 8:
  3932. if wireType != 0 {
  3933. return fmt.Errorf("proto: wrong wireType = %d for field PgPgOut", wireType)
  3934. }
  3935. m.PgPgOut = 0
  3936. for shift := uint(0); ; shift += 7 {
  3937. if shift >= 64 {
  3938. return ErrIntOverflowMetrics
  3939. }
  3940. if iNdEx >= l {
  3941. return io.ErrUnexpectedEOF
  3942. }
  3943. b := dAtA[iNdEx]
  3944. iNdEx++
  3945. m.PgPgOut |= uint64(b&0x7F) << shift
  3946. if b < 0x80 {
  3947. break
  3948. }
  3949. }
  3950. case 9:
  3951. if wireType != 0 {
  3952. return fmt.Errorf("proto: wrong wireType = %d for field PgFault", wireType)
  3953. }
  3954. m.PgFault = 0
  3955. for shift := uint(0); ; shift += 7 {
  3956. if shift >= 64 {
  3957. return ErrIntOverflowMetrics
  3958. }
  3959. if iNdEx >= l {
  3960. return io.ErrUnexpectedEOF
  3961. }
  3962. b := dAtA[iNdEx]
  3963. iNdEx++
  3964. m.PgFault |= uint64(b&0x7F) << shift
  3965. if b < 0x80 {
  3966. break
  3967. }
  3968. }
  3969. case 10:
  3970. if wireType != 0 {
  3971. return fmt.Errorf("proto: wrong wireType = %d for field PgMajFault", wireType)
  3972. }
  3973. m.PgMajFault = 0
  3974. for shift := uint(0); ; shift += 7 {
  3975. if shift >= 64 {
  3976. return ErrIntOverflowMetrics
  3977. }
  3978. if iNdEx >= l {
  3979. return io.ErrUnexpectedEOF
  3980. }
  3981. b := dAtA[iNdEx]
  3982. iNdEx++
  3983. m.PgMajFault |= uint64(b&0x7F) << shift
  3984. if b < 0x80 {
  3985. break
  3986. }
  3987. }
  3988. case 11:
  3989. if wireType != 0 {
  3990. return fmt.Errorf("proto: wrong wireType = %d for field InactiveAnon", wireType)
  3991. }
  3992. m.InactiveAnon = 0
  3993. for shift := uint(0); ; shift += 7 {
  3994. if shift >= 64 {
  3995. return ErrIntOverflowMetrics
  3996. }
  3997. if iNdEx >= l {
  3998. return io.ErrUnexpectedEOF
  3999. }
  4000. b := dAtA[iNdEx]
  4001. iNdEx++
  4002. m.InactiveAnon |= uint64(b&0x7F) << shift
  4003. if b < 0x80 {
  4004. break
  4005. }
  4006. }
  4007. case 12:
  4008. if wireType != 0 {
  4009. return fmt.Errorf("proto: wrong wireType = %d for field ActiveAnon", wireType)
  4010. }
  4011. m.ActiveAnon = 0
  4012. for shift := uint(0); ; shift += 7 {
  4013. if shift >= 64 {
  4014. return ErrIntOverflowMetrics
  4015. }
  4016. if iNdEx >= l {
  4017. return io.ErrUnexpectedEOF
  4018. }
  4019. b := dAtA[iNdEx]
  4020. iNdEx++
  4021. m.ActiveAnon |= uint64(b&0x7F) << shift
  4022. if b < 0x80 {
  4023. break
  4024. }
  4025. }
  4026. case 13:
  4027. if wireType != 0 {
  4028. return fmt.Errorf("proto: wrong wireType = %d for field InactiveFile", wireType)
  4029. }
  4030. m.InactiveFile = 0
  4031. for shift := uint(0); ; shift += 7 {
  4032. if shift >= 64 {
  4033. return ErrIntOverflowMetrics
  4034. }
  4035. if iNdEx >= l {
  4036. return io.ErrUnexpectedEOF
  4037. }
  4038. b := dAtA[iNdEx]
  4039. iNdEx++
  4040. m.InactiveFile |= uint64(b&0x7F) << shift
  4041. if b < 0x80 {
  4042. break
  4043. }
  4044. }
  4045. case 14:
  4046. if wireType != 0 {
  4047. return fmt.Errorf("proto: wrong wireType = %d for field ActiveFile", wireType)
  4048. }
  4049. m.ActiveFile = 0
  4050. for shift := uint(0); ; shift += 7 {
  4051. if shift >= 64 {
  4052. return ErrIntOverflowMetrics
  4053. }
  4054. if iNdEx >= l {
  4055. return io.ErrUnexpectedEOF
  4056. }
  4057. b := dAtA[iNdEx]
  4058. iNdEx++
  4059. m.ActiveFile |= uint64(b&0x7F) << shift
  4060. if b < 0x80 {
  4061. break
  4062. }
  4063. }
  4064. case 15:
  4065. if wireType != 0 {
  4066. return fmt.Errorf("proto: wrong wireType = %d for field Unevictable", wireType)
  4067. }
  4068. m.Unevictable = 0
  4069. for shift := uint(0); ; shift += 7 {
  4070. if shift >= 64 {
  4071. return ErrIntOverflowMetrics
  4072. }
  4073. if iNdEx >= l {
  4074. return io.ErrUnexpectedEOF
  4075. }
  4076. b := dAtA[iNdEx]
  4077. iNdEx++
  4078. m.Unevictable |= uint64(b&0x7F) << shift
  4079. if b < 0x80 {
  4080. break
  4081. }
  4082. }
  4083. case 16:
  4084. if wireType != 0 {
  4085. return fmt.Errorf("proto: wrong wireType = %d for field HierarchicalMemoryLimit", wireType)
  4086. }
  4087. m.HierarchicalMemoryLimit = 0
  4088. for shift := uint(0); ; shift += 7 {
  4089. if shift >= 64 {
  4090. return ErrIntOverflowMetrics
  4091. }
  4092. if iNdEx >= l {
  4093. return io.ErrUnexpectedEOF
  4094. }
  4095. b := dAtA[iNdEx]
  4096. iNdEx++
  4097. m.HierarchicalMemoryLimit |= uint64(b&0x7F) << shift
  4098. if b < 0x80 {
  4099. break
  4100. }
  4101. }
  4102. case 17:
  4103. if wireType != 0 {
  4104. return fmt.Errorf("proto: wrong wireType = %d for field HierarchicalSwapLimit", wireType)
  4105. }
  4106. m.HierarchicalSwapLimit = 0
  4107. for shift := uint(0); ; shift += 7 {
  4108. if shift >= 64 {
  4109. return ErrIntOverflowMetrics
  4110. }
  4111. if iNdEx >= l {
  4112. return io.ErrUnexpectedEOF
  4113. }
  4114. b := dAtA[iNdEx]
  4115. iNdEx++
  4116. m.HierarchicalSwapLimit |= uint64(b&0x7F) << shift
  4117. if b < 0x80 {
  4118. break
  4119. }
  4120. }
  4121. case 18:
  4122. if wireType != 0 {
  4123. return fmt.Errorf("proto: wrong wireType = %d for field TotalCache", wireType)
  4124. }
  4125. m.TotalCache = 0
  4126. for shift := uint(0); ; shift += 7 {
  4127. if shift >= 64 {
  4128. return ErrIntOverflowMetrics
  4129. }
  4130. if iNdEx >= l {
  4131. return io.ErrUnexpectedEOF
  4132. }
  4133. b := dAtA[iNdEx]
  4134. iNdEx++
  4135. m.TotalCache |= uint64(b&0x7F) << shift
  4136. if b < 0x80 {
  4137. break
  4138. }
  4139. }
  4140. case 19:
  4141. if wireType != 0 {
  4142. return fmt.Errorf("proto: wrong wireType = %d for field TotalRSS", wireType)
  4143. }
  4144. m.TotalRSS = 0
  4145. for shift := uint(0); ; shift += 7 {
  4146. if shift >= 64 {
  4147. return ErrIntOverflowMetrics
  4148. }
  4149. if iNdEx >= l {
  4150. return io.ErrUnexpectedEOF
  4151. }
  4152. b := dAtA[iNdEx]
  4153. iNdEx++
  4154. m.TotalRSS |= uint64(b&0x7F) << shift
  4155. if b < 0x80 {
  4156. break
  4157. }
  4158. }
  4159. case 20:
  4160. if wireType != 0 {
  4161. return fmt.Errorf("proto: wrong wireType = %d for field TotalRSSHuge", wireType)
  4162. }
  4163. m.TotalRSSHuge = 0
  4164. for shift := uint(0); ; shift += 7 {
  4165. if shift >= 64 {
  4166. return ErrIntOverflowMetrics
  4167. }
  4168. if iNdEx >= l {
  4169. return io.ErrUnexpectedEOF
  4170. }
  4171. b := dAtA[iNdEx]
  4172. iNdEx++
  4173. m.TotalRSSHuge |= uint64(b&0x7F) << shift
  4174. if b < 0x80 {
  4175. break
  4176. }
  4177. }
  4178. case 21:
  4179. if wireType != 0 {
  4180. return fmt.Errorf("proto: wrong wireType = %d for field TotalMappedFile", wireType)
  4181. }
  4182. m.TotalMappedFile = 0
  4183. for shift := uint(0); ; shift += 7 {
  4184. if shift >= 64 {
  4185. return ErrIntOverflowMetrics
  4186. }
  4187. if iNdEx >= l {
  4188. return io.ErrUnexpectedEOF
  4189. }
  4190. b := dAtA[iNdEx]
  4191. iNdEx++
  4192. m.TotalMappedFile |= uint64(b&0x7F) << shift
  4193. if b < 0x80 {
  4194. break
  4195. }
  4196. }
  4197. case 22:
  4198. if wireType != 0 {
  4199. return fmt.Errorf("proto: wrong wireType = %d for field TotalDirty", wireType)
  4200. }
  4201. m.TotalDirty = 0
  4202. for shift := uint(0); ; shift += 7 {
  4203. if shift >= 64 {
  4204. return ErrIntOverflowMetrics
  4205. }
  4206. if iNdEx >= l {
  4207. return io.ErrUnexpectedEOF
  4208. }
  4209. b := dAtA[iNdEx]
  4210. iNdEx++
  4211. m.TotalDirty |= uint64(b&0x7F) << shift
  4212. if b < 0x80 {
  4213. break
  4214. }
  4215. }
  4216. case 23:
  4217. if wireType != 0 {
  4218. return fmt.Errorf("proto: wrong wireType = %d for field TotalWriteback", wireType)
  4219. }
  4220. m.TotalWriteback = 0
  4221. for shift := uint(0); ; shift += 7 {
  4222. if shift >= 64 {
  4223. return ErrIntOverflowMetrics
  4224. }
  4225. if iNdEx >= l {
  4226. return io.ErrUnexpectedEOF
  4227. }
  4228. b := dAtA[iNdEx]
  4229. iNdEx++
  4230. m.TotalWriteback |= uint64(b&0x7F) << shift
  4231. if b < 0x80 {
  4232. break
  4233. }
  4234. }
  4235. case 24:
  4236. if wireType != 0 {
  4237. return fmt.Errorf("proto: wrong wireType = %d for field TotalPgPgIn", wireType)
  4238. }
  4239. m.TotalPgPgIn = 0
  4240. for shift := uint(0); ; shift += 7 {
  4241. if shift >= 64 {
  4242. return ErrIntOverflowMetrics
  4243. }
  4244. if iNdEx >= l {
  4245. return io.ErrUnexpectedEOF
  4246. }
  4247. b := dAtA[iNdEx]
  4248. iNdEx++
  4249. m.TotalPgPgIn |= uint64(b&0x7F) << shift
  4250. if b < 0x80 {
  4251. break
  4252. }
  4253. }
  4254. case 25:
  4255. if wireType != 0 {
  4256. return fmt.Errorf("proto: wrong wireType = %d for field TotalPgPgOut", wireType)
  4257. }
  4258. m.TotalPgPgOut = 0
  4259. for shift := uint(0); ; shift += 7 {
  4260. if shift >= 64 {
  4261. return ErrIntOverflowMetrics
  4262. }
  4263. if iNdEx >= l {
  4264. return io.ErrUnexpectedEOF
  4265. }
  4266. b := dAtA[iNdEx]
  4267. iNdEx++
  4268. m.TotalPgPgOut |= uint64(b&0x7F) << shift
  4269. if b < 0x80 {
  4270. break
  4271. }
  4272. }
  4273. case 26:
  4274. if wireType != 0 {
  4275. return fmt.Errorf("proto: wrong wireType = %d for field TotalPgFault", wireType)
  4276. }
  4277. m.TotalPgFault = 0
  4278. for shift := uint(0); ; shift += 7 {
  4279. if shift >= 64 {
  4280. return ErrIntOverflowMetrics
  4281. }
  4282. if iNdEx >= l {
  4283. return io.ErrUnexpectedEOF
  4284. }
  4285. b := dAtA[iNdEx]
  4286. iNdEx++
  4287. m.TotalPgFault |= uint64(b&0x7F) << shift
  4288. if b < 0x80 {
  4289. break
  4290. }
  4291. }
  4292. case 27:
  4293. if wireType != 0 {
  4294. return fmt.Errorf("proto: wrong wireType = %d for field TotalPgMajFault", wireType)
  4295. }
  4296. m.TotalPgMajFault = 0
  4297. for shift := uint(0); ; shift += 7 {
  4298. if shift >= 64 {
  4299. return ErrIntOverflowMetrics
  4300. }
  4301. if iNdEx >= l {
  4302. return io.ErrUnexpectedEOF
  4303. }
  4304. b := dAtA[iNdEx]
  4305. iNdEx++
  4306. m.TotalPgMajFault |= uint64(b&0x7F) << shift
  4307. if b < 0x80 {
  4308. break
  4309. }
  4310. }
  4311. case 28:
  4312. if wireType != 0 {
  4313. return fmt.Errorf("proto: wrong wireType = %d for field TotalInactiveAnon", wireType)
  4314. }
  4315. m.TotalInactiveAnon = 0
  4316. for shift := uint(0); ; shift += 7 {
  4317. if shift >= 64 {
  4318. return ErrIntOverflowMetrics
  4319. }
  4320. if iNdEx >= l {
  4321. return io.ErrUnexpectedEOF
  4322. }
  4323. b := dAtA[iNdEx]
  4324. iNdEx++
  4325. m.TotalInactiveAnon |= uint64(b&0x7F) << shift
  4326. if b < 0x80 {
  4327. break
  4328. }
  4329. }
  4330. case 29:
  4331. if wireType != 0 {
  4332. return fmt.Errorf("proto: wrong wireType = %d for field TotalActiveAnon", wireType)
  4333. }
  4334. m.TotalActiveAnon = 0
  4335. for shift := uint(0); ; shift += 7 {
  4336. if shift >= 64 {
  4337. return ErrIntOverflowMetrics
  4338. }
  4339. if iNdEx >= l {
  4340. return io.ErrUnexpectedEOF
  4341. }
  4342. b := dAtA[iNdEx]
  4343. iNdEx++
  4344. m.TotalActiveAnon |= uint64(b&0x7F) << shift
  4345. if b < 0x80 {
  4346. break
  4347. }
  4348. }
  4349. case 30:
  4350. if wireType != 0 {
  4351. return fmt.Errorf("proto: wrong wireType = %d for field TotalInactiveFile", wireType)
  4352. }
  4353. m.TotalInactiveFile = 0
  4354. for shift := uint(0); ; shift += 7 {
  4355. if shift >= 64 {
  4356. return ErrIntOverflowMetrics
  4357. }
  4358. if iNdEx >= l {
  4359. return io.ErrUnexpectedEOF
  4360. }
  4361. b := dAtA[iNdEx]
  4362. iNdEx++
  4363. m.TotalInactiveFile |= uint64(b&0x7F) << shift
  4364. if b < 0x80 {
  4365. break
  4366. }
  4367. }
  4368. case 31:
  4369. if wireType != 0 {
  4370. return fmt.Errorf("proto: wrong wireType = %d for field TotalActiveFile", wireType)
  4371. }
  4372. m.TotalActiveFile = 0
  4373. for shift := uint(0); ; shift += 7 {
  4374. if shift >= 64 {
  4375. return ErrIntOverflowMetrics
  4376. }
  4377. if iNdEx >= l {
  4378. return io.ErrUnexpectedEOF
  4379. }
  4380. b := dAtA[iNdEx]
  4381. iNdEx++
  4382. m.TotalActiveFile |= uint64(b&0x7F) << shift
  4383. if b < 0x80 {
  4384. break
  4385. }
  4386. }
  4387. case 32:
  4388. if wireType != 0 {
  4389. return fmt.Errorf("proto: wrong wireType = %d for field TotalUnevictable", wireType)
  4390. }
  4391. m.TotalUnevictable = 0
  4392. for shift := uint(0); ; shift += 7 {
  4393. if shift >= 64 {
  4394. return ErrIntOverflowMetrics
  4395. }
  4396. if iNdEx >= l {
  4397. return io.ErrUnexpectedEOF
  4398. }
  4399. b := dAtA[iNdEx]
  4400. iNdEx++
  4401. m.TotalUnevictable |= uint64(b&0x7F) << shift
  4402. if b < 0x80 {
  4403. break
  4404. }
  4405. }
  4406. case 33:
  4407. if wireType != 2 {
  4408. return fmt.Errorf("proto: wrong wireType = %d for field Usage", wireType)
  4409. }
  4410. var msglen int
  4411. for shift := uint(0); ; shift += 7 {
  4412. if shift >= 64 {
  4413. return ErrIntOverflowMetrics
  4414. }
  4415. if iNdEx >= l {
  4416. return io.ErrUnexpectedEOF
  4417. }
  4418. b := dAtA[iNdEx]
  4419. iNdEx++
  4420. msglen |= int(b&0x7F) << shift
  4421. if b < 0x80 {
  4422. break
  4423. }
  4424. }
  4425. if msglen < 0 {
  4426. return ErrInvalidLengthMetrics
  4427. }
  4428. postIndex := iNdEx + msglen
  4429. if postIndex < 0 {
  4430. return ErrInvalidLengthMetrics
  4431. }
  4432. if postIndex > l {
  4433. return io.ErrUnexpectedEOF
  4434. }
  4435. if m.Usage == nil {
  4436. m.Usage = &MemoryEntry{}
  4437. }
  4438. if err := m.Usage.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4439. return err
  4440. }
  4441. iNdEx = postIndex
  4442. case 34:
  4443. if wireType != 2 {
  4444. return fmt.Errorf("proto: wrong wireType = %d for field Swap", wireType)
  4445. }
  4446. var msglen int
  4447. for shift := uint(0); ; shift += 7 {
  4448. if shift >= 64 {
  4449. return ErrIntOverflowMetrics
  4450. }
  4451. if iNdEx >= l {
  4452. return io.ErrUnexpectedEOF
  4453. }
  4454. b := dAtA[iNdEx]
  4455. iNdEx++
  4456. msglen |= int(b&0x7F) << shift
  4457. if b < 0x80 {
  4458. break
  4459. }
  4460. }
  4461. if msglen < 0 {
  4462. return ErrInvalidLengthMetrics
  4463. }
  4464. postIndex := iNdEx + msglen
  4465. if postIndex < 0 {
  4466. return ErrInvalidLengthMetrics
  4467. }
  4468. if postIndex > l {
  4469. return io.ErrUnexpectedEOF
  4470. }
  4471. if m.Swap == nil {
  4472. m.Swap = &MemoryEntry{}
  4473. }
  4474. if err := m.Swap.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4475. return err
  4476. }
  4477. iNdEx = postIndex
  4478. case 35:
  4479. if wireType != 2 {
  4480. return fmt.Errorf("proto: wrong wireType = %d for field Kernel", wireType)
  4481. }
  4482. var msglen int
  4483. for shift := uint(0); ; shift += 7 {
  4484. if shift >= 64 {
  4485. return ErrIntOverflowMetrics
  4486. }
  4487. if iNdEx >= l {
  4488. return io.ErrUnexpectedEOF
  4489. }
  4490. b := dAtA[iNdEx]
  4491. iNdEx++
  4492. msglen |= int(b&0x7F) << shift
  4493. if b < 0x80 {
  4494. break
  4495. }
  4496. }
  4497. if msglen < 0 {
  4498. return ErrInvalidLengthMetrics
  4499. }
  4500. postIndex := iNdEx + msglen
  4501. if postIndex < 0 {
  4502. return ErrInvalidLengthMetrics
  4503. }
  4504. if postIndex > l {
  4505. return io.ErrUnexpectedEOF
  4506. }
  4507. if m.Kernel == nil {
  4508. m.Kernel = &MemoryEntry{}
  4509. }
  4510. if err := m.Kernel.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4511. return err
  4512. }
  4513. iNdEx = postIndex
  4514. case 36:
  4515. if wireType != 2 {
  4516. return fmt.Errorf("proto: wrong wireType = %d for field KernelTCP", wireType)
  4517. }
  4518. var msglen int
  4519. for shift := uint(0); ; shift += 7 {
  4520. if shift >= 64 {
  4521. return ErrIntOverflowMetrics
  4522. }
  4523. if iNdEx >= l {
  4524. return io.ErrUnexpectedEOF
  4525. }
  4526. b := dAtA[iNdEx]
  4527. iNdEx++
  4528. msglen |= int(b&0x7F) << shift
  4529. if b < 0x80 {
  4530. break
  4531. }
  4532. }
  4533. if msglen < 0 {
  4534. return ErrInvalidLengthMetrics
  4535. }
  4536. postIndex := iNdEx + msglen
  4537. if postIndex < 0 {
  4538. return ErrInvalidLengthMetrics
  4539. }
  4540. if postIndex > l {
  4541. return io.ErrUnexpectedEOF
  4542. }
  4543. if m.KernelTCP == nil {
  4544. m.KernelTCP = &MemoryEntry{}
  4545. }
  4546. if err := m.KernelTCP.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4547. return err
  4548. }
  4549. iNdEx = postIndex
  4550. default:
  4551. iNdEx = preIndex
  4552. skippy, err := skipMetrics(dAtA[iNdEx:])
  4553. if err != nil {
  4554. return err
  4555. }
  4556. if (skippy < 0) || (iNdEx+skippy) < 0 {
  4557. return ErrInvalidLengthMetrics
  4558. }
  4559. if (iNdEx + skippy) > l {
  4560. return io.ErrUnexpectedEOF
  4561. }
  4562. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  4563. iNdEx += skippy
  4564. }
  4565. }
  4566. if iNdEx > l {
  4567. return io.ErrUnexpectedEOF
  4568. }
  4569. return nil
  4570. }
  4571. func (m *MemoryEntry) Unmarshal(dAtA []byte) error {
  4572. l := len(dAtA)
  4573. iNdEx := 0
  4574. for iNdEx < l {
  4575. preIndex := iNdEx
  4576. var wire uint64
  4577. for shift := uint(0); ; shift += 7 {
  4578. if shift >= 64 {
  4579. return ErrIntOverflowMetrics
  4580. }
  4581. if iNdEx >= l {
  4582. return io.ErrUnexpectedEOF
  4583. }
  4584. b := dAtA[iNdEx]
  4585. iNdEx++
  4586. wire |= uint64(b&0x7F) << shift
  4587. if b < 0x80 {
  4588. break
  4589. }
  4590. }
  4591. fieldNum := int32(wire >> 3)
  4592. wireType := int(wire & 0x7)
  4593. if wireType == 4 {
  4594. return fmt.Errorf("proto: MemoryEntry: wiretype end group for non-group")
  4595. }
  4596. if fieldNum <= 0 {
  4597. return fmt.Errorf("proto: MemoryEntry: illegal tag %d (wire type %d)", fieldNum, wire)
  4598. }
  4599. switch fieldNum {
  4600. case 1:
  4601. if wireType != 0 {
  4602. return fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType)
  4603. }
  4604. m.Limit = 0
  4605. for shift := uint(0); ; shift += 7 {
  4606. if shift >= 64 {
  4607. return ErrIntOverflowMetrics
  4608. }
  4609. if iNdEx >= l {
  4610. return io.ErrUnexpectedEOF
  4611. }
  4612. b := dAtA[iNdEx]
  4613. iNdEx++
  4614. m.Limit |= uint64(b&0x7F) << shift
  4615. if b < 0x80 {
  4616. break
  4617. }
  4618. }
  4619. case 2:
  4620. if wireType != 0 {
  4621. return fmt.Errorf("proto: wrong wireType = %d for field Usage", wireType)
  4622. }
  4623. m.Usage = 0
  4624. for shift := uint(0); ; shift += 7 {
  4625. if shift >= 64 {
  4626. return ErrIntOverflowMetrics
  4627. }
  4628. if iNdEx >= l {
  4629. return io.ErrUnexpectedEOF
  4630. }
  4631. b := dAtA[iNdEx]
  4632. iNdEx++
  4633. m.Usage |= uint64(b&0x7F) << shift
  4634. if b < 0x80 {
  4635. break
  4636. }
  4637. }
  4638. case 3:
  4639. if wireType != 0 {
  4640. return fmt.Errorf("proto: wrong wireType = %d for field Max", wireType)
  4641. }
  4642. m.Max = 0
  4643. for shift := uint(0); ; shift += 7 {
  4644. if shift >= 64 {
  4645. return ErrIntOverflowMetrics
  4646. }
  4647. if iNdEx >= l {
  4648. return io.ErrUnexpectedEOF
  4649. }
  4650. b := dAtA[iNdEx]
  4651. iNdEx++
  4652. m.Max |= uint64(b&0x7F) << shift
  4653. if b < 0x80 {
  4654. break
  4655. }
  4656. }
  4657. case 4:
  4658. if wireType != 0 {
  4659. return fmt.Errorf("proto: wrong wireType = %d for field Failcnt", wireType)
  4660. }
  4661. m.Failcnt = 0
  4662. for shift := uint(0); ; shift += 7 {
  4663. if shift >= 64 {
  4664. return ErrIntOverflowMetrics
  4665. }
  4666. if iNdEx >= l {
  4667. return io.ErrUnexpectedEOF
  4668. }
  4669. b := dAtA[iNdEx]
  4670. iNdEx++
  4671. m.Failcnt |= uint64(b&0x7F) << shift
  4672. if b < 0x80 {
  4673. break
  4674. }
  4675. }
  4676. default:
  4677. iNdEx = preIndex
  4678. skippy, err := skipMetrics(dAtA[iNdEx:])
  4679. if err != nil {
  4680. return err
  4681. }
  4682. if (skippy < 0) || (iNdEx+skippy) < 0 {
  4683. return ErrInvalidLengthMetrics
  4684. }
  4685. if (iNdEx + skippy) > l {
  4686. return io.ErrUnexpectedEOF
  4687. }
  4688. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  4689. iNdEx += skippy
  4690. }
  4691. }
  4692. if iNdEx > l {
  4693. return io.ErrUnexpectedEOF
  4694. }
  4695. return nil
  4696. }
  4697. func (m *MemoryOomControl) Unmarshal(dAtA []byte) error {
  4698. l := len(dAtA)
  4699. iNdEx := 0
  4700. for iNdEx < l {
  4701. preIndex := iNdEx
  4702. var wire uint64
  4703. for shift := uint(0); ; shift += 7 {
  4704. if shift >= 64 {
  4705. return ErrIntOverflowMetrics
  4706. }
  4707. if iNdEx >= l {
  4708. return io.ErrUnexpectedEOF
  4709. }
  4710. b := dAtA[iNdEx]
  4711. iNdEx++
  4712. wire |= uint64(b&0x7F) << shift
  4713. if b < 0x80 {
  4714. break
  4715. }
  4716. }
  4717. fieldNum := int32(wire >> 3)
  4718. wireType := int(wire & 0x7)
  4719. if wireType == 4 {
  4720. return fmt.Errorf("proto: MemoryOomControl: wiretype end group for non-group")
  4721. }
  4722. if fieldNum <= 0 {
  4723. return fmt.Errorf("proto: MemoryOomControl: illegal tag %d (wire type %d)", fieldNum, wire)
  4724. }
  4725. switch fieldNum {
  4726. case 1:
  4727. if wireType != 0 {
  4728. return fmt.Errorf("proto: wrong wireType = %d for field OomKillDisable", wireType)
  4729. }
  4730. m.OomKillDisable = 0
  4731. for shift := uint(0); ; shift += 7 {
  4732. if shift >= 64 {
  4733. return ErrIntOverflowMetrics
  4734. }
  4735. if iNdEx >= l {
  4736. return io.ErrUnexpectedEOF
  4737. }
  4738. b := dAtA[iNdEx]
  4739. iNdEx++
  4740. m.OomKillDisable |= uint64(b&0x7F) << shift
  4741. if b < 0x80 {
  4742. break
  4743. }
  4744. }
  4745. case 2:
  4746. if wireType != 0 {
  4747. return fmt.Errorf("proto: wrong wireType = %d for field UnderOom", wireType)
  4748. }
  4749. m.UnderOom = 0
  4750. for shift := uint(0); ; shift += 7 {
  4751. if shift >= 64 {
  4752. return ErrIntOverflowMetrics
  4753. }
  4754. if iNdEx >= l {
  4755. return io.ErrUnexpectedEOF
  4756. }
  4757. b := dAtA[iNdEx]
  4758. iNdEx++
  4759. m.UnderOom |= uint64(b&0x7F) << shift
  4760. if b < 0x80 {
  4761. break
  4762. }
  4763. }
  4764. case 3:
  4765. if wireType != 0 {
  4766. return fmt.Errorf("proto: wrong wireType = %d for field OomKill", wireType)
  4767. }
  4768. m.OomKill = 0
  4769. for shift := uint(0); ; shift += 7 {
  4770. if shift >= 64 {
  4771. return ErrIntOverflowMetrics
  4772. }
  4773. if iNdEx >= l {
  4774. return io.ErrUnexpectedEOF
  4775. }
  4776. b := dAtA[iNdEx]
  4777. iNdEx++
  4778. m.OomKill |= uint64(b&0x7F) << shift
  4779. if b < 0x80 {
  4780. break
  4781. }
  4782. }
  4783. default:
  4784. iNdEx = preIndex
  4785. skippy, err := skipMetrics(dAtA[iNdEx:])
  4786. if err != nil {
  4787. return err
  4788. }
  4789. if (skippy < 0) || (iNdEx+skippy) < 0 {
  4790. return ErrInvalidLengthMetrics
  4791. }
  4792. if (iNdEx + skippy) > l {
  4793. return io.ErrUnexpectedEOF
  4794. }
  4795. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  4796. iNdEx += skippy
  4797. }
  4798. }
  4799. if iNdEx > l {
  4800. return io.ErrUnexpectedEOF
  4801. }
  4802. return nil
  4803. }
  4804. func (m *BlkIOStat) Unmarshal(dAtA []byte) error {
  4805. l := len(dAtA)
  4806. iNdEx := 0
  4807. for iNdEx < l {
  4808. preIndex := iNdEx
  4809. var wire uint64
  4810. for shift := uint(0); ; shift += 7 {
  4811. if shift >= 64 {
  4812. return ErrIntOverflowMetrics
  4813. }
  4814. if iNdEx >= l {
  4815. return io.ErrUnexpectedEOF
  4816. }
  4817. b := dAtA[iNdEx]
  4818. iNdEx++
  4819. wire |= uint64(b&0x7F) << shift
  4820. if b < 0x80 {
  4821. break
  4822. }
  4823. }
  4824. fieldNum := int32(wire >> 3)
  4825. wireType := int(wire & 0x7)
  4826. if wireType == 4 {
  4827. return fmt.Errorf("proto: BlkIOStat: wiretype end group for non-group")
  4828. }
  4829. if fieldNum <= 0 {
  4830. return fmt.Errorf("proto: BlkIOStat: illegal tag %d (wire type %d)", fieldNum, wire)
  4831. }
  4832. switch fieldNum {
  4833. case 1:
  4834. if wireType != 2 {
  4835. return fmt.Errorf("proto: wrong wireType = %d for field IoServiceBytesRecursive", wireType)
  4836. }
  4837. var msglen int
  4838. for shift := uint(0); ; shift += 7 {
  4839. if shift >= 64 {
  4840. return ErrIntOverflowMetrics
  4841. }
  4842. if iNdEx >= l {
  4843. return io.ErrUnexpectedEOF
  4844. }
  4845. b := dAtA[iNdEx]
  4846. iNdEx++
  4847. msglen |= int(b&0x7F) << shift
  4848. if b < 0x80 {
  4849. break
  4850. }
  4851. }
  4852. if msglen < 0 {
  4853. return ErrInvalidLengthMetrics
  4854. }
  4855. postIndex := iNdEx + msglen
  4856. if postIndex < 0 {
  4857. return ErrInvalidLengthMetrics
  4858. }
  4859. if postIndex > l {
  4860. return io.ErrUnexpectedEOF
  4861. }
  4862. m.IoServiceBytesRecursive = append(m.IoServiceBytesRecursive, &BlkIOEntry{})
  4863. if err := m.IoServiceBytesRecursive[len(m.IoServiceBytesRecursive)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4864. return err
  4865. }
  4866. iNdEx = postIndex
  4867. case 2:
  4868. if wireType != 2 {
  4869. return fmt.Errorf("proto: wrong wireType = %d for field IoServicedRecursive", wireType)
  4870. }
  4871. var msglen int
  4872. for shift := uint(0); ; shift += 7 {
  4873. if shift >= 64 {
  4874. return ErrIntOverflowMetrics
  4875. }
  4876. if iNdEx >= l {
  4877. return io.ErrUnexpectedEOF
  4878. }
  4879. b := dAtA[iNdEx]
  4880. iNdEx++
  4881. msglen |= int(b&0x7F) << shift
  4882. if b < 0x80 {
  4883. break
  4884. }
  4885. }
  4886. if msglen < 0 {
  4887. return ErrInvalidLengthMetrics
  4888. }
  4889. postIndex := iNdEx + msglen
  4890. if postIndex < 0 {
  4891. return ErrInvalidLengthMetrics
  4892. }
  4893. if postIndex > l {
  4894. return io.ErrUnexpectedEOF
  4895. }
  4896. m.IoServicedRecursive = append(m.IoServicedRecursive, &BlkIOEntry{})
  4897. if err := m.IoServicedRecursive[len(m.IoServicedRecursive)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4898. return err
  4899. }
  4900. iNdEx = postIndex
  4901. case 3:
  4902. if wireType != 2 {
  4903. return fmt.Errorf("proto: wrong wireType = %d for field IoQueuedRecursive", wireType)
  4904. }
  4905. var msglen int
  4906. for shift := uint(0); ; shift += 7 {
  4907. if shift >= 64 {
  4908. return ErrIntOverflowMetrics
  4909. }
  4910. if iNdEx >= l {
  4911. return io.ErrUnexpectedEOF
  4912. }
  4913. b := dAtA[iNdEx]
  4914. iNdEx++
  4915. msglen |= int(b&0x7F) << shift
  4916. if b < 0x80 {
  4917. break
  4918. }
  4919. }
  4920. if msglen < 0 {
  4921. return ErrInvalidLengthMetrics
  4922. }
  4923. postIndex := iNdEx + msglen
  4924. if postIndex < 0 {
  4925. return ErrInvalidLengthMetrics
  4926. }
  4927. if postIndex > l {
  4928. return io.ErrUnexpectedEOF
  4929. }
  4930. m.IoQueuedRecursive = append(m.IoQueuedRecursive, &BlkIOEntry{})
  4931. if err := m.IoQueuedRecursive[len(m.IoQueuedRecursive)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4932. return err
  4933. }
  4934. iNdEx = postIndex
  4935. case 4:
  4936. if wireType != 2 {
  4937. return fmt.Errorf("proto: wrong wireType = %d for field IoServiceTimeRecursive", wireType)
  4938. }
  4939. var msglen int
  4940. for shift := uint(0); ; shift += 7 {
  4941. if shift >= 64 {
  4942. return ErrIntOverflowMetrics
  4943. }
  4944. if iNdEx >= l {
  4945. return io.ErrUnexpectedEOF
  4946. }
  4947. b := dAtA[iNdEx]
  4948. iNdEx++
  4949. msglen |= int(b&0x7F) << shift
  4950. if b < 0x80 {
  4951. break
  4952. }
  4953. }
  4954. if msglen < 0 {
  4955. return ErrInvalidLengthMetrics
  4956. }
  4957. postIndex := iNdEx + msglen
  4958. if postIndex < 0 {
  4959. return ErrInvalidLengthMetrics
  4960. }
  4961. if postIndex > l {
  4962. return io.ErrUnexpectedEOF
  4963. }
  4964. m.IoServiceTimeRecursive = append(m.IoServiceTimeRecursive, &BlkIOEntry{})
  4965. if err := m.IoServiceTimeRecursive[len(m.IoServiceTimeRecursive)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4966. return err
  4967. }
  4968. iNdEx = postIndex
  4969. case 5:
  4970. if wireType != 2 {
  4971. return fmt.Errorf("proto: wrong wireType = %d for field IoWaitTimeRecursive", wireType)
  4972. }
  4973. var msglen int
  4974. for shift := uint(0); ; shift += 7 {
  4975. if shift >= 64 {
  4976. return ErrIntOverflowMetrics
  4977. }
  4978. if iNdEx >= l {
  4979. return io.ErrUnexpectedEOF
  4980. }
  4981. b := dAtA[iNdEx]
  4982. iNdEx++
  4983. msglen |= int(b&0x7F) << shift
  4984. if b < 0x80 {
  4985. break
  4986. }
  4987. }
  4988. if msglen < 0 {
  4989. return ErrInvalidLengthMetrics
  4990. }
  4991. postIndex := iNdEx + msglen
  4992. if postIndex < 0 {
  4993. return ErrInvalidLengthMetrics
  4994. }
  4995. if postIndex > l {
  4996. return io.ErrUnexpectedEOF
  4997. }
  4998. m.IoWaitTimeRecursive = append(m.IoWaitTimeRecursive, &BlkIOEntry{})
  4999. if err := m.IoWaitTimeRecursive[len(m.IoWaitTimeRecursive)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5000. return err
  5001. }
  5002. iNdEx = postIndex
  5003. case 6:
  5004. if wireType != 2 {
  5005. return fmt.Errorf("proto: wrong wireType = %d for field IoMergedRecursive", wireType)
  5006. }
  5007. var msglen int
  5008. for shift := uint(0); ; shift += 7 {
  5009. if shift >= 64 {
  5010. return ErrIntOverflowMetrics
  5011. }
  5012. if iNdEx >= l {
  5013. return io.ErrUnexpectedEOF
  5014. }
  5015. b := dAtA[iNdEx]
  5016. iNdEx++
  5017. msglen |= int(b&0x7F) << shift
  5018. if b < 0x80 {
  5019. break
  5020. }
  5021. }
  5022. if msglen < 0 {
  5023. return ErrInvalidLengthMetrics
  5024. }
  5025. postIndex := iNdEx + msglen
  5026. if postIndex < 0 {
  5027. return ErrInvalidLengthMetrics
  5028. }
  5029. if postIndex > l {
  5030. return io.ErrUnexpectedEOF
  5031. }
  5032. m.IoMergedRecursive = append(m.IoMergedRecursive, &BlkIOEntry{})
  5033. if err := m.IoMergedRecursive[len(m.IoMergedRecursive)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5034. return err
  5035. }
  5036. iNdEx = postIndex
  5037. case 7:
  5038. if wireType != 2 {
  5039. return fmt.Errorf("proto: wrong wireType = %d for field IoTimeRecursive", wireType)
  5040. }
  5041. var msglen int
  5042. for shift := uint(0); ; shift += 7 {
  5043. if shift >= 64 {
  5044. return ErrIntOverflowMetrics
  5045. }
  5046. if iNdEx >= l {
  5047. return io.ErrUnexpectedEOF
  5048. }
  5049. b := dAtA[iNdEx]
  5050. iNdEx++
  5051. msglen |= int(b&0x7F) << shift
  5052. if b < 0x80 {
  5053. break
  5054. }
  5055. }
  5056. if msglen < 0 {
  5057. return ErrInvalidLengthMetrics
  5058. }
  5059. postIndex := iNdEx + msglen
  5060. if postIndex < 0 {
  5061. return ErrInvalidLengthMetrics
  5062. }
  5063. if postIndex > l {
  5064. return io.ErrUnexpectedEOF
  5065. }
  5066. m.IoTimeRecursive = append(m.IoTimeRecursive, &BlkIOEntry{})
  5067. if err := m.IoTimeRecursive[len(m.IoTimeRecursive)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5068. return err
  5069. }
  5070. iNdEx = postIndex
  5071. case 8:
  5072. if wireType != 2 {
  5073. return fmt.Errorf("proto: wrong wireType = %d for field SectorsRecursive", wireType)
  5074. }
  5075. var msglen int
  5076. for shift := uint(0); ; shift += 7 {
  5077. if shift >= 64 {
  5078. return ErrIntOverflowMetrics
  5079. }
  5080. if iNdEx >= l {
  5081. return io.ErrUnexpectedEOF
  5082. }
  5083. b := dAtA[iNdEx]
  5084. iNdEx++
  5085. msglen |= int(b&0x7F) << shift
  5086. if b < 0x80 {
  5087. break
  5088. }
  5089. }
  5090. if msglen < 0 {
  5091. return ErrInvalidLengthMetrics
  5092. }
  5093. postIndex := iNdEx + msglen
  5094. if postIndex < 0 {
  5095. return ErrInvalidLengthMetrics
  5096. }
  5097. if postIndex > l {
  5098. return io.ErrUnexpectedEOF
  5099. }
  5100. m.SectorsRecursive = append(m.SectorsRecursive, &BlkIOEntry{})
  5101. if err := m.SectorsRecursive[len(m.SectorsRecursive)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5102. return err
  5103. }
  5104. iNdEx = postIndex
  5105. default:
  5106. iNdEx = preIndex
  5107. skippy, err := skipMetrics(dAtA[iNdEx:])
  5108. if err != nil {
  5109. return err
  5110. }
  5111. if (skippy < 0) || (iNdEx+skippy) < 0 {
  5112. return ErrInvalidLengthMetrics
  5113. }
  5114. if (iNdEx + skippy) > l {
  5115. return io.ErrUnexpectedEOF
  5116. }
  5117. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  5118. iNdEx += skippy
  5119. }
  5120. }
  5121. if iNdEx > l {
  5122. return io.ErrUnexpectedEOF
  5123. }
  5124. return nil
  5125. }
  5126. func (m *BlkIOEntry) Unmarshal(dAtA []byte) error {
  5127. l := len(dAtA)
  5128. iNdEx := 0
  5129. for iNdEx < l {
  5130. preIndex := iNdEx
  5131. var wire uint64
  5132. for shift := uint(0); ; shift += 7 {
  5133. if shift >= 64 {
  5134. return ErrIntOverflowMetrics
  5135. }
  5136. if iNdEx >= l {
  5137. return io.ErrUnexpectedEOF
  5138. }
  5139. b := dAtA[iNdEx]
  5140. iNdEx++
  5141. wire |= uint64(b&0x7F) << shift
  5142. if b < 0x80 {
  5143. break
  5144. }
  5145. }
  5146. fieldNum := int32(wire >> 3)
  5147. wireType := int(wire & 0x7)
  5148. if wireType == 4 {
  5149. return fmt.Errorf("proto: BlkIOEntry: wiretype end group for non-group")
  5150. }
  5151. if fieldNum <= 0 {
  5152. return fmt.Errorf("proto: BlkIOEntry: illegal tag %d (wire type %d)", fieldNum, wire)
  5153. }
  5154. switch fieldNum {
  5155. case 1:
  5156. if wireType != 2 {
  5157. return fmt.Errorf("proto: wrong wireType = %d for field Op", wireType)
  5158. }
  5159. var stringLen uint64
  5160. for shift := uint(0); ; shift += 7 {
  5161. if shift >= 64 {
  5162. return ErrIntOverflowMetrics
  5163. }
  5164. if iNdEx >= l {
  5165. return io.ErrUnexpectedEOF
  5166. }
  5167. b := dAtA[iNdEx]
  5168. iNdEx++
  5169. stringLen |= uint64(b&0x7F) << shift
  5170. if b < 0x80 {
  5171. break
  5172. }
  5173. }
  5174. intStringLen := int(stringLen)
  5175. if intStringLen < 0 {
  5176. return ErrInvalidLengthMetrics
  5177. }
  5178. postIndex := iNdEx + intStringLen
  5179. if postIndex < 0 {
  5180. return ErrInvalidLengthMetrics
  5181. }
  5182. if postIndex > l {
  5183. return io.ErrUnexpectedEOF
  5184. }
  5185. m.Op = string(dAtA[iNdEx:postIndex])
  5186. iNdEx = postIndex
  5187. case 2:
  5188. if wireType != 2 {
  5189. return fmt.Errorf("proto: wrong wireType = %d for field Device", wireType)
  5190. }
  5191. var stringLen uint64
  5192. for shift := uint(0); ; shift += 7 {
  5193. if shift >= 64 {
  5194. return ErrIntOverflowMetrics
  5195. }
  5196. if iNdEx >= l {
  5197. return io.ErrUnexpectedEOF
  5198. }
  5199. b := dAtA[iNdEx]
  5200. iNdEx++
  5201. stringLen |= uint64(b&0x7F) << shift
  5202. if b < 0x80 {
  5203. break
  5204. }
  5205. }
  5206. intStringLen := int(stringLen)
  5207. if intStringLen < 0 {
  5208. return ErrInvalidLengthMetrics
  5209. }
  5210. postIndex := iNdEx + intStringLen
  5211. if postIndex < 0 {
  5212. return ErrInvalidLengthMetrics
  5213. }
  5214. if postIndex > l {
  5215. return io.ErrUnexpectedEOF
  5216. }
  5217. m.Device = string(dAtA[iNdEx:postIndex])
  5218. iNdEx = postIndex
  5219. case 3:
  5220. if wireType != 0 {
  5221. return fmt.Errorf("proto: wrong wireType = %d for field Major", wireType)
  5222. }
  5223. m.Major = 0
  5224. for shift := uint(0); ; shift += 7 {
  5225. if shift >= 64 {
  5226. return ErrIntOverflowMetrics
  5227. }
  5228. if iNdEx >= l {
  5229. return io.ErrUnexpectedEOF
  5230. }
  5231. b := dAtA[iNdEx]
  5232. iNdEx++
  5233. m.Major |= uint64(b&0x7F) << shift
  5234. if b < 0x80 {
  5235. break
  5236. }
  5237. }
  5238. case 4:
  5239. if wireType != 0 {
  5240. return fmt.Errorf("proto: wrong wireType = %d for field Minor", wireType)
  5241. }
  5242. m.Minor = 0
  5243. for shift := uint(0); ; shift += 7 {
  5244. if shift >= 64 {
  5245. return ErrIntOverflowMetrics
  5246. }
  5247. if iNdEx >= l {
  5248. return io.ErrUnexpectedEOF
  5249. }
  5250. b := dAtA[iNdEx]
  5251. iNdEx++
  5252. m.Minor |= uint64(b&0x7F) << shift
  5253. if b < 0x80 {
  5254. break
  5255. }
  5256. }
  5257. case 5:
  5258. if wireType != 0 {
  5259. return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType)
  5260. }
  5261. m.Value = 0
  5262. for shift := uint(0); ; shift += 7 {
  5263. if shift >= 64 {
  5264. return ErrIntOverflowMetrics
  5265. }
  5266. if iNdEx >= l {
  5267. return io.ErrUnexpectedEOF
  5268. }
  5269. b := dAtA[iNdEx]
  5270. iNdEx++
  5271. m.Value |= uint64(b&0x7F) << shift
  5272. if b < 0x80 {
  5273. break
  5274. }
  5275. }
  5276. default:
  5277. iNdEx = preIndex
  5278. skippy, err := skipMetrics(dAtA[iNdEx:])
  5279. if err != nil {
  5280. return err
  5281. }
  5282. if (skippy < 0) || (iNdEx+skippy) < 0 {
  5283. return ErrInvalidLengthMetrics
  5284. }
  5285. if (iNdEx + skippy) > l {
  5286. return io.ErrUnexpectedEOF
  5287. }
  5288. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  5289. iNdEx += skippy
  5290. }
  5291. }
  5292. if iNdEx > l {
  5293. return io.ErrUnexpectedEOF
  5294. }
  5295. return nil
  5296. }
  5297. func (m *RdmaStat) Unmarshal(dAtA []byte) error {
  5298. l := len(dAtA)
  5299. iNdEx := 0
  5300. for iNdEx < l {
  5301. preIndex := iNdEx
  5302. var wire uint64
  5303. for shift := uint(0); ; shift += 7 {
  5304. if shift >= 64 {
  5305. return ErrIntOverflowMetrics
  5306. }
  5307. if iNdEx >= l {
  5308. return io.ErrUnexpectedEOF
  5309. }
  5310. b := dAtA[iNdEx]
  5311. iNdEx++
  5312. wire |= uint64(b&0x7F) << shift
  5313. if b < 0x80 {
  5314. break
  5315. }
  5316. }
  5317. fieldNum := int32(wire >> 3)
  5318. wireType := int(wire & 0x7)
  5319. if wireType == 4 {
  5320. return fmt.Errorf("proto: RdmaStat: wiretype end group for non-group")
  5321. }
  5322. if fieldNum <= 0 {
  5323. return fmt.Errorf("proto: RdmaStat: illegal tag %d (wire type %d)", fieldNum, wire)
  5324. }
  5325. switch fieldNum {
  5326. case 1:
  5327. if wireType != 2 {
  5328. return fmt.Errorf("proto: wrong wireType = %d for field Current", wireType)
  5329. }
  5330. var msglen int
  5331. for shift := uint(0); ; shift += 7 {
  5332. if shift >= 64 {
  5333. return ErrIntOverflowMetrics
  5334. }
  5335. if iNdEx >= l {
  5336. return io.ErrUnexpectedEOF
  5337. }
  5338. b := dAtA[iNdEx]
  5339. iNdEx++
  5340. msglen |= int(b&0x7F) << shift
  5341. if b < 0x80 {
  5342. break
  5343. }
  5344. }
  5345. if msglen < 0 {
  5346. return ErrInvalidLengthMetrics
  5347. }
  5348. postIndex := iNdEx + msglen
  5349. if postIndex < 0 {
  5350. return ErrInvalidLengthMetrics
  5351. }
  5352. if postIndex > l {
  5353. return io.ErrUnexpectedEOF
  5354. }
  5355. m.Current = append(m.Current, &RdmaEntry{})
  5356. if err := m.Current[len(m.Current)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5357. return err
  5358. }
  5359. iNdEx = postIndex
  5360. case 2:
  5361. if wireType != 2 {
  5362. return fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType)
  5363. }
  5364. var msglen int
  5365. for shift := uint(0); ; shift += 7 {
  5366. if shift >= 64 {
  5367. return ErrIntOverflowMetrics
  5368. }
  5369. if iNdEx >= l {
  5370. return io.ErrUnexpectedEOF
  5371. }
  5372. b := dAtA[iNdEx]
  5373. iNdEx++
  5374. msglen |= int(b&0x7F) << shift
  5375. if b < 0x80 {
  5376. break
  5377. }
  5378. }
  5379. if msglen < 0 {
  5380. return ErrInvalidLengthMetrics
  5381. }
  5382. postIndex := iNdEx + msglen
  5383. if postIndex < 0 {
  5384. return ErrInvalidLengthMetrics
  5385. }
  5386. if postIndex > l {
  5387. return io.ErrUnexpectedEOF
  5388. }
  5389. m.Limit = append(m.Limit, &RdmaEntry{})
  5390. if err := m.Limit[len(m.Limit)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5391. return err
  5392. }
  5393. iNdEx = postIndex
  5394. default:
  5395. iNdEx = preIndex
  5396. skippy, err := skipMetrics(dAtA[iNdEx:])
  5397. if err != nil {
  5398. return err
  5399. }
  5400. if (skippy < 0) || (iNdEx+skippy) < 0 {
  5401. return ErrInvalidLengthMetrics
  5402. }
  5403. if (iNdEx + skippy) > l {
  5404. return io.ErrUnexpectedEOF
  5405. }
  5406. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  5407. iNdEx += skippy
  5408. }
  5409. }
  5410. if iNdEx > l {
  5411. return io.ErrUnexpectedEOF
  5412. }
  5413. return nil
  5414. }
  5415. func (m *RdmaEntry) Unmarshal(dAtA []byte) error {
  5416. l := len(dAtA)
  5417. iNdEx := 0
  5418. for iNdEx < l {
  5419. preIndex := iNdEx
  5420. var wire uint64
  5421. for shift := uint(0); ; shift += 7 {
  5422. if shift >= 64 {
  5423. return ErrIntOverflowMetrics
  5424. }
  5425. if iNdEx >= l {
  5426. return io.ErrUnexpectedEOF
  5427. }
  5428. b := dAtA[iNdEx]
  5429. iNdEx++
  5430. wire |= uint64(b&0x7F) << shift
  5431. if b < 0x80 {
  5432. break
  5433. }
  5434. }
  5435. fieldNum := int32(wire >> 3)
  5436. wireType := int(wire & 0x7)
  5437. if wireType == 4 {
  5438. return fmt.Errorf("proto: RdmaEntry: wiretype end group for non-group")
  5439. }
  5440. if fieldNum <= 0 {
  5441. return fmt.Errorf("proto: RdmaEntry: illegal tag %d (wire type %d)", fieldNum, wire)
  5442. }
  5443. switch fieldNum {
  5444. case 1:
  5445. if wireType != 2 {
  5446. return fmt.Errorf("proto: wrong wireType = %d for field Device", wireType)
  5447. }
  5448. var stringLen uint64
  5449. for shift := uint(0); ; shift += 7 {
  5450. if shift >= 64 {
  5451. return ErrIntOverflowMetrics
  5452. }
  5453. if iNdEx >= l {
  5454. return io.ErrUnexpectedEOF
  5455. }
  5456. b := dAtA[iNdEx]
  5457. iNdEx++
  5458. stringLen |= uint64(b&0x7F) << shift
  5459. if b < 0x80 {
  5460. break
  5461. }
  5462. }
  5463. intStringLen := int(stringLen)
  5464. if intStringLen < 0 {
  5465. return ErrInvalidLengthMetrics
  5466. }
  5467. postIndex := iNdEx + intStringLen
  5468. if postIndex < 0 {
  5469. return ErrInvalidLengthMetrics
  5470. }
  5471. if postIndex > l {
  5472. return io.ErrUnexpectedEOF
  5473. }
  5474. m.Device = string(dAtA[iNdEx:postIndex])
  5475. iNdEx = postIndex
  5476. case 2:
  5477. if wireType != 0 {
  5478. return fmt.Errorf("proto: wrong wireType = %d for field HcaHandles", wireType)
  5479. }
  5480. m.HcaHandles = 0
  5481. for shift := uint(0); ; shift += 7 {
  5482. if shift >= 64 {
  5483. return ErrIntOverflowMetrics
  5484. }
  5485. if iNdEx >= l {
  5486. return io.ErrUnexpectedEOF
  5487. }
  5488. b := dAtA[iNdEx]
  5489. iNdEx++
  5490. m.HcaHandles |= uint32(b&0x7F) << shift
  5491. if b < 0x80 {
  5492. break
  5493. }
  5494. }
  5495. case 3:
  5496. if wireType != 0 {
  5497. return fmt.Errorf("proto: wrong wireType = %d for field HcaObjects", wireType)
  5498. }
  5499. m.HcaObjects = 0
  5500. for shift := uint(0); ; shift += 7 {
  5501. if shift >= 64 {
  5502. return ErrIntOverflowMetrics
  5503. }
  5504. if iNdEx >= l {
  5505. return io.ErrUnexpectedEOF
  5506. }
  5507. b := dAtA[iNdEx]
  5508. iNdEx++
  5509. m.HcaObjects |= uint32(b&0x7F) << shift
  5510. if b < 0x80 {
  5511. break
  5512. }
  5513. }
  5514. default:
  5515. iNdEx = preIndex
  5516. skippy, err := skipMetrics(dAtA[iNdEx:])
  5517. if err != nil {
  5518. return err
  5519. }
  5520. if (skippy < 0) || (iNdEx+skippy) < 0 {
  5521. return ErrInvalidLengthMetrics
  5522. }
  5523. if (iNdEx + skippy) > l {
  5524. return io.ErrUnexpectedEOF
  5525. }
  5526. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  5527. iNdEx += skippy
  5528. }
  5529. }
  5530. if iNdEx > l {
  5531. return io.ErrUnexpectedEOF
  5532. }
  5533. return nil
  5534. }
  5535. func (m *NetworkStat) Unmarshal(dAtA []byte) error {
  5536. l := len(dAtA)
  5537. iNdEx := 0
  5538. for iNdEx < l {
  5539. preIndex := iNdEx
  5540. var wire uint64
  5541. for shift := uint(0); ; shift += 7 {
  5542. if shift >= 64 {
  5543. return ErrIntOverflowMetrics
  5544. }
  5545. if iNdEx >= l {
  5546. return io.ErrUnexpectedEOF
  5547. }
  5548. b := dAtA[iNdEx]
  5549. iNdEx++
  5550. wire |= uint64(b&0x7F) << shift
  5551. if b < 0x80 {
  5552. break
  5553. }
  5554. }
  5555. fieldNum := int32(wire >> 3)
  5556. wireType := int(wire & 0x7)
  5557. if wireType == 4 {
  5558. return fmt.Errorf("proto: NetworkStat: wiretype end group for non-group")
  5559. }
  5560. if fieldNum <= 0 {
  5561. return fmt.Errorf("proto: NetworkStat: illegal tag %d (wire type %d)", fieldNum, wire)
  5562. }
  5563. switch fieldNum {
  5564. case 1:
  5565. if wireType != 2 {
  5566. return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  5567. }
  5568. var stringLen uint64
  5569. for shift := uint(0); ; shift += 7 {
  5570. if shift >= 64 {
  5571. return ErrIntOverflowMetrics
  5572. }
  5573. if iNdEx >= l {
  5574. return io.ErrUnexpectedEOF
  5575. }
  5576. b := dAtA[iNdEx]
  5577. iNdEx++
  5578. stringLen |= uint64(b&0x7F) << shift
  5579. if b < 0x80 {
  5580. break
  5581. }
  5582. }
  5583. intStringLen := int(stringLen)
  5584. if intStringLen < 0 {
  5585. return ErrInvalidLengthMetrics
  5586. }
  5587. postIndex := iNdEx + intStringLen
  5588. if postIndex < 0 {
  5589. return ErrInvalidLengthMetrics
  5590. }
  5591. if postIndex > l {
  5592. return io.ErrUnexpectedEOF
  5593. }
  5594. m.Name = string(dAtA[iNdEx:postIndex])
  5595. iNdEx = postIndex
  5596. case 2:
  5597. if wireType != 0 {
  5598. return fmt.Errorf("proto: wrong wireType = %d for field RxBytes", wireType)
  5599. }
  5600. m.RxBytes = 0
  5601. for shift := uint(0); ; shift += 7 {
  5602. if shift >= 64 {
  5603. return ErrIntOverflowMetrics
  5604. }
  5605. if iNdEx >= l {
  5606. return io.ErrUnexpectedEOF
  5607. }
  5608. b := dAtA[iNdEx]
  5609. iNdEx++
  5610. m.RxBytes |= uint64(b&0x7F) << shift
  5611. if b < 0x80 {
  5612. break
  5613. }
  5614. }
  5615. case 3:
  5616. if wireType != 0 {
  5617. return fmt.Errorf("proto: wrong wireType = %d for field RxPackets", wireType)
  5618. }
  5619. m.RxPackets = 0
  5620. for shift := uint(0); ; shift += 7 {
  5621. if shift >= 64 {
  5622. return ErrIntOverflowMetrics
  5623. }
  5624. if iNdEx >= l {
  5625. return io.ErrUnexpectedEOF
  5626. }
  5627. b := dAtA[iNdEx]
  5628. iNdEx++
  5629. m.RxPackets |= uint64(b&0x7F) << shift
  5630. if b < 0x80 {
  5631. break
  5632. }
  5633. }
  5634. case 4:
  5635. if wireType != 0 {
  5636. return fmt.Errorf("proto: wrong wireType = %d for field RxErrors", wireType)
  5637. }
  5638. m.RxErrors = 0
  5639. for shift := uint(0); ; shift += 7 {
  5640. if shift >= 64 {
  5641. return ErrIntOverflowMetrics
  5642. }
  5643. if iNdEx >= l {
  5644. return io.ErrUnexpectedEOF
  5645. }
  5646. b := dAtA[iNdEx]
  5647. iNdEx++
  5648. m.RxErrors |= uint64(b&0x7F) << shift
  5649. if b < 0x80 {
  5650. break
  5651. }
  5652. }
  5653. case 5:
  5654. if wireType != 0 {
  5655. return fmt.Errorf("proto: wrong wireType = %d for field RxDropped", wireType)
  5656. }
  5657. m.RxDropped = 0
  5658. for shift := uint(0); ; shift += 7 {
  5659. if shift >= 64 {
  5660. return ErrIntOverflowMetrics
  5661. }
  5662. if iNdEx >= l {
  5663. return io.ErrUnexpectedEOF
  5664. }
  5665. b := dAtA[iNdEx]
  5666. iNdEx++
  5667. m.RxDropped |= uint64(b&0x7F) << shift
  5668. if b < 0x80 {
  5669. break
  5670. }
  5671. }
  5672. case 6:
  5673. if wireType != 0 {
  5674. return fmt.Errorf("proto: wrong wireType = %d for field TxBytes", wireType)
  5675. }
  5676. m.TxBytes = 0
  5677. for shift := uint(0); ; shift += 7 {
  5678. if shift >= 64 {
  5679. return ErrIntOverflowMetrics
  5680. }
  5681. if iNdEx >= l {
  5682. return io.ErrUnexpectedEOF
  5683. }
  5684. b := dAtA[iNdEx]
  5685. iNdEx++
  5686. m.TxBytes |= uint64(b&0x7F) << shift
  5687. if b < 0x80 {
  5688. break
  5689. }
  5690. }
  5691. case 7:
  5692. if wireType != 0 {
  5693. return fmt.Errorf("proto: wrong wireType = %d for field TxPackets", wireType)
  5694. }
  5695. m.TxPackets = 0
  5696. for shift := uint(0); ; shift += 7 {
  5697. if shift >= 64 {
  5698. return ErrIntOverflowMetrics
  5699. }
  5700. if iNdEx >= l {
  5701. return io.ErrUnexpectedEOF
  5702. }
  5703. b := dAtA[iNdEx]
  5704. iNdEx++
  5705. m.TxPackets |= uint64(b&0x7F) << shift
  5706. if b < 0x80 {
  5707. break
  5708. }
  5709. }
  5710. case 8:
  5711. if wireType != 0 {
  5712. return fmt.Errorf("proto: wrong wireType = %d for field TxErrors", wireType)
  5713. }
  5714. m.TxErrors = 0
  5715. for shift := uint(0); ; shift += 7 {
  5716. if shift >= 64 {
  5717. return ErrIntOverflowMetrics
  5718. }
  5719. if iNdEx >= l {
  5720. return io.ErrUnexpectedEOF
  5721. }
  5722. b := dAtA[iNdEx]
  5723. iNdEx++
  5724. m.TxErrors |= uint64(b&0x7F) << shift
  5725. if b < 0x80 {
  5726. break
  5727. }
  5728. }
  5729. case 9:
  5730. if wireType != 0 {
  5731. return fmt.Errorf("proto: wrong wireType = %d for field TxDropped", wireType)
  5732. }
  5733. m.TxDropped = 0
  5734. for shift := uint(0); ; shift += 7 {
  5735. if shift >= 64 {
  5736. return ErrIntOverflowMetrics
  5737. }
  5738. if iNdEx >= l {
  5739. return io.ErrUnexpectedEOF
  5740. }
  5741. b := dAtA[iNdEx]
  5742. iNdEx++
  5743. m.TxDropped |= uint64(b&0x7F) << shift
  5744. if b < 0x80 {
  5745. break
  5746. }
  5747. }
  5748. default:
  5749. iNdEx = preIndex
  5750. skippy, err := skipMetrics(dAtA[iNdEx:])
  5751. if err != nil {
  5752. return err
  5753. }
  5754. if (skippy < 0) || (iNdEx+skippy) < 0 {
  5755. return ErrInvalidLengthMetrics
  5756. }
  5757. if (iNdEx + skippy) > l {
  5758. return io.ErrUnexpectedEOF
  5759. }
  5760. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  5761. iNdEx += skippy
  5762. }
  5763. }
  5764. if iNdEx > l {
  5765. return io.ErrUnexpectedEOF
  5766. }
  5767. return nil
  5768. }
  5769. func (m *CgroupStats) Unmarshal(dAtA []byte) error {
  5770. l := len(dAtA)
  5771. iNdEx := 0
  5772. for iNdEx < l {
  5773. preIndex := iNdEx
  5774. var wire uint64
  5775. for shift := uint(0); ; shift += 7 {
  5776. if shift >= 64 {
  5777. return ErrIntOverflowMetrics
  5778. }
  5779. if iNdEx >= l {
  5780. return io.ErrUnexpectedEOF
  5781. }
  5782. b := dAtA[iNdEx]
  5783. iNdEx++
  5784. wire |= uint64(b&0x7F) << shift
  5785. if b < 0x80 {
  5786. break
  5787. }
  5788. }
  5789. fieldNum := int32(wire >> 3)
  5790. wireType := int(wire & 0x7)
  5791. if wireType == 4 {
  5792. return fmt.Errorf("proto: CgroupStats: wiretype end group for non-group")
  5793. }
  5794. if fieldNum <= 0 {
  5795. return fmt.Errorf("proto: CgroupStats: illegal tag %d (wire type %d)", fieldNum, wire)
  5796. }
  5797. switch fieldNum {
  5798. case 1:
  5799. if wireType != 0 {
  5800. return fmt.Errorf("proto: wrong wireType = %d for field NrSleeping", wireType)
  5801. }
  5802. m.NrSleeping = 0
  5803. for shift := uint(0); ; shift += 7 {
  5804. if shift >= 64 {
  5805. return ErrIntOverflowMetrics
  5806. }
  5807. if iNdEx >= l {
  5808. return io.ErrUnexpectedEOF
  5809. }
  5810. b := dAtA[iNdEx]
  5811. iNdEx++
  5812. m.NrSleeping |= uint64(b&0x7F) << shift
  5813. if b < 0x80 {
  5814. break
  5815. }
  5816. }
  5817. case 2:
  5818. if wireType != 0 {
  5819. return fmt.Errorf("proto: wrong wireType = %d for field NrRunning", wireType)
  5820. }
  5821. m.NrRunning = 0
  5822. for shift := uint(0); ; shift += 7 {
  5823. if shift >= 64 {
  5824. return ErrIntOverflowMetrics
  5825. }
  5826. if iNdEx >= l {
  5827. return io.ErrUnexpectedEOF
  5828. }
  5829. b := dAtA[iNdEx]
  5830. iNdEx++
  5831. m.NrRunning |= uint64(b&0x7F) << shift
  5832. if b < 0x80 {
  5833. break
  5834. }
  5835. }
  5836. case 3:
  5837. if wireType != 0 {
  5838. return fmt.Errorf("proto: wrong wireType = %d for field NrStopped", wireType)
  5839. }
  5840. m.NrStopped = 0
  5841. for shift := uint(0); ; shift += 7 {
  5842. if shift >= 64 {
  5843. return ErrIntOverflowMetrics
  5844. }
  5845. if iNdEx >= l {
  5846. return io.ErrUnexpectedEOF
  5847. }
  5848. b := dAtA[iNdEx]
  5849. iNdEx++
  5850. m.NrStopped |= uint64(b&0x7F) << shift
  5851. if b < 0x80 {
  5852. break
  5853. }
  5854. }
  5855. case 4:
  5856. if wireType != 0 {
  5857. return fmt.Errorf("proto: wrong wireType = %d for field NrUninterruptible", wireType)
  5858. }
  5859. m.NrUninterruptible = 0
  5860. for shift := uint(0); ; shift += 7 {
  5861. if shift >= 64 {
  5862. return ErrIntOverflowMetrics
  5863. }
  5864. if iNdEx >= l {
  5865. return io.ErrUnexpectedEOF
  5866. }
  5867. b := dAtA[iNdEx]
  5868. iNdEx++
  5869. m.NrUninterruptible |= uint64(b&0x7F) << shift
  5870. if b < 0x80 {
  5871. break
  5872. }
  5873. }
  5874. case 5:
  5875. if wireType != 0 {
  5876. return fmt.Errorf("proto: wrong wireType = %d for field NrIoWait", wireType)
  5877. }
  5878. m.NrIoWait = 0
  5879. for shift := uint(0); ; shift += 7 {
  5880. if shift >= 64 {
  5881. return ErrIntOverflowMetrics
  5882. }
  5883. if iNdEx >= l {
  5884. return io.ErrUnexpectedEOF
  5885. }
  5886. b := dAtA[iNdEx]
  5887. iNdEx++
  5888. m.NrIoWait |= uint64(b&0x7F) << shift
  5889. if b < 0x80 {
  5890. break
  5891. }
  5892. }
  5893. default:
  5894. iNdEx = preIndex
  5895. skippy, err := skipMetrics(dAtA[iNdEx:])
  5896. if err != nil {
  5897. return err
  5898. }
  5899. if (skippy < 0) || (iNdEx+skippy) < 0 {
  5900. return ErrInvalidLengthMetrics
  5901. }
  5902. if (iNdEx + skippy) > l {
  5903. return io.ErrUnexpectedEOF
  5904. }
  5905. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  5906. iNdEx += skippy
  5907. }
  5908. }
  5909. if iNdEx > l {
  5910. return io.ErrUnexpectedEOF
  5911. }
  5912. return nil
  5913. }
  5914. func skipMetrics(dAtA []byte) (n int, err error) {
  5915. l := len(dAtA)
  5916. iNdEx := 0
  5917. depth := 0
  5918. for iNdEx < l {
  5919. var wire uint64
  5920. for shift := uint(0); ; shift += 7 {
  5921. if shift >= 64 {
  5922. return 0, ErrIntOverflowMetrics
  5923. }
  5924. if iNdEx >= l {
  5925. return 0, io.ErrUnexpectedEOF
  5926. }
  5927. b := dAtA[iNdEx]
  5928. iNdEx++
  5929. wire |= (uint64(b) & 0x7F) << shift
  5930. if b < 0x80 {
  5931. break
  5932. }
  5933. }
  5934. wireType := int(wire & 0x7)
  5935. switch wireType {
  5936. case 0:
  5937. for shift := uint(0); ; shift += 7 {
  5938. if shift >= 64 {
  5939. return 0, ErrIntOverflowMetrics
  5940. }
  5941. if iNdEx >= l {
  5942. return 0, io.ErrUnexpectedEOF
  5943. }
  5944. iNdEx++
  5945. if dAtA[iNdEx-1] < 0x80 {
  5946. break
  5947. }
  5948. }
  5949. case 1:
  5950. iNdEx += 8
  5951. case 2:
  5952. var length int
  5953. for shift := uint(0); ; shift += 7 {
  5954. if shift >= 64 {
  5955. return 0, ErrIntOverflowMetrics
  5956. }
  5957. if iNdEx >= l {
  5958. return 0, io.ErrUnexpectedEOF
  5959. }
  5960. b := dAtA[iNdEx]
  5961. iNdEx++
  5962. length |= (int(b) & 0x7F) << shift
  5963. if b < 0x80 {
  5964. break
  5965. }
  5966. }
  5967. if length < 0 {
  5968. return 0, ErrInvalidLengthMetrics
  5969. }
  5970. iNdEx += length
  5971. case 3:
  5972. depth++
  5973. case 4:
  5974. if depth == 0 {
  5975. return 0, ErrUnexpectedEndOfGroupMetrics
  5976. }
  5977. depth--
  5978. case 5:
  5979. iNdEx += 4
  5980. default:
  5981. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  5982. }
  5983. if iNdEx < 0 {
  5984. return 0, ErrInvalidLengthMetrics
  5985. }
  5986. if depth == 0 {
  5987. return iNdEx, nil
  5988. }
  5989. }
  5990. return 0, io.ErrUnexpectedEOF
  5991. }
  5992. var (
  5993. ErrInvalidLengthMetrics = fmt.Errorf("proto: negative length found during unmarshaling")
  5994. ErrIntOverflowMetrics = fmt.Errorf("proto: integer overflow")
  5995. ErrUnexpectedEndOfGroupMetrics = fmt.Errorf("proto: unexpected end of group")
  5996. )