From patchwork Mon May 12 11:31:32 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: 29964 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yk0-f197.google.com (mail-yk0-f197.google.com [209.85.160.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id A4CC8203F3 for ; Mon, 12 May 2014 11:33:55 +0000 (UTC) Received: by mail-yk0-f197.google.com with SMTP id 19sf15983960ykq.0 for ; Mon, 12 May 2014 04:33:55 -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=8hpmToRise43/wpdZPsVqPHXAxJsS7O5/gxN8TQzQH8=; b=c4C9+4qjYwKpZR6dCATKGLmAJjUghp/4PFS70zMSb5iWSGK+P+CPfvgdLKI1U0OkJG R1x1D2Q3L9+g2KF4mbZq6TJ7rma/wVXeV6r9qWVRHC3WeFobi//rIMdzDUDH7K8DXanC aubkrLJVIO5HVtktdLpf3Nw0Ry1VkhZNHHRw16qUjAhEdcN8sVLl4xdZ72gKYYdi4iKS YS8wJ0uXiXmH0MZ1alDyaNL3F4DIcSlUw+UUwacHMdq5ncWhzx+j96LWvsdUAnI6r02o oKyZbzjss3q8uc1Yaoz/qwesRFPwxFz6PjmJVR9daZ5RlKj/vKyQRLX5zMWgfGtBZxFZ DopA== X-Gm-Message-State: ALoCoQmx0VfcxRLusd4Ml/kTEcVF9Cewys6i83EVUPkTCeFQsitw/w+9MAJ440C2Qd13XpWFINkl X-Received: by 10.58.94.232 with SMTP id df8mr13206113veb.23.1399894435489; Mon, 12 May 2014 04:33:55 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.91.201 with SMTP id z67ls1267909qgd.59.gmail; Mon, 12 May 2014 04:33:55 -0700 (PDT) X-Received: by 10.220.116.136 with SMTP id m8mr61369vcq.77.1399894435368; Mon, 12 May 2014 04:33:55 -0700 (PDT) Received: from mail-ve0-f173.google.com (mail-ve0-f173.google.com [209.85.128.173]) by mx.google.com with ESMTPS id sc7si2019940vdc.103.2014.05.12.04.33.55 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 12 May 2014 04:33:55 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.173 as permitted sender) client-ip=209.85.128.173; Received: by mail-ve0-f173.google.com with SMTP id pa12so8637705veb.32 for ; Mon, 12 May 2014 04:33:55 -0700 (PDT) X-Received: by 10.58.179.115 with SMTP id df19mr186011vec.41.1399894435292; Mon, 12 May 2014 04:33:55 -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.221.72 with SMTP id ib8csp61411vcb; Mon, 12 May 2014 04:33:54 -0700 (PDT) X-Received: by 10.224.126.9 with SMTP id a9mr37252072qas.39.1399894434855; Mon, 12 May 2014 04:33:54 -0700 (PDT) Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id e4si5821612qcc.47.2014.05.12.04.33.54 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 12 May 2014 04:33:54 -0700 (PDT) Received-SPF: none (google.com: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org does not designate permitted sender hosts) client-ip=2001:1868:205::9; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WjoSy-0002sn-Qf; Mon, 12 May 2014 11:32:20 +0000 Received: from smarthost01b.mail.zen.net.uk ([212.23.1.3]) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WjoSn-0002po-JB for linux-arm-kernel@lists.infradead.org; Mon, 12 May 2014 11:32:11 +0000 Received: from [82.69.122.217] (helo=plug1) by smarthost01b.mail.zen.net.uk with esmtpsa (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1WjoSM-000FD3-Dx; Mon, 12 May 2014 12:31:42 +0100 Received: from linaro1 ([192.168.2.110] helo=linaro1.home) by plug1 with esmtp (Exim 4.80) (envelope-from ) id 1WjoS9-0004Ya-QJ; Mon, 12 May 2014 12:31:29 +0100 Received: from tixy by linaro1.home with local (Exim 4.80) (envelope-from ) id 1WjoSI-00015n-7C; Mon, 12 May 2014 12:31:38 +0100 From: Jon Medhurst To: Russell King Subject: [PATCH RESEND 1/3] ARM: kprobes: Prevent known test failures stopping other tests running Date: Mon, 12 May 2014 12:31:32 +0100 Message-Id: <1399894294-4144-2-git-send-email-tixy@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1399894294-4144-1-git-send-email-tixy@linaro.org> References: <1399894294-4144-1-git-send-email-tixy@linaro.org> X-Originating-smarthost01b-IP: [82.69.122.217] X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140512_043209_822951_0E66F0DD X-CRM114-Status: GOOD ( 11.22 ) X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.3.2 on bombadil.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [212.23.1.3 listed in list.dnswl.org] Cc: 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=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.173 as permitted sender) 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 3796399..08d7312 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; @@ -1672,6 +1680,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");