summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorIra Cooper <samba@ira.wakeful.net>2010-07-08 16:30:12 -0400
committerJeremy Allison <jra@samba.org>2010-07-09 16:29:39 -0700
commitc0aa55d55033e0dfb0ee0933b137dba38de2fd16 (patch)
tree7101f7b4caa865e721e995e3075d115215806f8c /source3/include
parent1caa8b06f781758943e31c367e70014de1d04380 (diff)
downloadsamba-c0aa55d55033e0dfb0ee0933b137dba38de2fd16.tar.gz
samba-c0aa55d55033e0dfb0ee0933b137dba38de2fd16.tar.bz2
samba-c0aa55d55033e0dfb0ee0933b137dba38de2fd16.zip
s3: Cleanup of the initial SMB2 counters patch.
This reorganizes smbd_smb2_request_dispatch to have a central exit point, and use the normal profiling macros. Signed-off-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/smbprofile.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/source3/include/smbprofile.h b/source3/include/smbprofile.h
index b406c7dd27..e9015ffc78 100644
--- a/source3/include/smbprofile.h
+++ b/source3/include/smbprofile.h
@@ -965,15 +965,6 @@ static inline uint64_t profile_timestamp(void)
ADD_PROFILE_COUNT(x##_time, \
profile_timestamp() - __profstamp_##x); \
}
-
-#define PROFILE_AND_RETURN(x,t,c) { \
- t __return_value; \
- START_PROFILE(x); \
- __return_value = (c); \
- END_PROFILE(x); \
- return __return_value; \
-}
-
#else /* WITH_PROFILE */
#define DO_PROFILE_INC(x)
@@ -983,7 +974,6 @@ static inline uint64_t profile_timestamp(void)
#define START_PROFILE(x)
#define START_PROFILE_BYTES(x,n)
#define END_PROFILE(x)
-#define PROFILE_AND_RETURN(x,t,c) return (c);
#endif /* WITH_PROFILE */
#endif