[dtrace-discuss] trace static function

2009-03-24 Thread Andrea Cucciarre' - Sun Microsystems - Italy
Hello, I have used the following simple dtrace script to debug a problem with vmstat: #!/usr/sbin/dtrace -s #pragma D option flowindent pid$1:a.out:::entry { self-start = 1; ustack(15); } pid$1:a.out::return /self-start/ { ustack(15); } However I have noticed that static function are not

[dtrace-discuss] defining probes in dyn linked libraries -- any wrinkles?

2009-03-24 Thread Louis Tsien
I succeeded in placing USDT probes in a main program, but when I tried to do the same thing in a shared library I got the following link errors: Undefined first referenced symbol in file __dtrace_toposnap___topo__snap__release__entry

Re: [dtrace-discuss] dtrace with php

2009-03-24 Thread Michael Bonfils
I've tested the same code with opensolaris 2008.11 with svn101b and php_dtrace_execute_internal works well, maybe a regression ? -- This message posted from opensolaris.org ___ dtrace-discuss mailing list dtrace-discuss@opensolaris.org

Re: [dtrace-discuss] dtrace with php

2009-03-24 Thread Matt . Ingenthron
Hi Michael, Crossposting to webstack-discuss. That list covers the group of packages which cover web functionality, like PHP. On 03/24/09 09:44, Michael Bonfils wrote: Hi, I test the dtrace plugin for php and there is only php_dtrace_execute that seems to work,

Re: [dtrace-discuss] dtrace with php

2009-03-24 Thread Michael Bonfils
Oh, very impressive ! Thanks, I'll wait for the next update :) Michael -- This message posted from opensolaris.org ___ dtrace-discuss mailing list dtrace-discuss@opensolaris.org

Re: [dtrace-discuss] trace static function

2009-03-24 Thread Adam Leventhal
Hey Andrea, The pid provider can trace anything that's in either the dynsym or symtab. If the symbol isn't in one of those, you're out of luck. Make sure you're not stripping the binary, and use nm(1) to check for the symbol (-D for the dynsym). Adam On Mar 24, 2009, at 4:18 AM, Andrea