uprobes: Introduce copy_opcode(), kill read_opcode()
authorOleg Nesterov <oleg@redhat.com>
Sun, 23 Sep 2012 19:10:18 +0000 (21:10 +0200)
committerOleg Nesterov <oleg@redhat.com>
Sat, 29 Sep 2012 19:21:54 +0000 (21:21 +0200)
commitcceb55aab73d2aea8f4d6f7414d2e1b647a3dacb
tree3da300ea711b72be0d5dc846d65f94695c5a7ed5
parente97f65a17deafacc360a4cb75ae944897ecea6d7
uprobes: Introduce copy_opcode(), kill read_opcode()

No functional changes, preparations.

1. Extract the kmap-and-memcpy code from read_opcode() into the
   new trivial helper, copy_opcode(). The next patch will add
   another user.

2. read_opcode() becomes really trivial, fold it into its single
   caller, is_swbp_at_addr().

3. Remove "auprobe" argument from write_opcode(), it is not used
   since f403072c6.

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Acked-by: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
kernel/events/uprobes.c