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


 233 #define DTRACE_NFSV3_4(name, type1, arg1, type2, arg2,                  \
 234     type3, arg3, type4, arg4)                                           \
 235         DTRACE_PROBE4(__nfsv3_##name, type1, arg1, type2, arg2,         \
 236             type3, arg3, type4, arg4);
 237 
 238 #define DTRACE_NFSV4_1(name, type1, arg1) \
 239         DTRACE_PROBE1(__nfsv4_##name, type1, arg1);
 240 
 241 #define DTRACE_NFSV4_2(name, type1, arg1, type2, arg2) \
 242         DTRACE_PROBE2(__nfsv4_##name, type1, arg1, type2, arg2);
 243 
 244 #define DTRACE_NFSV4_3(name, type1, arg1, type2, arg2, type3, arg3) \
 245         DTRACE_PROBE3(__nfsv4_##name, type1, arg1, type2, arg2, type3, arg3);
 246 
 247 #define DTRACE_SMB_1(name, type1, arg1) \
 248         DTRACE_PROBE1(__smb_##name, type1, arg1);
 249 
 250 #define DTRACE_SMB_2(name, type1, arg1, type2, arg2) \
 251         DTRACE_PROBE2(__smb_##name, type1, arg1, type2, arg2);
 252 






 253 #define DTRACE_IP(name)                                         \
 254         DTRACE_PROBE(__ip_##name);
 255 
 256 #define DTRACE_IP1(name, type1, arg1)                                   \
 257         DTRACE_PROBE1(__ip_##name, type1, arg1);
 258 
 259 #define DTRACE_IP2(name, type1, arg1, type2, arg2)                      \
 260         DTRACE_PROBE2(__ip_##name, type1, arg1, type2, arg2);
 261 
 262 #define DTRACE_IP3(name, type1, arg1, type2, arg2, type3, arg3) \
 263         DTRACE_PROBE3(__ip_##name, type1, arg1, type2, arg2, type3, arg3);
 264 
 265 #define DTRACE_IP4(name, type1, arg1, type2, arg2,                      \
 266     type3, arg3, type4, arg4)                                           \
 267         DTRACE_PROBE4(__ip_##name, type1, arg1, type2, arg2,            \
 268             type3, arg3, type4, arg4);
 269 
 270 #define DTRACE_IP5(name, type1, arg1, type2, arg2,                      \
 271     type3, arg3, type4, arg4, type5, arg5)                              \
 272         DTRACE_PROBE5(__ip_##name, type1, arg1, type2, arg2,            \




 233 #define DTRACE_NFSV3_4(name, type1, arg1, type2, arg2,                  \
 234     type3, arg3, type4, arg4)                                           \
 235         DTRACE_PROBE4(__nfsv3_##name, type1, arg1, type2, arg2,         \
 236             type3, arg3, type4, arg4);
 237 
 238 #define DTRACE_NFSV4_1(name, type1, arg1) \
 239         DTRACE_PROBE1(__nfsv4_##name, type1, arg1);
 240 
 241 #define DTRACE_NFSV4_2(name, type1, arg1, type2, arg2) \
 242         DTRACE_PROBE2(__nfsv4_##name, type1, arg1, type2, arg2);
 243 
 244 #define DTRACE_NFSV4_3(name, type1, arg1, type2, arg2, type3, arg3) \
 245         DTRACE_PROBE3(__nfsv4_##name, type1, arg1, type2, arg2, type3, arg3);
 246 
 247 #define DTRACE_SMB_1(name, type1, arg1) \
 248         DTRACE_PROBE1(__smb_##name, type1, arg1);
 249 
 250 #define DTRACE_SMB_2(name, type1, arg1, type2, arg2) \
 251         DTRACE_PROBE2(__smb_##name, type1, arg1, type2, arg2);
 252 
 253 #define DTRACE_SMB2_1(name, type1, arg1) \
 254         DTRACE_PROBE1(__smb2_##name, type1, arg1);
 255 
 256 #define DTRACE_SMB2_2(name, type1, arg1, type2, arg2) \
 257         DTRACE_PROBE2(__smb2_##name, type1, arg1, type2, arg2);
 258 
 259 #define DTRACE_IP(name)                                         \
 260         DTRACE_PROBE(__ip_##name);
 261 
 262 #define DTRACE_IP1(name, type1, arg1)                                   \
 263         DTRACE_PROBE1(__ip_##name, type1, arg1);
 264 
 265 #define DTRACE_IP2(name, type1, arg1, type2, arg2)                      \
 266         DTRACE_PROBE2(__ip_##name, type1, arg1, type2, arg2);
 267 
 268 #define DTRACE_IP3(name, type1, arg1, type2, arg2, type3, arg3) \
 269         DTRACE_PROBE3(__ip_##name, type1, arg1, type2, arg2, type3, arg3);
 270 
 271 #define DTRACE_IP4(name, type1, arg1, type2, arg2,                      \
 272     type3, arg3, type4, arg4)                                           \
 273         DTRACE_PROBE4(__ip_##name, type1, arg1, type2, arg2,            \
 274             type3, arg3, type4, arg4);
 275 
 276 #define DTRACE_IP5(name, type1, arg1, type2, arg2,                      \
 277     type3, arg3, type4, arg4, type5, arg5)                              \
 278         DTRACE_PROBE5(__ip_##name, type1, arg1, type2, arg2,            \