Lafontaine
2007-May-22 10:57 UTC
[dtrace-discuss] name of the functions containing a string (pid$1::*$$2*:entry)
Hello! I want to trace all the names of the functions containing a string wanted by the user and passed as a macro argument ($$2). I did that but it doesn''t work: pid$1::*$$2*:entry { printf("fonction: %s",probefunc); } error: Undefined macro variable in probe description However, when I directly write the string in the script it works!: pid$1::*gfdgghkjhd*:entry but I really need to use a macro argument. Please help, thank you!! Fabien Lafontaine. -- This message posted from opensolaris.org
Lafontaine
2007-May-23 12:08 UTC
[dtrace-discuss] Re: name of the functions containing a string (pid$1::*$$2*:entry)
resolved: just declare the macroargument like that: dtrace -s -q script.d 1234 [b]'' *gfdsgdgdfg* ''[/b] pid$1::$2:entry { printf("fonction: %s",probefunc); } Fabien. -- This message posted from opensolaris.org