Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1763342AbdDSMwx (ORCPT ); Wed, 19 Apr 2017 08:52:53 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:40811 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S934109AbdDSMws (ORCPT ); Wed, 19 Apr 2017 08:52:48 -0400 From: "Naveen N. Rao" To: Michael Ellerman Cc: Ananth N Mavinakayanahalli , Masami Hiramatsu , Ingo Molnar , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 0/6] powerpc: add support for KPROBES_ON_FTRACE Date: Wed, 19 Apr 2017 18:22:22 +0530 X-Mailer: git-send-email 2.12.1 X-TM-AS-MML: disable x-cbid: 17041912-0008-0000-0000-000005586273 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17041912-0009-0000-0000-000013653BFF Message-Id: X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-04-19_10:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1703280000 definitions=main-1704190113 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1480 Lines: 39 v3: https://www.mail-archive.com/linuxppc-dev@lists.ozlabs.org/msg116800.html For v4, patch 5/6 is new and has been moved into this series. It has also been updated to use strlcat() instead of strncat(). No other changes. Also, though patch 3/6 is generic, it needs to be carried in this series as we crash on powerpc without that patch. - Naveen Masami Hiramatsu (1): kprobes: Skip preparing optprobe if the probe is ftrace-based Naveen N. Rao (5): powerpc: ftrace: minor cleanup powerpc: ftrace: restore LR from pt_regs powerpc: kprobes: add support for KPROBES_ON_FTRACE powerpc: introduce a new helper to obtain function entry points powerpc: kprobes: prefer ftrace when probing function entry .../debug/kprobes-on-ftrace/arch-support.txt | 2 +- arch/powerpc/Kconfig | 1 + arch/powerpc/include/asm/code-patching.h | 37 ++++++++ arch/powerpc/include/asm/kprobes.h | 10 ++ arch/powerpc/kernel/Makefile | 3 + arch/powerpc/kernel/entry_64.S | 19 ++-- arch/powerpc/kernel/kprobes-ftrace.c | 104 +++++++++++++++++++++ arch/powerpc/kernel/kprobes.c | 25 ++++- arch/powerpc/kernel/optprobes.c | 6 +- kernel/kprobes.c | 11 ++- 10 files changed, 199 insertions(+), 19 deletions(-) create mode 100644 arch/powerpc/kernel/kprobes-ftrace.c -- 2.12.1