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_delete.c
          +++ new/usr/src/uts/common/fs/smbsrv/smb_delete.c
↓ open down ↓ 96 lines elided ↑ open up ↑
  97   97  smb_pre_delete(smb_request_t *sr)
  98   98  {
  99   99          int rc;
 100  100          smb_fqi_t *fqi;
 101  101  
 102  102          fqi = &sr->arg.dirop.fqi;
 103  103  
 104  104          if ((rc = smbsr_decode_vwv(sr, "w", &fqi->fq_sattr)) == 0)
 105  105                  rc = smbsr_decode_data(sr, "%S", sr, &fqi->fq_path.pn_path);
 106  106  
 107      -        DTRACE_SMB_2(op__Delete__start, smb_request_t *, sr, smb_fqi_t *, fqi);
      107 +        DTRACE_SMB_1(op__Delete__start, smb_request_t *, sr); /* arg.dirop */
 108  108  
 109  109          return ((rc == 0) ? SDRC_SUCCESS : SDRC_ERROR);
 110  110  }
 111  111  
 112  112  void
 113  113  smb_post_delete(smb_request_t *sr)
 114  114  {
 115  115          DTRACE_SMB_1(op__Delete__done, smb_request_t *, sr);
 116  116  }
 117  117  
↓ open down ↓ 497 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX