Robert G. Byrnes
2010-Mar-02 17:41 UTC
[dtrace-discuss] tracing arbitrary instructions in static functions
Is it known that the pid provider allows tracing of arbitrary instructions only within global functions? For local (static) functions, it seems to only define entry and return probes. Is there any work around? Thanks, Bob -- This message posted from opensolaris.org
Adam Leventhal
2010-Mar-02 18:58 UTC
[dtrace-discuss] tracing arbitrary instructions in static functions
Hi Bob, The pid provider can trace arbitrary instructions in any function that appears in the symbol table. The only exception is for functions that contain jump tables -- for those we only expose entry and return probes. Can you send the dtrace(1M) invocation you''re using and the disassembly of the function you''re trying to trace? Adam On Mar 2, 2010, at 9:41 AM, Robert G. Byrnes wrote:> Is it known that the pid provider allows tracing of arbitrary instructions only within global functions? For local (static) functions, it seems to only define entry and return probes. Is there any work around? > > Thanks, > Bob > -- > This message posted from opensolaris.org > _______________________________________________ > dtrace-discuss mailing list > dtrace-discuss at opensolaris.org-- Adam Leventhal, Fishworks http://blogs.sun.com/ahl
Robert G. Byrnes
2010-Mar-02 19:50 UTC
[dtrace-discuss] tracing arbitrary instructions in static functions
> The only exception is for functions that contain jump tables -- for those we only expose entry and return probes.Oh, that''s what''s happening. I wanted to trace instructions within search_state_machine() in /usr/lib/libsldap.so.1, and that function has a big switch that definitely uses a jump table. -- This message posted from opensolaris.org