diff options
author | todd stecher <todd.stecher@gmail.com> | 2009-02-08 23:10:34 -0800 |
---|---|---|
committer | Tim Prouty <tprouty@samba.org> | 2009-02-09 13:23:44 -0800 |
commit | 54c51a66e3e31c70a641d7efac2d4b08c3007278 (patch) | |
tree | 01ea8154819950eec666579dfeaad7724cf3fdb1 /source3/smbd/blocking.c | |
parent | 98a4327b19e83ffad4e0be7e8895fdbd9e48d49f (diff) | |
download | samba-54c51a66e3e31c70a641d7efac2d4b08c3007278.tar.gz samba-54c51a66e3e31c70a641d7efac2d4b08c3007278.tar.bz2 samba-54c51a66e3e31c70a641d7efac2d4b08c3007278.zip |
S3: New module interface for SMB message statistics gathering
This changelist allows for the addition of custom performance
monitoring modules through smb.conf. Entrypoints in the main message
processing code have been added to capture the command, subop, ioctl,
identity and message size statistics.
Diffstat (limited to 'source3/smbd/blocking.c')
-rw-r--r-- | source3/smbd/blocking.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/smbd/blocking.c b/source3/smbd/blocking.c index ac1ff00858..659ef700cb 100644 --- a/source3/smbd/blocking.c +++ b/source3/smbd/blocking.c @@ -192,6 +192,7 @@ bool push_blocking_lock_request( struct byte_range_lock *br_lck, return False; } + SMB_PERFCOUNT_DEFER_OP(&req->pcd, &req->pcd); blr->req = talloc_move(blr, &req); DLIST_ADD_END(blocking_lock_queue, blr, blocking_lock_record *); @@ -266,7 +267,7 @@ static void generic_blocking_lock_error(blocking_lock_record *blr, NTSTATUS stat reply_nterror(blr->req, status); if (!srv_send_smb(smbd_server_fd(), (char *)blr->req->outbuf, - blr->req->encrypted)) { + blr->req->encrypted, NULL)) { exit_server_cleanly("generic_blocking_lock_error: srv_send_smb failed."); } TALLOC_FREE(blr->req->outbuf); @@ -347,7 +348,8 @@ static void blocking_lock_reply_error(blocking_lock_record *blr, NTSTATUS status if (!srv_send_smb(smbd_server_fd(), (char *)blr->req->outbuf, - IS_CONN_ENCRYPTED(blr->fsp->conn))) { + IS_CONN_ENCRYPTED(blr->fsp->conn), + NULL)) { exit_server_cleanly("blocking_lock_reply_error: " "srv_send_smb failed."); } |