diff options
author | Steve French <sfrench@us.ibm.com> | 2005-12-03 23:11:37 +0100 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2005-12-03 23:11:37 +0100 |
commit | 07475ffba5800c53573180dd521273642adcd0e9 (patch) | |
tree | c8e204621bcc30fc2591f19c4d3f9620589876d6 /fs/cifs/cifs_debug.c | |
parent | [CIFS] Add extended stats (STATS2) for total buffer allocations for (diff) | |
download | linux-07475ffba5800c53573180dd521273642adcd0e9.tar.xz linux-07475ffba5800c53573180dd521273642adcd0e9.zip |
[CIFS] Display large/small total buffer allocations in /proc/fs/cifs/Stats
when CONFIG_CIFS_STATS2 is on (helps in debugging performance)
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/cifs_debug.c')
-rw-r--r-- | fs/cifs/cifs_debug.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/fs/cifs/cifs_debug.c b/fs/cifs/cifs_debug.c index 7f19f2547d01..6f5d81f5eacb 100644 --- a/fs/cifs/cifs_debug.c +++ b/fs/cifs/cifs_debug.c @@ -280,6 +280,14 @@ cifs_stats_read(char *buf, char **beginBuffer, off_t offset, smBufAllocCount.counter,cifs_min_small); length += item_length; buf += item_length; +#ifdef CONFIG_CIFS_STATS2 + item_length = sprintf(buf, "Total Large %d Small %d Allocations\n", + atomic_read(&totBufAllocCount), + atomic_read(&totSmBufAllocCount)); + length += item_length; + buf += item_length; +#endif /* CONFIG_CIFS_STATS2 */ + item_length = sprintf(buf,"Operations (MIDs): %d\n", midCount.counter); |