]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
uprobes: Change handle_swbp() to expose bp_vaddr to handler_chain()
authorOleg Nesterov <oleg@redhat.com>
Sun, 30 Dec 2012 14:54:08 +0000 (15:54 +0100)
committerOleg Nesterov <oleg@redhat.com>
Fri, 8 Feb 2013 16:47:11 +0000 (17:47 +0100)
commit74e59dfc6b19e3472a7c16ad57bc831e6e647895
tree5047f177b6c604f83d4b9f62614acf93a08d34bd
parentcf31ec3f7fece93f3fce3ee5964e27857141ea47
uprobes: Change handle_swbp() to expose bp_vaddr to handler_chain()

Change handle_swbp() to set regs->ip = bp_vaddr in advance, this is
what consumer->handler() needs but uprobe_get_swbp_addr() is not
exported.

This also simplifies the code and makes it more consistent across
the supported architectures. handle_swbp() becomes the only caller
of uprobe_get_swbp_addr().

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Acked-by: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
arch/x86/kernel/uprobes.c
kernel/events/uprobes.c
kernel/trace/trace_uprobe.c