[dtrace-discuss] Using dtrace to monitor native calls into Java code

Eric Bodden
Wed, 10 Feb 2010 12:33:54 -0000

> Right. ?Hotspot does not use JNI to dispatch to native code.

Thanks Keith, for confirming this. That''s too bad.

> The
> method-entry/return calls might help out here, but they monitor all calls
> which may be overkill for what you''re doing.

Indeed, I am specifically interested in identifying code that is
called through reflection. You are right, method-entry/return does
trigger for reflective calls but, as you say, it also triggers for
other calls.

Do you know if there''s a way to get (part of) the call stack for a
method-entry probe?

Eric