pyocf: adapt tests to new inactive cores stats.
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
This commit is contained in:
parent
f226f978f0
commit
5042c5fc43
@ -468,9 +468,14 @@ class Cache:
|
||||
"size": CacheLines(cache_info.size, line_size),
|
||||
"inactive": {
|
||||
"occupancy": CacheLines(
|
||||
cache_info.inactive.occupancy, line_size
|
||||
cache_info.inactive.occupancy.value, line_size
|
||||
),
|
||||
"dirty": CacheLines(
|
||||
cache_info.inactive.dirty.value, line_size
|
||||
),
|
||||
"clean": CacheLines(
|
||||
cache_info.inactive.clean.value, line_size
|
||||
),
|
||||
"dirty": CacheLines(cache_info.inactive.dirty, line_size),
|
||||
},
|
||||
"occupancy": CacheLines(cache_info.occupancy, line_size),
|
||||
"dirty": CacheLines(cache_info.dirty, line_size),
|
||||
|
@ -4,10 +4,11 @@
|
||||
#
|
||||
|
||||
from ctypes import c_uint8, c_uint32, c_uint64, c_bool, c_int, Structure
|
||||
from pyocf.types.stats.shared import _Stat
|
||||
|
||||
|
||||
class _Inactive(Structure):
|
||||
_fields_ = [("occupancy", c_uint32), ("dirty", c_uint32)]
|
||||
_fields_ = [("occupancy", _Stat), ("clean", _Stat), ("dirty", _Stat)]
|
||||
|
||||
|
||||
class _FallbackPt(Structure):
|
||||
|
Loading…
Reference in New Issue
Block a user