diff options
author | Stefan Metzmacher <metze@samba.org> | 2014-11-17 20:05:09 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2014-11-19 20:51:37 +0100 |
commit | 970b00e6acd7dfea9e5b58d0b514bee1c9105172 (patch) | |
tree | 0a67a50bec28a5a48fe1f42c1824096fe315d8f2 /source3/include/smbprofile.h | |
parent | 487556e68e0b4f3a7f06b4d507ac075c8d7b7f99 (diff) | |
download | samba-970b00e6acd7dfea9e5b58d0b514bee1c9105172.tar.gz |
s3:smbprofile: remove unused {START,END}_PROFILE_STAMP()
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/include/smbprofile.h')
-rw-r--r-- | source3/include/smbprofile.h | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/source3/include/smbprofile.h b/source3/include/smbprofile.h index bafd693b34c..67ffa77dfd4 100644 --- a/source3/include/smbprofile.h +++ b/source3/include/smbprofile.h @@ -482,12 +482,6 @@ static inline uint64_t profile_timestamp(void) #define DO_PROFILE_INC(x) \ _SMBPROFILE_COUNT_INCREMENT(x##_stats, profile_p, 1); \ -#define START_PROFILE_STAMP(x, _stamp) do { \ - struct smbprofile_stats_basic_async __profasync_##x = {}; \ - _SMBPROFILE_BASIC_ASYNC_START(x##_stats, profile_p, __profasync_##x); \ - _stamp = __profasync_##x.start; \ -} while(0) - #define START_PROFILE(x) \ struct smbprofile_stats_basic_async __profasync_##x = {}; \ _SMBPROFILE_BASIC_ASYNC_START(x##_stats, profile_p, __profasync_##x); @@ -496,17 +490,6 @@ static inline uint64_t profile_timestamp(void) struct smbprofile_stats_bytes_async __profasync_##x = {}; \ _SMBPROFILE_BYTES_ASYNC_START(x##_stats, profile_p, __profasync_##x, n); -#define END_PROFILE_STAMP(x, _stamp) do { \ - struct smbprofile_stats_basic_async __profasync_##x = {}; \ - if (do_profile_flag && do_profile_times) { \ - __profasync_##x = (struct smbprofile_stats_basic_async) { \ - .start = (_stamp), \ - .stats = &(profile_p->x##_stats), \ - }; \ - } \ - SMBPROFILE_BASIC_ASYNC_END(__profasync_##x); \ -} while(0) - #define END_PROFILE(x) \ SMBPROFILE_BASIC_ASYNC_END(__profasync_##x) @@ -538,10 +521,8 @@ static inline uint64_t profile_timestamp(void) #define SMBPROFILE_IOBYTES_ASYNC_END(_async, _outbytes) #define DO_PROFILE_INC(x) -#define START_PROFILE_STAMP(x, _stamp) #define START_PROFILE(x) #define START_PROFILE_BYTES(x,n) -#define END_PROFILE_STAMP(x, _stamp) #define END_PROFILE(x) #define END_PROFILE_BYTES(x) |