diff options
author | Oleg Nesterov <[email protected]> | 2012-05-29 21:27:44 +0200 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2012-06-06 17:13:59 +0200 |
commit | c00b275043adc14d668f36266b890f0c53d46640 (patch) | |
tree | cdb6db30f3f0d18049079d7a014f6561e056eb06 /lib/string_helpers.c | |
parent | 436d03faf6961b30e13b2d0967aea9d772d6cf44 (diff) |
uprobes: Optimize is_swbp_at_addr() for current->mm
Change is_swbp_at_addr() to try to avoid the costly
read_opcode() if mm == current->mm, __copy_from_user_inatomic()
should succeed in the likely case.
Currently this optimization is not important, but we are going
to add more is_swbp_at_addr(current->mm) callers.
Signed-off-by: Oleg Nesterov <[email protected]>
Acked-by: Srikar Dronamraju <[email protected]>
Cc: Ananth N Mavinakayanahalli <[email protected]>
Cc: Anton Arapov <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Masami Hiramatsu <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions