uprobes: Export write_opcode() as uprobe_write_opcode()
authorOleg Nesterov <oleg@redhat.com>
Tue, 5 Nov 2013 18:50:39 +0000 (19:50 +0100)
committerOleg Nesterov <oleg@redhat.com>
Wed, 6 Nov 2013 19:00:09 +0000 (20:00 +0100)
commitf72d41fa902fb19a9b63028202a400b0ce497491
tree8e8b3caaa53d5328a3d8599c59ad78ab90e79d95
parent8a8de66c4f6ebd0f6d3da026ec24339aa5d1db12
uprobes: Export write_opcode() as uprobe_write_opcode()

set_swbp() and set_orig_insn() are __weak, but this is pointless
because write_opcode() is static.

Export write_opcode() as uprobe_write_opcode() for the upcoming
arm port, this way it can actually override set_swbp() and use
__opcode_to_mem_arm(bpinsn) instead if UPROBE_SWBP_INSN.

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
include/linux/uprobes.h
kernel/events/uprobes.c