Print this page
NEX-1643 dtrace provider for smbsrv
Also illumos 1841:
 DTrace smb provider was mis-implemented, doesn't exist.
Add back handlers for read/write raw, so that
 legacy dtrace consumers can find the probes.
Kill extra arg in smb_negotiate
Fix missing "done" probe with smb_notify
Add example consumer: smb-trace.d
fix soi_pid

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/smbsrv/smb_nt_transact_notify_change.c
          +++ new/usr/src/uts/common/fs/smbsrv/smb_nt_transact_notify_change.c
↓ open down ↓ 218 lines elided ↑ open up ↑
 219  219              0,                  /* Data displacement */
 220  220              n_setup,            /* suwcnt */
 221  221              &xa->rep_setup_mb,  /* setup[] */
 222  222              total_bytes,        /* Total data bytes */
 223  223              param_pad,
 224  224              &sr->raw_data,      /* output mbc */
 225  225              data_pad,
 226  226              &xa->rep_data_mb);
 227  227  
 228  228  sendit:
      229 +        DTRACE_SMB_1(op__NtTransactNotify__done2, smb_request_t *, sr);
      230 +
 229  231          sds = &sr->sr_server->sv_disp_stats1[sr->smb_com];
 230  232          atomic_add_64(&sds->sdt_txb, (int64_t)sr->reply.chain_offset);
 231  233  
 232  234          smbsr_send_reply(sr);   /* also puts the SMB header. */
 233  235          smbsr_cleanup(sr);
 234  236  
 235  237          mutex_enter(&sr->sr_mutex);
 236  238          sr->sr_state = SMB_REQ_STATE_COMPLETED;
 237  239          mutex_exit(&sr->sr_mutex);
 238  240  
 239  241          smb_request_free(sr);
 240  242  }
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX