From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934523AbaH0NPs (ORCPT ); Wed, 27 Aug 2014 09:15:48 -0400 Received: from szxga02-in.huawei.com ([119.145.14.65]:22630 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934440AbaH0NPr (ORCPT ); Wed, 27 Aug 2014 09:15:47 -0400 From: Wang Nan To: Russell King , "David A. Long" , Jon Medhurst , Taras Kondratiuk , Ben Dooks , "Ananth N Mavinakayanahalli" , Anil S Keshavamurthy , "David S. Miller" , Masami Hiramatsu , Will Deacon CC: Wang Nan , Pei Feiyue , , Subject: [PATCH v5 0/3] kprobes: arm: enable OPTPROBES for ARM 32 Date: Wed, 27 Aug 2014 21:02:29 +0800 Message-ID: <1409144552-12751-1-git-send-email-wangnan0@huawei.com> X-Mailer: git-send-email 1.8.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.107.197.247] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Cc: "David A. Long" Cc: Jon Medhurst Cc: Taras Kondratiuk Cc: Ben Dooks Cc: Ananth N Mavinakayanahalli Cc: Anil S Keshavamurthy Cc: "David S. Miller" Cc: Masami Hiramatsu Cc: Will Deacon -- 1.8.4