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_session_setup_andx.c
          +++ new/usr/src/uts/common/fs/smbsrv/smb_session_setup_andx.c
↓ open down ↓ 181 lines elided ↑ open up ↑
 182  182                  sinfo->ssi_native_lm = smbnative_lm_value(native_lm);
 183  183          rc = 0;
 184  184  
 185  185  done:
 186  186          if (rc != 0) {
 187  187                  cmn_err(CE_NOTE,
 188  188                      "SmbSessonSetupX: client %s invalid request",
 189  189                      sr->session->ip_addr_str);
 190  190          }
 191  191  
 192      -        DTRACE_SMB_2(op__SessionSetupX__start, smb_request_t *, sr,
 193      -            smb_arg_sessionsetup_t, sinfo);
      192 +        DTRACE_SMB_1(op__SessionSetupX__start, smb_request_t *, sr);
 194  193          return ((rc == 0) ? SDRC_SUCCESS : SDRC_ERROR);
 195  194  }
 196  195  
 197  196  void
 198  197  smb_post_session_setup_andx(smb_request_t *sr)
 199  198  {
 200  199          smb_arg_sessionsetup_t  *sinfo = sr->sr_ssetup;
 201  200  
 202      -        DTRACE_SMB_2(op__SessionSetupX__done, smb_request_t *, sr,
 203      -            smb_arg_sessionsetup_t, sinfo);
      201 +        DTRACE_SMB_1(op__SessionSetupX__done, smb_request_t *, sr);
 204  202  
 205  203          if (sinfo->ssi_lmpwd != NULL)
 206  204                  bzero(sinfo->ssi_lmpwd, sinfo->ssi_lmpwlen);
 207  205  
 208  206          if (sinfo->ssi_ntpwd != NULL)
 209  207                  bzero(sinfo->ssi_ntpwd, sinfo->ssi_ntpwlen);
 210  208  }
 211  209  
 212  210  /*
 213  211   *
↓ open down ↓ 133 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX