Print this page
Build provider 3rd arg from smb_request_t
hacking...
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_query_fileinfo.c
          +++ new/usr/src/uts/common/fs/smbsrv/smb_query_fileinfo.c
↓ open down ↓ 141 lines elided ↑ open up ↑
 142  142   * smb_com_query_information (aka getattr)
 143  143   */
 144  144  smb_sdrc_t
 145  145  smb_pre_query_information(smb_request_t *sr)
 146  146  {
 147  147          int rc;
 148  148          smb_fqi_t *fqi = &sr->arg.dirop.fqi;
 149  149  
 150  150          rc = smbsr_decode_data(sr, "%S", sr, &fqi->fq_path.pn_path);
 151  151  
 152      -        DTRACE_SMB_2(op__QueryInformation__start, smb_request_t *, sr,
 153      -            smb_fqi_t *, fqi);
      152 +        DTRACE_SMB_1(op__QueryInformation__start, smb_request_t *, sr); /* arg.dirop */
 154  153  
 155  154          return ((rc == 0) ? SDRC_SUCCESS : SDRC_ERROR);
 156  155  }
 157  156  
 158  157  void
 159  158  smb_post_query_information(smb_request_t *sr)
 160  159  {
 161  160          DTRACE_SMB_1(op__QueryInformation__done, smb_request_t *, sr);
 162  161  }
 163  162  
↓ open down ↓ 840 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX