Hey Andrea,
The pid provider can trace anything that''s in either the dynsym or
symtab. If
the symbol isn''t in one of those, you''re out of luck. Make
sure you''re
not
stripping the binary, and use nm(1) to check for the symbol (-D for
the dynsym).
Adam
On Mar 24, 2009, at 4:18 AM, Andrea Cucciarre'' - Sun Microsystems -
Italy wrote:
> Hello,
>
> I have used the following simple dtrace script to debug a problem
> with vmstat:
>
> #!/usr/sbin/dtrace -s
> #pragma D option flowindent
> pid$1:a.out:::entry
> {
> self->start = 1;
> ustack(15);
> }
> pid$1:a.out::return
> /self->start/
> {
> ustack(15);
> }
>
> However I have noticed that static function are not traced.
> There''s a way with the dtrace pid-provider to trace static
function?
>
> --
>
>
> Andrea Cucciarre''
> Storage Engineer
> Sun Microsystems Italia S.p.A.
> Viale Fulvio Testi, 327
> 20162 Milano, Italy
> Phone +39 800605338
> Fax +39 0264152204
> E-m at il andrea.cucciarre at Sun.COM
> _______________________________________________
> dtrace-discuss mailing list
> dtrace-discuss at opensolaris.org
--
Adam Leventhal, Fishworks http://blogs.sun.com/ahl