updated uprobes patches

Jim Keniston jkenisto@us.ibm.com
Sat May 26 00:29:00 GMT 2007


Here are updated uprobes patches to replace those I posted
May 16.  Utrace is still not in the -mm kernel, so these
patches are against the most recent utrace-enabled -mm
kernel, 2.6.21-rc6-mm1.  If you want to use a more recent
kernel, you'll need to patch in linux-2.6-utrace.patch from
http://people.redhat.com/roland/utrace/2.6-current/ first.

I believe that these uprobes patches address the remainder of
the concerns that Ernie Petrides reported earlier this month.
In particular, struct uprobe and linux/uprobes.h have been reorganized.
Struct uprobe_kimg is renamed uprobe_probept, and the new uprobe_kimg
holds some of what used to reside in struct uprobe.  The API is the
same: [un]register_u[ret]probe().

In linux/uprobe.h, most of the data-structure definitions (and
associated #includes) are hidden behind #ifdef UPROBES_IMPLEMENTATION.
So it's possible that your uprobes modules will need to add #includes
that previously happened to be provided by uprobes.h.

Comments welcome, as always.

Jim Keniston
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 1-uprobes-base.patch
Type: text/x-patch
Size: 68949 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/systemtap/attachments/20070526/24857b8d/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 2-uprobes-ssol.patch
Type: text/x-patch
Size: 27162 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/systemtap/attachments/20070526/24857b8d/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 3-uretprobes.patch
Type: text/x-patch
Size: 32730 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/systemtap/attachments/20070526/24857b8d/attachment-0002.bin>


More information about the Systemtap mailing list