[dtrace-discuss] How to trace all libnsl:svc_register
Mike Gerdts
mgerdts at gmail.com
Wed Dec 5 06:56:10 PST 2007
On Dec 5, 2007 1:24 AM, <Casper.Dik at sun.com> wrote:
> >check_fnames: error: forbidden names found in pics/rpc_provider.o
> > close
> > dlinfo
> > fprintf
> > ioctl
> open64
> > strerror
>
>
> Libraries should not call the "naked" version of these symbols as those
> can also be defined in user programs and those will then be called instead.
>
>
> You will need to call _close etc instead; this is done through including
> "synonyms.h" before you include anything else. (See your typical other
> library source file)
The problem is that I did not generate these from C. I used (roughly)
the following, as suggested at
http://blogs.sun.com/ahl/entry/user_land_tracing_gets_better and
referenced by Adam earlier in this thread.
dtrace -G -o rpc_provider.o -s rpc_provider.d
My previous post listed the actual d provider source and the bulk of
the Makefile.* updates.
--
Mike Gerdts
http://mgerdts.blogspot.com/
More information about the dtrace-discuss
mailing list