This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC][PATCH 0/4][kprobe](djprobe) Direct jump optimized kprobes


On Tue, 2006-11-21 at 15:48 +0900, Masami Hiramatsu wrote:
> Hi Anil and Ingo,
> 
> I integrated the essence of the djprobe into kprobes. For this
> purpose, I introduced the length member in the kprobe structure.
> 
> If you'd like to use it, specify the length of the instructions
> which will be replaced by a jump code to that length member.
> (Of cause, you also have to check whether the instructions are
>  relocatable and don't include any jump target.) 

cool stuff!

I'm wondering whether it could be made a 100% transparent speedup to
kprobes: how hard would it be to do a simplified disassembly of the
target address to automate the 'this kprobe can safely be turned into a
djprobe transparently' step, and hence to make this change completely
invisible to user-space utilities? Userspace would have to do something
like this anyway (unless i'm missing something), correct?

It might also be useful to implement some sort of query functionality,
to enable userspace to see which probes are sped up and which are not.
This could be a list of all probe points in /sys or /proc or /debugfs -
or a syscall extension - whichever fits the purpose best.

also, it would be nice to submit to this Andrew for -mm inclusion.

	Ingo


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]