[dtrace-discuss] entry does not match any probes for linked library

Ananth Shrinivas Ananth.Shrinivas at Sun.COM
Wed Nov 15 10:50:40 PST 2006


Hi Charlie,

Add the -Z flag to your command line. The dtrace(1M) man page should 
offer more details.

Ananth

Charlie Miller wrote:
> Hello.  I was trying to run a simple trace based on the pid provider on the firefox binary that comes with Solaris and am getting an error.
> 
> First: see which libraries are linked in:
> [i]bash-3.00# ldd /usr/lib/firefox/firefox-bin  | head[/i]
>         libCrun.so.1 =>  /usr/lib/firefox/../libCrun.so.1
>         libCstd.so.1 =>  /usr/lib/firefox/../libCstd.so.1
> [b]        libmozjs.so =>   /usr/lib/firefox/libmozjs.so
>         libxpcom_core.so =>      /usr/lib/firefox/libxpcom_core.so[/b]
>         libplc4.so =>    /usr/lib/mps/libplc4.so
>         libnspr4.so =>   /usr/lib/mps/libnspr4.so
>         libpthread.so.1 =>       /usr/lib/firefox/../libpthread.so.1
>         libgtk-x11-2.0.so.0 =>   /usr/lib/firefox/../libgtk-x11-2.0.so.0
>         libgdk-x11-2.0.so.0 =>   /usr/lib/firefox/../libgdk-x11-2.0.so.0
>         libX11.so.4 =>   /usr/lib/firefox/../libX11.so.4
> 
> Then, write the D program:
> [i]bash-3.00# more libc.d[/i]
> pid$target:libmozjs.so::entry,
> pid$target:libxpcom_core.so::entry,
> pid$target:a.out::entry
> {
>         @[probefunc] = count();
> }
> 
> Then, run it:
> [i]bash-3.00# dtrace -s libc.d -c "/usr/lib/firefox/firefox-bin -UILocale C -contentLocale C"[/i]
> dtrace: failed to compile script libc.d: line 1: probe description pid3629:libmozjs.so::entry does not match any probes
> 
> If I remove the line with libmozjs.so (and leave in libxpcom_core.so) from libc.d, it works as expected.
> 
> Any ideas on what is going on here and how to get probes inside libmozjs.so?
> 
> Thanks!!!!
> 
> Charlie
>  
>  
> This message posted from opensolaris.org
> _______________________________________________
> dtrace-discuss mailing list
> dtrace-discuss at opensolaris.org


More information about the dtrace-discuss mailing list