>This got me started.  I've added a couple probes to clnt_create with
>some success.  The first problem I ran into was with ctfmerge:
>
>ERROR: ctfmerge: Input file pics/rpc_provider.o was partially built
>from C sources, but no CTF data was present
>Removing libnsl.so.1

The standard compiler rules should provide the ctf commands.

>A bit of hackery (not sure it is long-term right) in ../Makefile.lib
>got me past this.
>
>I was rather surprised when I next ran into this:
>
>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)



Casper

_______________________________________________
dtrace-discuss mailing list
[email protected]

Reply via email to