profiling: Make WITH_PROFILE span more in smbprofile.h
authorVolker Lendecke <vl@samba.org>
Thu, 2 Oct 2014 13:45:01 +0000 (13:45 +0000)
committerKarolin Seeger <kseeger@samba.org>
Thu, 4 Dec 2014 20:11:13 +0000 (21:11 +0100)
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

(cherry picked from commit 5496270d0f615aa39de0a083ec74fb40a988f64b)

source3/include/smbprofile.h

index 97e7c708eedcb36cb58d7716ce58e5c39f3b5d10..a37ac4f4caebca7f4564f106c91c5950e37724fd 100644 (file)
@@ -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  */