Here's a patch to allow PowerTOP to observe events on a specific CPU.
It basically adds a new DTrace script for each of the observed areas 
(events, idle and freq transitions). The new script has a new predicate 
to match events on the CPU specified by the user with a -c argument.

On the events script, it became necessary to catch firings of 
fbt::send_dirint so that, when running on a specific CPU, PowerTOP 
catches cross calls from other CPUs to the current one.

Let me know what you think.

Thanks,
Rafael
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cpu.diff
URL: 
<http://mail.opensolaris.org/pipermail/tesla-dev/attachments/20081208/ba97930b/attachment.ksh>

Reply via email to