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


mingo wrote:

> [...]  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 [...]

The entire criterion is not easy to check at the binary point.  In
particular, it is hard to tell whether some part of the overlaid
instruction sequence is the possible target of a branch elsewhere.

> Userspace would have to do something like this anyway (unless i'm
> missing something), correct? [...]

Yes, but debug- or symbol-consuming userspace would have more
information to judge from.

- FChE


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