--- lib/dmtest/cache-status.rb | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/dmtest/cache-status.rb b/lib/dmtest/cache-status.rb index 6c8d6c5..6fc5f96 100644 --- a/lib/dmtest/cache-status.rb +++ b/lib/dmtest/cache-status.rb @@ -3,8 +3,9 @@ require 'dmtest/log' #---------------------------------------------------------------- class CacheStatus - attr_accessor :md_used, :md_total, :read_hits, :read_misses, :write_hits, :write_misses - attr_accessor :demotions, :promotions, :residency, :nr_dirty, :features, :core_args, :policy_args + attr_accessor :md_block_size, :md_used, :md_total, :cache_block_size, :residency, :cache_total + attr_accessor :read_hits, :read_misses, :write_hits, :write_misses + attr_accessor :demotions, :promotions, :nr_dirty, :features, :core_args, :policy_args PATTERN ='\d+\s+\d+\s+cache\s+(.*)' @@ -14,14 +15,16 @@ class CacheStatus @a = m[1].split + shift_int :md_block_size shift_ratio :md_used, :md_total + shift_int :cache_block_size + shift_ratio :residency, :cache_total shift_int :read_hits shift_int :read_misses shift_int :write_hits shift_int :write_misses shift_int :demotions shift_int :promotions - shift_int :residency shift_int :nr_dirty shift_features :features shift_pairs :core_args -- dm-devel mailing list dm-devel@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/dm-devel