summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2014-10-02 13:45:01 +0000
committerJeremy Allison <jra@samba.org>2014-10-03 22:17:46 +0200
commit5496270d0f615aa39de0a083ec74fb40a988f64b (patch)
tree91d23327f7c9ee33b14d2e25fbcb2cddebf69c87
parentf74ac712aea8d354b70966ffd3f617c65a17d8d0 (diff)
downloadsamba-5496270d0f615aa39de0a083ec74fb40a988f64b.tar.gz
samba-5496270d0f615aa39de0a083ec74fb40a988f64b.tar.xz
samba-5496270d0f615aa39de0a083ec74fb40a988f64b.zip
profiling: Make WITH_PROFILE span more in smbprofile.h
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Fri Oct 3 22:17:46 CEST 2014 on sn-devel-104
-rw-r--r--source3/include/smbprofile.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/include/smbprofile.h b/source3/include/smbprofile.h
index 97e7c708ee..a37ac4f4ca 100644
--- a/source3/include/smbprofile.h
+++ b/source3/include/smbprofile.h
@@ -21,6 +21,8 @@
*/
+#ifdef WITH_PROFILE
+
/* this file defines the profile structure in the profile shared
memory area */
@@ -876,8 +878,6 @@ extern struct profile_stats *profile_p;
extern bool do_profile_flag;
extern bool do_profile_times;
-#ifdef WITH_PROFILE
-
/* these are helper macros - do not call them directly in the code
* use the DO_PROFILE_* START_PROFILE and END_PROFILE ones
* below which test for the profile flags first
@@ -964,6 +964,7 @@ static inline uint64_t profile_timestamp(void)
#define START_PROFILE_BYTES(x,n)
#define END_PROFILE_STAMP(x, _stamp)
#define END_PROFILE(x)
+
#endif /* WITH_PROFILE */
/* The following definitions come from profile/profile.c */