The script does work and most of output are the information I need, but only without the output of "clk". Do I lost something special in above script? Or do I need to manually assign "cpu_clk_unhalted.thread" to a special pic?
Worked for me. Manually assigning the event to a pic is not necessary.
But in a word, the dtrace cpc provider can successfully give me the information which my patch want to provide.
One thing to note is that the dtrace cpc provider samples the system information (e.g. pid) whenever the overflow occurred and is delivered. It is not necessary that all the events leading to that overflow were caused by the process running at the time the overflow was delivered. Nevertheless, it is a quick way to test your hypothesis regarding the remote accesses.
/kuriakose _______________________________________________ perf-discuss mailing list perf-discuss@opensolaris.org