Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1186705 > unrolled thread

[PATCH V2 2/2] kprobes: Mark OPTPROBES na for powerpc

Started byAnanth N Mavinakayanahalli <ananth@in.ibm.com>
First post2015-07-17 13:00 +0200
Last post2015-07-17 13:00 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH V2 2/2] kprobes: Mark OPTPROBES na for powerpc Ananth N Mavinakayanahalli <ananth@in.ibm.com> - 2015-07-17 13:00 +0200

#1186705 — [PATCH V2 2/2] kprobes: Mark OPTPROBES na for powerpc

FromAnanth N Mavinakayanahalli <ananth@in.ibm.com>
Date2015-07-17 13:00 +0200
Subject[PATCH V2 2/2] kprobes: Mark OPTPROBES na for powerpc
Message-ID<pNbwZ-3cw-9@gated-at.bofh.it>
Kprobes uses a breakpoint instruction to trap into execution flow
and the probed instruction is single-stepped from an alternate location.

On some architectures like x86, under certain conditions, the OPTPROBES
feature enables replacing the probed instruction with a jump instead,
resulting in a significant perfomance boost (one single-step exception
is bypassed for each kprobe).

Powerpc has an in-kernel instruction emulator. Kprobes on powerpc uses
this emulator already and bypasses the single-step exception, with a
lot less complexity.

Hence, mark OPTPROBES na for powerpc.

Signed-off-by: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
---
 .../features/debug/optprobes/arch-support.txt      |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/features/debug/optprobes/arch-support.txt b/Documentation/features/debug/optprobes/arch-support.txt
index b8999d8..73662f9 100644
--- a/Documentation/features/debug/optprobes/arch-support.txt
+++ b/Documentation/features/debug/optprobes/arch-support.txt
@@ -27,7 +27,7 @@
     |       nios2: | TODO |
     |    openrisc: | TODO |
     |      parisc: | TODO |
-    |     powerpc: | TODO |
+    |     powerpc: |  na  |
     |        s390: | TODO |
     |       score: | TODO |
     |          sh: | TODO |

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web