--- v2
+++ vrfc
@@ -90,20 +90,13 @@
==============
- Number of probes which can be optimized is limited by the size of the area reserved.
-
- * TODO: Have a template based implementation that will alleviate the probe count by
- using a lesser space from the reserved area for optimization.
+
+ * TODO: Have a template based implementation that will alleviate the probe count by
+ using a lesser space from the reserved area for optimization.
- Currently instructions which can be emulated are the only candidates for optimization.
-
-Changes from RFC-v1:
------------------------
-- Detour buffer memory reservation code moved to optprobes.c
-- optimized_callback() is marked as NOKPROBE_SYMBOL.
-- Return NULL when there is no more slots to allocate from detour buffer.
-- Other comments by Masami are addressed.
Kindly let me know your suggestions and comments.
@@ -121,9 +114,9 @@
arch/powerpc/Kconfig | 1 +
arch/powerpc/include/asm/kprobes.h | 25 ++
arch/powerpc/kernel/Makefile | 1 +
- arch/powerpc/kernel/optprobes.c | 474 +++++++++++++++++++++
- arch/powerpc/kernel/optprobes_head.S | 108 +++++
- 6 files changed, 610 insertions(+), 1 deletion(-)
+ arch/powerpc/kernel/optprobes.c | 463 +++++++++++++++++++++
+ arch/powerpc/kernel/optprobes_head.S | 104 +++++
+ 6 files changed, 595 insertions(+), 1 deletion(-)
create mode 100644 arch/powerpc/kernel/optprobes.c
create mode 100644 arch/powerpc/kernel/optprobes_head.S