Integrate delay accounting with systemtap?
Frank Ch. Eigler
fche@redhat.com
Thu Jul 12 14:39:00 GMT 2007
Hi -
On Thu, Jul 12, 2007 at 07:59:23PM +0530, Ananth N Mavinakayanahalli wrote:
> > [...] But systemtap scripts already run in kernel space. How/why
> > would you want them to talk across netlink sockets?
> See Documentation/accounting/getdelays.c
Yes, I see that, but this is exactly a user-space program using the
netlink api to query the kernel. This scenario does not apply to
systemtap probes that run in kernel space.
> Given the data is available without any additional kernel
> probe/hook, it would be good for SystemTap to do something similar
> to getdelays.c
But the netlink widget is necessary primarly because user space has no
access to the task struct with all the statistics fields in it. A
probe running in kernel space can access the task struct (more or
less) directly.
- FChE
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/systemtap/attachments/20070712/adda4eee/attachment.sig>
More information about the Systemtap
mailing list