Archive for April, 2005
DTracing Java
DTrace has cast light on parts of the system that were previously only dimly illuminated by previous tools, but there have been some parts of the system frustratingly left in the dark. The prevalent example is Java. Java has been relatively unobservable with DTrace; the jstack() action has offered a narrow beam of light into [...]
the pid provider and > 10 arguments
A long-time DTrace user was recently examining an ugly C++ application, and this obvious DTrace invocation to trace the 15th argument (zero-indexed) to a particularly ugly function: # dtrace -n pid123::foobar:entry’{ trace(arg15); }’ dtrace: invalid probe specifier pid380863:::entry{ trace(arg15); }: in action list: failed to resolve arg15: Unknown variable name As described in the Solaris [...]