[1] Predicates in one-liners
I would like to list the probe modules in my executable and then
dynamically create a dscript to trace execution of those modules alone
(by excluding the 3rd party and system libraries). I tried the below
script without success. The conditional given in the predicate is not
taking effect. Why is this so ?
$ dtrace -ln 'pid$target::: /probemod!="libc.so.1"/ { printf("%s -----
%s",probefunc, probename); } ' -p `pgrep a.out`

Similar is the case for the below script, I expect only the entry
points to be printed but all the probes in a.out are being printed.
$ dtrace -ln 'pid$target:a.out:: /probename=="entry"/ { printf("%s
----- %s",probefunc, probename); } ' -p `pgrep a.out`

[2] Is there any means to get the arguments of a function dynamically?
I would like to create dscripts automatically to trace the functions
and if possible trace arguments as well (when I have access only to
the binaries).

TIA

regards
Shiv
_______________________________________________
dtrace-discuss mailing list
[email protected]

Reply via email to