Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757962AbbGQKxU (ORCPT ); Fri, 17 Jul 2015 06:53:20 -0400 Received: from e23smtp04.au.ibm.com ([202.81.31.146]:42663 "EHLO e23smtp04.au.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757819AbbGQKxS (ORCPT ); Fri, 17 Jul 2015 06:53:18 -0400 X-Helo: d23dlp01.au.ibm.com X-MailFrom: ananth@in.ibm.com X-RcptTo: linux-kernel@vger.kernel.org Subject: [PATCH V2 2/2] kprobes: Mark OPTPROBES na for powerpc From: Ananth N Mavinakayanahalli To: masami.hiramatsu.pt@hitachi.com, mpe@ellerman.id.au, mingo@kernel.org Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Date: Fri, 17 Jul 2015 16:22:17 +0530 Message-ID: <20150717105216.29162.4328.stgit@thinktux.in.ibm.com> In-Reply-To: <20150717105139.29162.31467.stgit@thinktux.in.ibm.com> References: <20150717105139.29162.31467.stgit@thinktux.in.ibm.com> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 15071710-0013-0000-0000-000001957100 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1538 Lines: 38 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 --- .../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/