This is the mail archive of the
systemtap@sources.redhat.com
mailing list for the systemtap project.
Re: Dynamic djprobe (and summary of Q&A)
- From: Roland McGrath <roland at redhat dot com>
- To: fche at redhat dot com (Frank Ch. Eigler)
- Cc: systemtap at sources dot redhat dot com
- Date: Fri, 29 Jul 2005 13:47:34 -0700 (PDT)
- Subject: Re: Dynamic djprobe (and summary of Q&A)
I'm not at all clear on why anything at higher level should think about the
issue. The insertion of jump trampolines is an optimization over the
insertion of int3 breakpoints. The smarts should just be merged into
kprobes so that it uses the more efficient style when possible and falls
back when it's hard. That means, compute the length of the target
instruction and see how much space it allows for what kind of jump instruction.