From 8622168a4ada99894e2e85f4d46e81a654c33583 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 23 Oct 2014 18:30:41 +0200 Subject: s3:smbprofile: add END_PROFILE_BYTES() marco Signed-off-by: Stefan Metzmacher Reviewed-by: Jeremy Allison --- source3/include/smbprofile.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source3/include') diff --git a/source3/include/smbprofile.h b/source3/include/smbprofile.h index a37ac4f4ca..589bdb6374 100644 --- a/source3/include/smbprofile.h +++ b/source3/include/smbprofile.h @@ -953,6 +953,9 @@ static inline uint64_t profile_timestamp(void) #define END_PROFILE(x) \ END_PROFILE_RAW(x, __profstamp_##x, x##_time) +#define END_PROFILE_BYTES(x) \ + END_PROFILE_RAW(x, __profstamp_##x, x##_time) + #else /* WITH_PROFILE */ #define DO_PROFILE_INC(x) @@ -964,6 +967,7 @@ static inline uint64_t profile_timestamp(void) #define START_PROFILE_BYTES(x,n) #define END_PROFILE_STAMP(x, _stamp) #define END_PROFILE(x) +#define END_PROFILE_BYTES(x) #endif /* WITH_PROFILE */ -- cgit