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/smbsrv/smb_kproto.h
          +++ new/usr/src/uts/common/smbsrv/smb_kproto.h
↓ open down ↓ 101 lines elided ↑ open up ↑
 102  102  #endif  /* _KERNEL */
 103  103  
 104  104  extern  int smb_maxbufsize;
 105  105  extern  int smb_flush_required;
 106  106  extern  int smb_dirsymlink_enable;
 107  107  extern  int smb_oplock_levelII;
 108  108  extern  int smb_oplock_timeout;
 109  109  extern  int smb_oplock_min_timeout;
 110  110  extern  int smb_shortnames;
 111  111  extern  int smb_sign_debug;
 112      -extern  int smb_raw_mode;
 113  112  extern  uint_t smb_audit_flags;
 114  113  extern  int smb_ssetup_threshold;
 115  114  extern  int smb_tcon_threshold;
 116  115  extern  int smb_opipe_threshold;
 117  116  extern  int smb_ssetup_timeout;
 118  117  extern  int smb_tcon_timeout;
 119  118  extern  int smb_opipe_timeout;
 120  119  extern const uint32_t smb_vop_dosattr_settable;
 121  120  
 122  121  /* Thread priorities - see smb_init.c */
↓ open down ↓ 677 lines elided ↑ open up ↑
 800  799  void smb_xa_rele(smb_session_t *session, smb_xa_t *xa);
 801  800  int smb_xa_open(smb_xa_t *xa);
 802  801  void smb_xa_close(smb_xa_t *xa);
 803  802  int smb_xa_complete(smb_xa_t *xa);
 804  803  smb_xa_t *smb_xa_find(smb_session_t *session, uint32_t pid, uint16_t mid);
 805  804  
 806  805  struct mbuf *smb_mbuf_get(uchar_t *buf, int nbytes);
 807  806  struct mbuf *smb_mbuf_allocate(struct uio *uio);
 808  807  void smb_mbuf_trim(struct mbuf *mhead, int nbytes);
 809  808  
 810      -void smb_check_status(void);
 811      -int smb_handle_write_raw(smb_session_t *session, smb_request_t *sr);
 812      -
 813  809  int32_t smb_time_gmt_to_local(smb_request_t *, int32_t);
 814  810  int32_t smb_time_local_to_gmt(smb_request_t *, int32_t);
 815  811  int32_t smb_time_dos_to_unix(int16_t, int16_t);
 816  812  void smb_time_unix_to_dos(int32_t, int16_t *, int16_t *);
 817  813  void smb_time_nt_to_unix(uint64_t nt_time, timestruc_t *unix_time);
 818  814  uint64_t smb_time_unix_to_nt(timestruc_t *);
 819  815  
 820  816  int netbios_name_isvalid(char *in, char *out);
 821  817  
 822  818  int uioxfer(struct uio *src_uio, struct uio *dst_uio, int n);
↓ open down ↓ 173 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX