Document Information
Preface
1. About DTrace
2. D Programming Language
3. Aggregations
4. Actions and Subroutines
5. Buffers and Buffering
6. Output Formatting
7. Speculative Tracing
8. dtrace(1M) Utility
9. Scripting
10. Options and Tunables
11. Providers
dtrace Provider
BEGIN Probe
END Probe
ERROR Probe
Stability
lockstat Provider
Overview
Adaptive Lock Probes
Spin Lock Probes
Thread Locks
Readers/Writer Lock Probes
profile Provider
profile- n probes
tick - n probes
Arguments
Timer Resolution
Probe Creation
cpc Provider
Probes
Probe Availability
Co-existence With Existing Tools
Examples
user-insts.d
kern-cycles.d
brendan-l2miss.d
brendan-generic-l2miss.d
off_core_event.d
l2miss.d
fbt Provider
Probe arguments
entry probes
return probes
Tail-call Optimization
Assembly Functions
Instruction Set Limitations
x86 Limitations
SPARC Limitations
Breakpoint Interaction
Module Loading
syscall Provider
System Call Anachronisms
Subcoded System Calls
New System Calls
Deleted System Calls
Large File System Calls
Private System Calls
sdt Provider
Creating SDT Probes
Declaring Probes
Probe Arguments
mib Provider
fpuinfo Provider
pid Provider
Naming pid Probes
Function Boundary Probes
entry Probes
return Probes
Function Offset Probes
plockstat Provider
Mutex Probes
Reader/Writer Lock Probes
fasttrap Provider
sysinfo Provider
Example
vminfo Provider
proc Provider
lwpsinfo_t
psinfo_t
exec
start and exit
lwp-start and lwp-exit
signal-send
sched Provider
cpuinfo_t
on-cpu and off-cpu
enqueue and dequeue
sleep and wakeup
preempt and remain-cpu
change-pri
tick
cpucaps-sleep and cpucaps-wakeup
io Provider
bufinfo_t structure
devinfo_t
fileinfo_t
Protocols
ip Provider
args[0] - pktinfo_t Structure
args[1] - csinfo_t Structure
args[2] - ipinfo_t Structure
args[3] - ifinfo_t Structure
args[4] - ipv4info_t Structure
args[5] - ipv6info_t Structure
Packets by host address
Sent size distribution
ipio.d
ipproto.d
iscsi Provider
Types
One-liners
iscsiwho.d
iscsixfer.d
nfsv3 Provider
nfsv3rwsnoop.d
nfsv3ops.d
nfsv3fileio.d
nfsv3rwtime.d
nfsv3io.d
nfsv4 Provider
nfsv4rwsnoop.d
nfsv4ops.d
nfsv4fileio.d
nfsv4rwtime.d
nfsv4io.d
srp Provider
Probes Overview
Service up/down Event Probes
Remote Port Login/Logout Event Probes
SRP Command Event Probes
SCSI Command Event Probes
Data Transfer Probes
scsicmd_t
conninfo_t
srp_portinfo_t
srp_logininfo_t
srp_taskinfo_t
xferinfo_t
service.d
srpwho.d
srpsnoop.d
tcp Provider
pktinfo_t Structure
csinfo_t Structure
ipinfo_t Structure
tcpsinfo_t Structure
tcplsinfo_t Structure
tcpinfo_t Structure
Connections by Host Address
Connections by TCP Port
Who is Connecting to What
Who Isn't Connecting to What
Packets by Host Address
Packets by Local Port
Sent Size Distribution
tcpstate.d
tcpio.d
udp Provider
udpsinfo_t Structure
12. User Process Tracing
13. Statically Defined Tracing for User Applications
14. Security
15. Anonymous Tracing
16. Postmortem Tracing
17. Performance Considerations
18. Stability
19. Translators
20. Versioning
Index
This chapter lists and explains the existing DTrace providers.