Incase of multi-core systems where multiple threads maybe scheduled for execution, does the below dscript (from hotuser in DTraceToolkit) collect information for multiple libraries/functions that would be getting executed at a given point of time. I have been able to test it to check if it does or doesn''t. I assume it does. This was a query I have about profiling in general. #pragma D option quiet profile:::profile-1001hz /pid == \$target/ { \@pc[arg1] = count(); } dtrace:::END { printa("OUT: %A %\@d\\n", \@pc); } -Shiv
S h i v wrote:> Incase of multi-core systems where multiple threads maybe scheduled > for execution, does the below dscript (from hotuser in DTraceToolkit) > collect information for multiple libraries/functions that would be > getting executed at a given point of time. I have been able to test it > to check if it does or doesn''t. I assume it does.Yes it does. The profile provider''s profile-n probe fires every fixed interval on every CPU.> This was a query I have about profiling in general. > > #pragma D option quiet > profile:::profile-1001hz > /pid == \$target/ > { > \@pc[arg1] = count(); > } > dtrace:::END > { > printa("OUT: %A %\@d\\n", \@pc); > }It collects information on all the cpu''s where the threads [of process $target] are executing. Pramod> > -Shiv > _______________________________________________ > dtrace-discuss mailing list > dtrace-discuss at opensolaris.org
On Wed, Nov 12, 2008 at 08:26:52AM +0530, S h i v wrote:> Incase of multi-core systems where multiple threads maybe scheduled > for execution, does the below dscript (from hotuser in DTraceToolkit) > collect information for multiple libraries/functions that would be > getting executed at a given point of time. I have been able to test it > to check if it does or doesn''t. I assume it does. > This was a query I have about profiling in general. > > #pragma D option quiet > profile:::profile-1001hz > /pid == \$target/ > { > \@pc[arg1] = count(); > } > dtrace:::END > { > printa("OUT: %A %\@d\\n", \@pc); > }The profile:::profile-* probes all fire on *all* CPUs, so yes. Cheers, - jonathan