From patchwork Wed Nov 27 02:53:25 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Long X-Patchwork-Id: 21791 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ie0-f200.google.com (mail-ie0-f200.google.com [209.85.223.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 68E2B202DA for ; Wed, 27 Nov 2013 02:53:50 +0000 (UTC) Received: by mail-ie0-f200.google.com with SMTP id at1sf21345942iec.7 for ; Tue, 26 Nov 2013 18:53:50 -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=DUvnHwbUIEqjLJX7nS5NVxgehzQwZ4wAPPDAH9JP7Rs=; b=dpU9M6corYIm0GMrRtv33iMQIrNjUaZbYjdT7Rd3+2cPq5kP9a0DMo0GxIryjlNWW/ k+NcJa9XarEFMIx7FkrBNvwjg50BJVgKltvLXu/eaK+IRZI4WbiS0yP/o+Dzn6PMPU/e QFaZxf078PtS05RbOuI8IumNEue0OqZabEeU4jXz0WwrWh7XDemIysN1Bi/QQCZUdQft N1GzcXbxeQxSD+cUuO+H0/qyzxMgPLcfdSGbnZa71SFNpVpbEFy6UlQoc1eT7Vza6aa7 zbLF7np13pkmC7E8ljiVRZbm0EGvyIzHIkNYt0FOqEkfjtURXw3+Wv6xDu5r4L1M0fhQ cfXg== X-Gm-Message-State: ALoCoQlZi/S+WrxCFKDHIpT4eu/COecjBvT/n/Fzgpa9m40spKKEisKecZDGeSQg8RcF3Or5aQXd X-Received: by 10.182.105.227 with SMTP id gp3mr12001849obb.23.1385520829842; Tue, 26 Nov 2013 18:53:49 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.15.70 with SMTP id v6ls982467qec.47.gmail; Tue, 26 Nov 2013 18:53:49 -0800 (PST) X-Received: by 10.52.244.15 with SMTP id xc15mr194369vdc.52.1385520829528; Tue, 26 Nov 2013 18:53:49 -0800 (PST) Received: from mail-vb0-f45.google.com (mail-vb0-f45.google.com [209.85.212.45]) by mx.google.com with ESMTPS id o7si20364471vcl.135.2013.11.26.18.53.49 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 26 Nov 2013 18:53:49 -0800 (PST) Received-SPF: neutral (google.com: 209.85.212.45 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.45; Received: by mail-vb0-f45.google.com with SMTP id p14so4594709vbm.32 for ; Tue, 26 Nov 2013 18:53:49 -0800 (PST) X-Received: by 10.221.19.5 with SMTP id qi5mr31792039vcb.15.1385520829448; Tue, 26 Nov 2013 18:53:49 -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 u4csp254133vcz; Tue, 26 Nov 2013 18:53:49 -0800 (PST) X-Received: by 10.49.17.232 with SMTP id r8mr62374587qed.74.1385520829106; Tue, 26 Nov 2013 18:53:49 -0800 (PST) Received: from mail-qa0-f45.google.com (mail-qa0-f45.google.com [209.85.216.45]) by mx.google.com with ESMTPS id q18si8179791qeu.6.2013.11.26.18.53.49 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 26 Nov 2013 18:53:49 -0800 (PST) Received-SPF: neutral (google.com: 209.85.216.45 is neither permitted nor denied by best guess record for domain of dave.long@linaro.org) client-ip=209.85.216.45; Received: by mail-qa0-f45.google.com with SMTP id o15so5208947qap.4 for ; Tue, 26 Nov 2013 18:53:49 -0800 (PST) X-Received: by 10.224.54.5 with SMTP id o5mr62904757qag.9.1385520828942; Tue, 26 Nov 2013 18:53:48 -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.46 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 26 Nov 2013 18:53:47 -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 06/15] ARM: Disable jprobes test when built into thumb-mode kernel Date: Tue, 26 Nov 2013 21:53:25 -0500 Message-Id: <1385520814-10663-7-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.212.45 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: "Jon Medhurst (Tixy)" For now the jprobes tests fail on ARM for when built into a kernel compiled in thumb mode. They work fine for ARM kernels, and when built as a loadable module. Signed-off-by: David A. Long --- arch/arm/kernel/kprobes-test.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/kernel/kprobes-test.c b/arch/arm/kernel/kprobes-test.c index 0cd63d0..65230b2 100644 --- a/arch/arm/kernel/kprobes-test.c +++ b/arch/arm/kernel/kprobes-test.c @@ -221,6 +221,7 @@ static int pre_handler_called; static int post_handler_called; static int jprobe_func_called; static int kretprobe_handler_called; +static int tests_failed; #define FUNC_ARG1 0x12345678 #define FUNC_ARG2 0xabcdef @@ -457,6 +458,13 @@ static int run_api_tests(long (*func)(long, long)) pr_info(" jprobe\n"); ret = test_jprobe(func); +#if defined(CONFIG_THUMB2_KERNEL) && !defined(MODULE) + if (ret == -EINVAL) { + pr_err("FAIL: Known longtime bug with jprobe on Thumb kernels"); + tests_failed = ret; + ret = 0; + } +#endif if (ret < 0) return ret; @@ -1667,6 +1675,8 @@ static int __init run_all_tests(void) out: if (ret == 0) + ret = tests_failed; + if (ret == 0) pr_info("Finished kprobe tests OK\n"); else pr_err("kprobe tests failed\n");