diff options
author | Stefan Metzmacher <metze@samba.org> | 2014-11-17 12:58:25 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2014-11-19 20:51:37 +0100 |
commit | 487556e68e0b4f3a7f06b4d507ac075c8d7b7f99 (patch) | |
tree | 06482c382fa0ab2609bfc1ccfe1ba91e5d2e6ce6 /source3/smbd/process.c | |
parent | 49f84f0719f99675e1c08e1b5559e52ec22d3a8b (diff) | |
download | samba-487556e68e0b4f3a7f06b4d507ac075c8d7b7f99.tar.gz |
s3:smbprofile: report idle state of 'idle_count' and 'idle_time'
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/smbd/process.c')
-rw-r--r-- | source3/smbd/process.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/source3/smbd/process.c b/source3/smbd/process.c index 9d19829f29d..2e611e2537e 100644 --- a/source3/smbd/process.c +++ b/source3/smbd/process.c @@ -3500,7 +3500,7 @@ NTSTATUS smbXsrv_connection_init_tables(struct smbXsrv_connection *conn, struct smbd_tevent_trace_state { TALLOC_CTX *frame; - uint64_t smbd_idle_profstamp; + SMBPROFILE_BASIC_ASYNC_STATE(profile_idle); }; static void smbd_tevent_trace_callback(enum tevent_trace_point point, @@ -3511,15 +3511,10 @@ static void smbd_tevent_trace_callback(enum tevent_trace_point point, switch (point) { case TEVENT_TRACE_BEFORE_WAIT: - /* - * This just removes compiler warning - * without profile support - */ - state->smbd_idle_profstamp = 0; - START_PROFILE_STAMP(smbd_idle, state->smbd_idle_profstamp); + SMBPROFILE_BASIC_ASYNC_START(idle, profile_p, state->profile_idle); break; case TEVENT_TRACE_AFTER_WAIT: - END_PROFILE_STAMP(smbd_idle, state->smbd_idle_profstamp); + SMBPROFILE_BASIC_ASYNC_END(state->profile_idle); break; case TEVENT_TRACE_BEFORE_LOOP_ONCE: TALLOC_FREE(state->frame); |