• Masami Hiramatsu's avatar
    [IA64] kprobes: kprobe-booster for ia64 · 34e1ceb1
    Masami Hiramatsu authored
    Add kprobe-booster support on ia64.
    
    Kprobe-booster improves the performance of kprobes by eliminating single-step,
    where possible.  Currently, kprobe-booster is implemented on x86 and x86-64.
    This is an ia64 port.
    
    On ia64, kprobe-booster executes a copied bundle directly, instead of single
    stepping.  Bundles which have B or X unit and which may cause an exception
    (including break) are not executed directly.  And also, to prevent hitting
    break exceptions on the copied bundle, only the hindmost kprobe is executed
    directly if several kprobes share a bundle and are placed in different slots.
    Note: set_brl_inst() is used for preparing an instruction buffer(it does not
    modify any active code), so it does not need any atomic operation.
    Signed-off-by: default avatarMasami Hiramatsu <mhiramat@redhat.com>
    Cc: Anil S Keshavamurthy <anil.s.keshavamurthy@intel.com>
    Cc: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
    Cc: bibo,mao <bibo.mao@intel.com>
    Cc: Rusty Lynch <rusty.lynch@intel.com>
    Cc: Prasanna S Panchamukhi <prasanna@in.ibm.com>
    Cc: Jim Keniston <jkenisto@us.ibm.com>
    Cc: Shaohua Li <shaohua.li@intel.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarTony Luck <tony.luck@intel.com>
    34e1ceb1
kprobes.c 29.8 KB