• mao, bibo's avatar
    [PATCH] Kprobe: multi kprobe posthandler for booster · 36721656
    mao, bibo authored
    If there are multi kprobes on the same probepoint, there will be one extra
    aggr_kprobe on the head of kprobe list.  The aggr_kprobe has
    aggr_post_handler/aggr_break_handler whether the other kprobe
    post_hander/break_handler is NULL or not.  This patch modifies this, only
    when there is one or more kprobe in the list whose post_handler is not
    NULL, post_handler of aggr_kprobe will be set as aggr_post_handler.
    
    [soshima@redhat.com: !CONFIG_PREEMPT fix]
    Signed-off-by: default avatarbibo, mao <bibo.mao@intel.com>
    Cc: Masami Hiramatsu <hiramatu@sdl.hitachi.co.jp>
    Cc: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
    Cc: "Keshavamurthy, Anil S" <anil.s.keshavamurthy@intel.com>
    Cc: Prasanna S Panchamukhi <prasanna@in.ibm.com>
    Cc: Jim Keniston <jkenisto@us.ibm.com>
    Cc: Yumiko Sugita <sugita@sdl.hitachi.co.jp>
    Cc: Hideo Aoki <haoki@redhat.com>
    Signed-off-by: default avatarSatoshi Oshima <soshima@redhat.com>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    36721656
kprobes.c 21.6 KB