From patchwork Tue Mar 11 16:54:52 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Jon Medhurst \(Tixy\)" X-Patchwork-Id: 26044 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ve0-f199.google.com (mail-ve0-f199.google.com [209.85.128.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 6D80D202E1 for ; Tue, 11 Mar 2014 16:57:34 +0000 (UTC) Received: by mail-ve0-f199.google.com with SMTP id cz12sf22297465veb.2 for ; Tue, 11 Mar 2014 09:57:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:subject:date:message-id :in-reply-to:references:cc:precedence:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:mime-version:sender :errors-to:x-original-sender:x-original-authentication-results :mailing-list:content-type:content-transfer-encoding; bh=v2iPI3V7EVBjfixXvznwxNiMdIW1zqCAWNPGWJ8RUIY=; b=M3k0TCrDrOT6uAS5xvB23QnyfLsfb3MYtYzW9W1FOTtFXLS8DPd6wSpukAfnNgJWXp 0m3fKR9F1F/stwEr3BoTEaLJBmbmC6tMxNDK2rii2eXnhHYFA2OZbH4/45hPbv+YKxRL zQg411pjOoY0X9/PwntkwD8Dehhj4oxbjuhEqX9gRMIbICA3n/lHasrLeyxzoCstZFYx Cti2TmR27KisJIp1UcqBSkhgrMjV6j0Apybx4TYV4JiVR8BvJ6Ne8w680rtoGKvFAXwr 3+tOYdht5ei5p6nbqdCxXNUGvv5h7F0Wsm1EguOyucntizG7JJDAhOTyBdvgXXULBODh hsnA== X-Gm-Message-State: ALoCoQkR7IpXwMjh7tA5q4K8aBuxF/cTIIH9jO1N4YDJu8gE8AGELeVh7uqw6o5ffMZMq/Uw8bJy X-Received: by 10.236.18.196 with SMTP id l44mr15399666yhl.52.1394557054192; Tue, 11 Mar 2014 09:57:34 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.96.200 with SMTP id k66ls2747263qge.85.gmail; Tue, 11 Mar 2014 09:57:34 -0700 (PDT) X-Received: by 10.58.37.232 with SMTP id b8mr1530390vek.27.1394557054033; Tue, 11 Mar 2014 09:57:34 -0700 (PDT) Received: from mail-vc0-f172.google.com (mail-vc0-f172.google.com [209.85.220.172]) by mx.google.com with ESMTPS id u1si5934053vek.105.2014.03.11.09.57.34 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 11 Mar 2014 09:57:34 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.172 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.172; Received: by mail-vc0-f172.google.com with SMTP id la4so5390508vcb.17 for ; Tue, 11 Mar 2014 09:57:34 -0700 (PDT) X-Received: by 10.220.12.140 with SMTP id x12mr27952057vcx.19.1394557053945; Tue, 11 Mar 2014 09:57:33 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.78.9 with SMTP id i9csp219488vck; Tue, 11 Mar 2014 09:57:33 -0700 (PDT) X-Received: by 10.180.21.225 with SMTP id y1mr3696336wie.24.1394557052803; Tue, 11 Mar 2014 09:57:32 -0700 (PDT) Received: from casper.infradead.org (casper.infradead.org. [2001:770:15f::2]) by mx.google.com with ESMTPS id md18si1942358wic.30.2014.03.11.09.57.32 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 11 Mar 2014 09:57:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:770:15f::2 as permitted sender) client-ip=2001:770:15f::2; Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WNPyR-0001p2-Ok; Tue, 11 Mar 2014 16:56:16 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WNPyG-0005DG-Rh; Tue, 11 Mar 2014 16:56:04 +0000 Received: from smarthost01c.mail.zen.net.uk ([212.23.1.5]) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WNPy3-0005AX-47 for linux-arm-kernel@lists.infradead.org; Tue, 11 Mar 2014 16:55:51 +0000 Received: from [82.69.122.217] (helo=plug1) by smarthost01c.mail.zen.net.uk with esmtpsa (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1WNPxa-0009QV-PA; Tue, 11 Mar 2014 16:55:22 +0000 Received: from linaro1 ([192.168.2.110] helo=linaro1.home) by plug1 with esmtp (Exim 4.80) (envelope-from ) id 1WNPxR-00024q-Du; Tue, 11 Mar 2014 16:55:13 +0000 Received: from tixy by linaro1.home with local (Exim 4.80) (envelope-from ) id 1WNPxV-0004qW-Ty; Tue, 11 Mar 2014 16:55:17 +0000 From: Jon Medhurst To: David Long Subject: [PATCH 1/3] ARM: kprobes: Prevent known test failures stopping other tests running Date: Tue, 11 Mar 2014 16:54:52 +0000 Message-Id: <1394556894-18592-2-git-send-email-tixy@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1394556894-18592-1-git-send-email-tixy@linaro.org> References: <1394556894-18592-1-git-send-email-tixy@linaro.org> X-Originating-smarthost01c-IP: [82.69.122.217] X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140311_125551_265288_17F47536 X-CRM114-Status: GOOD ( 11.95 ) X-Spam-Score: -1.9 (-) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-1.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [212.23.1.5 listed in list.dnswl.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: linaro-kernel@lists.linaro.org, Russell King , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: tixy@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.172 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 Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 Due to a long-standing issue with Thumb symbol lookup [1] the jprobes tests fail when built into a kernel compiled as Thumb mode. (They work fine for ARM mode kernels or for Thumb when built as a loadable module.) Rather than have this problem terminate testing prematurely lets instead emit an error message and carry on with the main kprobes tests, delaying the final failure report until the end. [1] http://lists.infradead.org/pipermail/linux-arm-kernel/2011-August/063026.html Signed-off-by: Jon Medhurst --- 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 c2fd06b..6de5e94 100644 --- a/arch/arm/kernel/kprobes-test.c +++ b/arch/arm/kernel/kprobes-test.c @@ -225,6 +225,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 @@ -461,6 +462,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\n"); + tests_failed = ret; + ret = 0; + } +#endif if (ret < 0) return ret; @@ -1671,6 +1679,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");