is it possible to print avenrun array as it is updated in kernel using Dtrace. For illustrastion only. Thanks -- This message posted from opensolaris.org
> is it possible to print avenrun array as it is updated in kernel using Dtrace. > For illustrastion only.You''d need to instrument all the places in the code where it could be modified or you could sample it at some frequency. There''s nothing that can watch a memory region for modifications for example. Adam -- Adam Leventhal, Fishworks http://blogs.sun.com/ahl
say for instance here: calcloadavg in http://src.opensolaris.org/source/xref/onnv/onnv- gate/usr/src/uts/common/os/clock.c#2097 should a new probe need to implemented or somwhow the current framework could do this? If a new probe needs to be implemented is there a receipe to do that? Thanks for clearing up. -- This message posted from opensolaris.org
G''Day, On Thu, Aug 07, 2008 at 11:01:12PM -0700, tester wrote:> say for instance here: calcloadavg in > http://src.opensolaris.org/source/xref/onnv/onnv- > gate/usr/src/uts/common/os/clock.c#2097 > > should a new probe need to implemented or somwhow the current framework could do this? If a new probe needs to be implemented is there a receipe to do that? Thanks for clearing up.There are a few examples of using avenrun in the DTraceToolkit (grep avenrun Bin/*), but this may already be down the wrong path: if the desire is to measure CPU load more accurately, it may be better to roll your own metric using the sched provider. Brendan -- Brendan [CA, USA]