From: Mike Snitzer <snitzer@redhat.com>
To: ejt@redhat.com
Cc: device-mapper development <dm-devel@redhat.com>
Subject: [PATCH] dmts: update CacheStatus to parse new status output
Date: Thu, 9 Jan 2014 19:09:30 -0500 [thread overview]
Message-ID: <20140110000929.GB6154@redhat.com> (raw)
In-Reply-To: <20140109235506.GA6154@redhat.com>
---
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
next prev parent reply other threads:[~2014-01-10 0:09 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-09 21:04 [PATCH for-3.14] dm cache: add total cache blocks to status output Mike Snitzer
2014-01-09 21:28 ` Brassow Jonathan
2014-01-09 22:13 ` Mike Snitzer
2014-01-09 23:55 ` [PATCH v2 for-3.14] dm cache: add block sizes and " Mike Snitzer
2014-01-10 0:09 ` Mike Snitzer [this message]
2014-01-16 1:16 ` Brassow Jonathan
2014-01-16 4:34 ` Mike Snitzer
2014-01-16 17:18 ` Brassow Jonathan
2014-01-16 19:35 ` Mike Snitzer
2014-01-10 1:16 ` [PATCH for-3.14] dm cache: add " Brassow Jonathan
2014-01-10 10:32 ` Joe Thornber
2014-01-10 10:42 ` Joe Thornber
2014-01-10 14:17 ` Mike Snitzer
2014-01-10 10:11 ` Joe Thornber
2014-01-10 14:10 ` [PATCH v3 for-3.14] dm cache: add block sizes and " Mike Snitzer
2014-01-10 15:13 ` Joe Thornber
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140110000929.GB6154@redhat.com \
--to=snitzer@redhat.com \
--cc=dm-devel@redhat.com \
--cc=ejt@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.