From patchwork Wed Nov 27 02:53:28 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Long X-Patchwork-Id: 21794 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f69.google.com (mail-oa0-f69.google.com [209.85.219.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 50DB8202DA for ; Wed, 27 Nov 2013 02:53:54 +0000 (UTC) Received: by mail-oa0-f69.google.com with SMTP id h16sf22008629oag.8 for ; Tue, 26 Nov 2013 18:53:53 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=Wnb53/wKPqvLTVp8PwHXSSL8YxEYgTb8toxYHwr4yD4=; b=BjxYUuwOoT2aoh8Y+Am07Ut4Nyi/h+8YmBqhDD/9ti9Zah+q+DtZQHe3vkB8ppMmfs xNczwt8uFctfksNU9/dblgtJu3RmO2pM8ILEUuQFOpO6wjjyzb8HO3EWU9jDSsEd4G+b ptiE/6PqA9JTXmH3O4XJWzPOl2lSA/p6j2VcfhRABs/opods2UvI1hIMCGbJgTUJ0EPE HDrBo7JiHm4d7k9BimfBrkKGJWY0Aa8xz1XM4cFoZcZTfK1iEn85iP8E9TeuBwQbOavV CKrqZFrZNXjQMngggNrIhmFaLqmgAxIJhk+iO2pQMsKHjxo2PhIu+KcPptLWWZSCA0cW jXlQ== X-Gm-Message-State: ALoCoQn/KRJQOnB6VqUwLrMubC/FfFYagV+6CmV4517FUl6fQApU5MZqncN6CTL0GVYjmf4iSCP0 X-Received: by 10.182.204.33 with SMTP id kv1mr11791133obc.26.1385520833947; Tue, 26 Nov 2013 18:53:53 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.118.233 with SMTP id kp9ls2345259qeb.4.gmail; Tue, 26 Nov 2013 18:53:53 -0800 (PST) X-Received: by 10.221.24.70 with SMTP id rd6mr228648vcb.42.1385520833873; Tue, 26 Nov 2013 18:53:53 -0800 (PST) Received: from mail-vc0-f176.google.com (mail-vc0-f176.google.com [209.85.220.176]) by mx.google.com with ESMTPS id lu1si20379991vcb.88.2013.11.26.18.53.53 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 26 Nov 2013 18:53:53 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.176 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.176; Received: by mail-vc0-f176.google.com with SMTP id lf12so4478033vcb.35 for ; Tue, 26 Nov 2013 18:53:53 -0800 (PST) X-Received: by 10.220.173.134 with SMTP id p6mr273835vcz.36.1385520833798; Tue, 26 Nov 2013 18:53:53 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp254141vcz; Tue, 26 Nov 2013 18:53:53 -0800 (PST) X-Received: by 10.224.56.5 with SMTP id w5mr61566773qag.60.1385520833316; Tue, 26 Nov 2013 18:53:53 -0800 (PST) Received: from mail-qa0-f48.google.com (mail-qa0-f48.google.com [209.85.216.48]) by mx.google.com with ESMTPS id q6si13171863qag.24.2013.11.26.18.53.53 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 26 Nov 2013 18:53:53 -0800 (PST) Received-SPF: neutral (google.com: 209.85.216.48 is neither permitted nor denied by best guess record for domain of dave.long@linaro.org) client-ip=209.85.216.48; Received: by mail-qa0-f48.google.com with SMTP id w5so9339881qac.14 for ; Tue, 26 Nov 2013 18:53:53 -0800 (PST) X-Received: by 10.49.53.66 with SMTP id z2mr19864484qeo.45.1385520833141; Tue, 26 Nov 2013 18:53:53 -0800 (PST) Received: from localhost.localdomain (pool-72-71-243-183.cncdnh.fast00.myfairpoint.net. [72.71.243.183]) by mx.google.com with ESMTPSA id fc16sm56880235qeb.3.2013.11.26.18.53.51 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 26 Nov 2013 18:53:52 -0800 (PST) From: David Long To: linux-arm-kernel@lists.infradead.org, Russell King Cc: Rabin Vincent , "Jon Medhurst (Tixy)" , Oleg Nesterov , Srikar Dronamraju , Ingo Molnar , Masami Hiramatsu , Ananth N Mavinakayanahalli , Anil S Keshavamurthy , , Peter Zijlstra , Paul Mackerras , Arnaldo Carvalho de Melo , linux-kernel@vger.kernel.org Subject: [PATCH v3 09/15] ARM: Make the kprobes condition_check symbol names more generic Date: Tue, 26 Nov 2013 21:53:28 -0500 Message-Id: <1385520814-10663-10-git-send-email-dave.long@linaro.org> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1385520814-10663-1-git-send-email-dave.long@linaro.org> References: <1385520814-10663-1-git-send-email-dave.long@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: dave.long@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.176 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: "David A. Long" In preparation for sharing the ARM kprobes instruction interpreting code with uprobes, make the symbols names less kprobes-specific. Signed-off-by: David A. Long --- arch/arm/include/asm/probes.h | 4 ++-- arch/arm/kernel/kprobes-thumb.c | 4 ++-- arch/arm/kernel/probes-arm.c | 2 +- arch/arm/kernel/probes-thumb.c | 2 +- arch/arm/kernel/probes.c | 2 +- arch/arm/kernel/probes.h | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/arch/arm/include/asm/probes.h b/arch/arm/include/asm/probes.h index 8032591..81b05b0 100644 --- a/arch/arm/include/asm/probes.h +++ b/arch/arm/include/asm/probes.h @@ -8,7 +8,7 @@ struct arch_specific_insn; typedef void (kprobe_insn_handler_t)(probes_opcode_t, struct arch_specific_insn *, struct pt_regs *); -typedef unsigned long (kprobe_check_cc)(unsigned long); +typedef unsigned long (probes_check_cc)(unsigned long); typedef void (kprobe_insn_singlestep_t)(probes_opcode_t, struct arch_specific_insn *, struct pt_regs *); @@ -18,7 +18,7 @@ typedef void (kprobe_insn_fn_t)(void); struct arch_specific_insn { probes_opcode_t *insn; kprobe_insn_handler_t *insn_handler; - kprobe_check_cc *insn_check_cc; + probes_check_cc *insn_check_cc; kprobe_insn_singlestep_t *insn_singlestep; kprobe_insn_fn_t *insn_fn; }; diff --git a/arch/arm/kernel/kprobes-thumb.c b/arch/arm/kernel/kprobes-thumb.c index bb45870..4f30217 100644 --- a/arch/arm/kernel/kprobes-thumb.c +++ b/arch/arm/kernel/kprobes-thumb.c @@ -70,7 +70,7 @@ t32_decode_cond_branch(probes_opcode_t insn, struct arch_specific_insn *asi, struct decode_header *d) { int cc = (insn >> 22) & 0xf; - asi->insn_check_cc = kprobe_condition_checks[cc]; + asi->insn_check_cc = probes_condition_checks[cc]; asi->insn_handler = t32_simulate_cond_branch; return INSN_GOOD_NO_SLOT; } @@ -424,7 +424,7 @@ t16_decode_cond_branch(probes_opcode_t insn, struct arch_specific_insn *asi, struct decode_header *d) { int cc = (insn >> 8) & 0xf; - asi->insn_check_cc = kprobe_condition_checks[cc]; + asi->insn_check_cc = probes_condition_checks[cc]; asi->insn_handler = t16_simulate_cond_branch; return INSN_GOOD_NO_SLOT; } diff --git a/arch/arm/kernel/probes-arm.c b/arch/arm/kernel/probes-arm.c index e50fb03..95ef3e3 100644 --- a/arch/arm/kernel/probes-arm.c +++ b/arch/arm/kernel/probes-arm.c @@ -726,7 +726,7 @@ arm_kprobe_decode_insn(probes_opcode_t insn, struct arch_specific_insn *asi, struct decode_header *actions) { asi->insn_singlestep = arm_singlestep; - asi->insn_check_cc = kprobe_condition_checks[insn>>28]; + asi->insn_check_cc = probes_condition_checks[insn>>28]; return kprobe_decode_insn(insn, asi, kprobe_decode_arm_table, false, (const union decode_item *) actions); } diff --git a/arch/arm/kernel/probes-thumb.c b/arch/arm/kernel/probes-thumb.c index e6dbbc3..055faf0 100644 --- a/arch/arm/kernel/probes-thumb.c +++ b/arch/arm/kernel/probes-thumb.c @@ -837,7 +837,7 @@ EXPORT_SYMBOL_GPL(kprobe_decode_thumb16_table); static unsigned long __kprobes thumb_check_cc(unsigned long cpsr) { if (unlikely(in_it_block(cpsr))) - return kprobe_condition_checks[current_cond(cpsr)](cpsr); + return probes_condition_checks[current_cond(cpsr)](cpsr); return true; } diff --git a/arch/arm/kernel/probes.c b/arch/arm/kernel/probes.c index 7354448..36fafd2 100644 --- a/arch/arm/kernel/probes.c +++ b/arch/arm/kernel/probes.c @@ -163,7 +163,7 @@ static unsigned long __kprobes __check_al(unsigned long cpsr) return true; } -kprobe_check_cc * const kprobe_condition_checks[16] = { +probes_check_cc * const probes_condition_checks[16] = { &__check_eq, &__check_ne, &__check_cs, &__check_cc, &__check_mi, &__check_pl, &__check_vs, &__check_vc, &__check_hi, &__check_ls, &__check_ge, &__check_lt, diff --git a/arch/arm/kernel/probes.h b/arch/arm/kernel/probes.h index c0536b1..e7c7a92 100644 --- a/arch/arm/kernel/probes.h +++ b/arch/arm/kernel/probes.h @@ -394,7 +394,7 @@ extern const union decode_item kprobe_decode_arm_table[]; extern const union decode_item kprobes_arm_actions[]; #endif -extern kprobe_check_cc * const kprobe_condition_checks[16]; +extern probes_check_cc * const probes_condition_checks[16]; int kprobe_decode_insn(probes_opcode_t insn, struct arch_specific_insn *asi,