From 5496270d0f615aa39de0a083ec74fb40a988f64b Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 2 Oct 2014 13:45:01 +0000 Subject: [PATCH] profiling: Make WITH_PROFILE span more in smbprofile.h Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Fri Oct 3 22:17:46 CEST 2014 on sn-devel-104 --- source3/include/smbprofile.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source3/include/smbprofile.h b/source3/include/smbprofile.h index 97e7c708eed..a37ac4f4cae 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 */ -- 2.11.4.GIT