public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* container_of in systemtap scripts
@ 2010-01-18 13:16 Andi Kleen
  2010-01-18 15:04 ` Frank Ch. Eigler
  0 siblings, 1 reply; 7+ messages in thread
From: Andi Kleen @ 2010-01-18 13:16 UTC (permalink / raw)
  To: systemtap

Hi,

systemtap 1.1 works nicely.

But I find myself writing embedded C when I need container_of(), which 
is needed to access more and more data structures in the kernel.

The code to do that looks rather ugly unfortunately.

@cast doesn't support that. Are there any other clean ways
to write container_of() natively or are there plans to extend cast to include
an offset?

Thanks,

-Andi

-- 
ak@linux.intel.com -- Speaking for myself only.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-01-19 12:41 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-18 13:16 container_of in systemtap scripts Andi Kleen
2010-01-18 15:04 ` Frank Ch. Eigler
2010-01-18 19:55   ` Josh Stone
2010-01-18 20:39     ` Przemysław Pawełczyk
2010-01-19  9:21       ` Mark Wielaard
2010-01-19  9:53         ` Przemysław Pawełczyk
2010-01-19 12:41         ` Andi Kleen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).