diff options
author | Raghavendra G <raghavendra@gluster.com> | 2009-10-08 06:21:02 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2009-10-09 00:48:23 -0700 |
commit | 78da899c5ceac63c424ad3d9e712b6a26abae7ba (patch) | |
tree | 325bff0b16178f8cae10298dc0ea6501bb194b36 /xlators/performance/stat-prefetch/src/stat-prefetch.h | |
parent | b9bfc46a9a26c356bd79a453c6daa77692f0a624 (diff) |
performance/stat-prefetch: Add accounting of cache hits and misses.
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 221 (stat prefetch implementation)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=221
Diffstat (limited to 'xlators/performance/stat-prefetch/src/stat-prefetch.h')
-rw-r--r-- | xlators/performance/stat-prefetch/src/stat-prefetch.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/xlators/performance/stat-prefetch/src/stat-prefetch.h b/xlators/performance/stat-prefetch/src/stat-prefetch.h index 20b5e4a6fea..dd6b067c5bd 100644 --- a/xlators/performance/stat-prefetch/src/stat-prefetch.h +++ b/xlators/performance/stat-prefetch/src/stat-prefetch.h @@ -37,6 +37,8 @@ struct sp_cache { * happen. */ gf_lock_t lock; + unsigned long miss; + unsigned long hits; }; typedef struct sp_cache sp_cache_t; |