diff options
author | Jeremy Allison <jra@samba.org> | 2005-04-14 23:32:56 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 10:56:37 -0500 |
commit | f60ad8ded6e614f3c0abb2679d3a75096fc595d3 (patch) | |
tree | e7799ae07965fcc11fe7b95726cb375314669e19 /source3/include/smb_macros.h | |
parent | da70ef7c06ef55b9049697f13fdaecf8a2f31e35 (diff) | |
download | samba-f60ad8ded6e614f3c0abb2679d3a75096fc595d3.tar.gz samba-f60ad8ded6e614f3c0abb2679d3a75096fc595d3.tar.bz2 samba-f60ad8ded6e614f3c0abb2679d3a75096fc595d3.zip |
r6346: Add a counter for the number of SMB operations per connection/file.
You will need to do a make clean after SVN updating this. Next will
come a smbcontrol message to dump this info. This should be interesting
to profile client activity.
Jeremy.
(This used to be commit 743174da86ac724fc9ee3d4b7bd9a2a97a234bd8)
Diffstat (limited to 'source3/include/smb_macros.h')
-rw-r--r-- | source3/include/smb_macros.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/include/smb_macros.h b/source3/include/smb_macros.h index ab4ee5ee73..b7a3a68bec 100644 --- a/source3/include/smb_macros.h +++ b/source3/include/smb_macros.h @@ -94,6 +94,7 @@ return(ERROR_DOS(ERRDOS,ERRbadfid)); \ else if((fsp)->fd == -1) \ return(ERROR_DOS(ERRDOS,ERRbadaccess));\ + (fsp)->num_smb_operations++;\ } while(0) #define CHECK_READ(fsp) if (!(fsp)->can_read) \ |