[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: Arm Release 1.4.0
On Wed, Dec 22, 2010 at 10:38 PM, Damian Johnson <atagar1@xxxxxxxxx> wrote:
> ... querying the proc contents works insanely well
> (about 90% better):
> ...
> The only bad news is that this is a highly system dependent
> enhancement, so this only works on Linux. Porting this to bsd or osx
> would be difficult, if it's possible at all.
not sure about the Python bindings off hand; general approach for
other systems if /proc (not just /proc/stat) insufficient consists of
one or more:
direct kernel data structure interpretation - also fast, but also very
arch. specific. you could perhaps use lsof or top or other interface
to cross-platform vars of this sort where /dev/kmem or /dev/mem is
present.
kernel audit or profiling facilities like performance counters,
kprobes, security hooks, other common facilities.
this will cover all common platforms but is more time consuming and
maintenance intensive than would be ideal...
good luck,