Thread (18 messages) flat view 18 messages, 5 authors, 2014-09-04
STALE4395d

[PATCH v5 0/3] kprobes: arm: enable OPTPROBES for ARM 32

From: Wang Nan <hidden>
Date: 2014-08-27 13:15:48
Also in: lkml

Following 3 patches are the 5th version of kprobe optimization for arm.
The main difference is disallowing optimize stack store instructions,
such as "str r0, [sp]" and "push {r0 - r4}".

The first patch improve arm instruction decoder to detect such
instructions, following 2 patches make it unoptimizable.

Wang Nan (3):
  ARM: probes: check stack operation when decoding
  kprobes: copy ainsn after alloc aggr kprobe
  kprobes: arm: enable OPTPROBES for ARM 32

 arch/arm/Kconfig                 |   1 +
 arch/arm/include/asm/kprobes.h   |  28 +++++
 arch/arm/include/asm/probes.h    |   1 +
 arch/arm/kernel/Makefile         |   3 +-
 arch/arm/kernel/kprobes-common.c |   4 +
 arch/arm/kernel/kprobes-opt.c    | 259 +++++++++++++++++++++++++++++++++++++++
 arch/arm/kernel/probes-arm.c     |   4 +-
 arch/arm/kernel/probes-thumb.c   |   6 +-
 arch/arm/kernel/probes.c         |  20 ++-
 arch/arm/kernel/probes.h         |   6 +
 kernel/kprobes.c                 |   7 +-
 11 files changed, 330 insertions(+), 9 deletions(-)
 create mode 100644 arch/arm/kernel/kprobes-opt.c

Cc: Russell King <redacted>
Cc: "David A. Long" <redacted> 
Cc: Jon Medhurst <redacted>
Cc: Taras Kondratiuk <redacted>
Cc: Ben Dooks <redacted>
Cc: Ananth N Mavinakayanahalli <redacted>
Cc: Anil S Keshavamurthy <redacted>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Masami Hiramatsu <redacted>
Cc: Will Deacon <redacted>

-- 
1.8.4
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help