diff options
author | Javier González <jg@lightnvm.io> | 2017-06-26 05:57:13 -0400 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2017-06-26 18:24:53 -0400 |
commit | db7ada33cdcae7fef0a088141b1e4ab8c25fd395 (patch) | |
tree | 10e098319a92916b999c5b52e532306ec65e9f57 /drivers/lightnvm/pblk-sysfs.c | |
parent | caa69fa560025d12c276abd62d58a87b94324708 (diff) |
lightnvm: pblk: add debug stat for read cache hits
Add a new debug counter to measure cache hits on the read path
Signed-off-by: Javier González <javier@cnexlabs.com>
Signed-off-by: Matias Bjørling <matias@cnexlabs.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/lightnvm/pblk-sysfs.c')
-rw-r--r-- | drivers/lightnvm/pblk-sysfs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/lightnvm/pblk-sysfs.c b/drivers/lightnvm/pblk-sysfs.c index f0af1d1ceeff..3c1a586c09a2 100644 --- a/drivers/lightnvm/pblk-sysfs.c +++ b/drivers/lightnvm/pblk-sysfs.c | |||
@@ -294,7 +294,7 @@ static ssize_t pblk_sysfs_lines_info(struct pblk *pblk, char *page) | |||
294 | static ssize_t pblk_sysfs_stats_debug(struct pblk *pblk, char *page) | 294 | static ssize_t pblk_sysfs_stats_debug(struct pblk *pblk, char *page) |
295 | { | 295 | { |
296 | return snprintf(page, PAGE_SIZE, | 296 | return snprintf(page, PAGE_SIZE, |
297 | "%lu\t%lu\t%lu\t%lu\t%lu\t%lu\t%lu\t%lu\t%lu\t%lu\t%lu\t%lu\t%lu\n", | 297 | "%lu\t%lu\t%lu\t%lu\t%lu\t%lu\t%lu\t%lu\t%lu\t%lu\t%lu\t%lu\t%lu\t%lu\n", |
298 | atomic_long_read(&pblk->inflight_writes), | 298 | atomic_long_read(&pblk->inflight_writes), |
299 | atomic_long_read(&pblk->inflight_reads), | 299 | atomic_long_read(&pblk->inflight_reads), |
300 | atomic_long_read(&pblk->req_writes), | 300 | atomic_long_read(&pblk->req_writes), |
@@ -307,6 +307,7 @@ static ssize_t pblk_sysfs_stats_debug(struct pblk *pblk, char *page) | |||
307 | atomic_long_read(&pblk->recov_writes), | 307 | atomic_long_read(&pblk->recov_writes), |
308 | atomic_long_read(&pblk->recov_gc_writes), | 308 | atomic_long_read(&pblk->recov_gc_writes), |
309 | atomic_long_read(&pblk->recov_gc_reads), | 309 | atomic_long_read(&pblk->recov_gc_reads), |
310 | atomic_long_read(&pblk->cache_reads), | ||
310 | atomic_long_read(&pblk->sync_reads)); | 311 | atomic_long_read(&pblk->sync_reads)); |
311 | } | 312 | } |
312 | #endif | 313 | #endif |