Merge pull request #939 from Deixx/stat-mm

Remove 'metadata mode' from test API
This commit is contained in:
Robert Baldyga
2021-08-30 14:56:35 +02:00
committed by GitHub

View File

@@ -7,7 +7,7 @@
config_stats_cache = [ config_stats_cache = [
"cache id", "cache size", "cache device", "core devices", "inactive core devices", "cache id", "cache size", "cache device", "core devices", "inactive core devices",
"write policy", "cleaning policy", "promotion policy", "cache line size", "write policy", "cleaning policy", "promotion policy", "cache line size",
"metadata memory footprint", "dirty for", "metadata mode", "status" "metadata memory footprint", "dirty for", "status"
] ]
config_stats_core = [ config_stats_core = [
"core id", "core device", "exported object", "core size", "dirty for", "status", "core id", "core device", "exported object", "core size", "dirty for", "status",
@@ -235,7 +235,6 @@ class CacheConfigStats:
cache_line_size, cache_line_size,
metadata_memory_footprint, metadata_memory_footprint,
dirty_for, dirty_for,
metadata_mode,
status, status,
): ):
self.cache_id = cache_id self.cache_id = cache_id
@@ -249,7 +248,6 @@ class CacheConfigStats:
self.cache_line_size = cache_line_size self.cache_line_size = cache_line_size
self.metadata_memory_footprint = metadata_memory_footprint self.metadata_memory_footprint = metadata_memory_footprint
self.dirty_for = dirty_for self.dirty_for = dirty_for
self.metadata_mode = metadata_mode
self.status = status self.status = status
def __str__(self): def __str__(self):
@@ -266,7 +264,6 @@ class CacheConfigStats:
f"Cache line size: {self.cache_line_size}\n" f"Cache line size: {self.cache_line_size}\n"
f"Metadata memory footprint: {self.metadata_memory_footprint}\n" f"Metadata memory footprint: {self.metadata_memory_footprint}\n"
f"Dirty for: {self.dirty_for}\n" f"Dirty for: {self.dirty_for}\n"
f"Metadata mode: {self.metadata_mode}\n"
f"Status: {self.status}\n" f"Status: {self.status}\n"
) )
@@ -285,7 +282,6 @@ class CacheConfigStats:
and self.cache_line_size == other.cache_line_size and self.cache_line_size == other.cache_line_size
and self.metadata_memory_footprint == other.metadata_memory_footprint and self.metadata_memory_footprint == other.metadata_memory_footprint
and self.dirty_for == other.dirty_for and self.dirty_for == other.dirty_for
and self.metadata_mode == other.metadata_mode
and self.status == other.status and self.status == other.status
) )