.t_c@sdZddlTddlTddlTdefdYZdefdYZdefdYZd efd YZd efd YZd S(s Copyright (c) 2018 Red Hat, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. i(t*tBioStatscBseZddZRS(RcKsStt|j|tdtdtdtdtdgdd|dS(NtreadtwritetdiscardtflushtfuatprocRoottvdo(tsuperRt__init__t Uint64Field(tselftnametkwargs((sC/usr/lib/python2.7/site-packages/vdo/statistics/KernelStatistics.pyR s    (t__name__t __module__R (((sC/usr/lib/python2.7/site-packages/vdo/statistics/KernelStatistics.pyRstReadCacheStatscBseZddZRS(RcKsGtt|j|tdtdtdgdddd|dS(NtaccessesthitstdataHitst labelPrefixs read cacheRR(R RR R (R R R((sC/usr/lib/python2.7/site-packages/vdo/statistics/KernelStatistics.pyR )s   (RRR (((sC/usr/lib/python2.7/site-packages/vdo/statistics/KernelStatistics.pyR(st MemoryUsagecBseZddZRS(RcKsJtt|j|tdtdtdtdgdd|dS(Nt bytesUsedt peakBytesUsedtbiosUsedt peakBioCountRR(R RR R (R R R((sC/usr/lib/python2.7/site-packages/vdo/statistics/KernelStatistics.pyR 4s    (RRR (((sC/usr/lib/python2.7/site-packages/vdo/statistics/KernelStatistics.pyR3stIndexStatisticscBseZddZRS(RcKstt|j|tdtdtdtdtdtdtdtdd d td d d g d d|dS(NtentriesIndexedt postsFoundt postsNotFoundt queriesFoundtqueriesNotFoundt updatesFoundtupdatesNotFoundtcurrDedupeQueriestlabelscurrent dedupe queriestmaxDedupeQueriessmaximum dedupe queriesRR(R RR R t Uint32Field(R R R((sC/usr/lib/python2.7/site-packages/vdo/statistics/KernelStatistics.pyR Bs       (RRR (((sC/usr/lib/python2.7/site-packages/vdo/statistics/KernelStatistics.pyRAstKernelStatisticscBs#eZddZdZdZRS(R'cKstt|j|tddttddttdtddddd td dd td dd tdtdtddttdddtdddtdddtdddtdddtdddtdddtd dd!td"dd#td$dd%td&dd'td(dd)td*dd+td,dd-t d.t d/dd0t d1gd2d3d4d5|dS(6NtversiontdisplaytreleaseVersiontinstancetfiveTwelveByteEmulationR$s512 byte emulationtderiveds-'on' if ($logicalBlockSize == 512) else 'off'tcurrentVIOsInProgresss#current VDO IO requests in progresstmaxVIOss#maximum VDO IO requests in progresstdedupeAdviceTimeoutstflushOuttlogicalBlockSizetwriteAmplificationRatiosnround(($biosMeta["write"] + $biosOut["write"]) / float($biosIn["write"]), 2) if $biosIn["write"] > 0 else 0.00tbiosInRsbios int biosInPartialsbios in partialtbiosOutsbios outtbiosMetas bios metat biosJournals bios journalt biosPageCachesbios page cachetbiosOutCompletedsbios out completedtbiosMetaCompletedsbios meta completedtbiosJournalCompletedsbios journal completedtbiosPageCacheCompletedsbios page cache completedtbiosAcknowledgedsbios acknowledgedtbiosAcknowledgedPartialsbios acknowledged partialtbiosInProgresssbios in progresst readCachet memoryUsages KVDO moduletindextprocFilet kernel_statsRR( R R'R R&tFalset StringFieldR t FloatFieldRRRR(R R R((sC/usr/lib/python2.7/site-packages/vdo/statistics/KernelStatistics.pyR Ys8    icCsXtt|j|}|jdtjksE|jdtkrTtdn|S(NR(R*s!KernelStatistics version mismatch(R R'tsampletgetStattstatisticsVersiontCURRENT_RELEASE_VERSION_NUMBERt Exception(R tdeviceRI((sC/usr/lib/python2.7/site-packages/vdo/statistics/KernelStatistics.pyRIs-(RRR RKRI(((sC/usr/lib/python2.7/site-packages/vdo/statistics/KernelStatistics.pyR'Xs +N( t__doc__tFieldt StatStructtVDOReleaseVersionsRRRRR'(((sC/usr/lib/python2.7/site-packages/vdo/statistics/KernelStatistics.pyts