From patchwork Tue Jul 15 17:00:31 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: sam-the-6 X-Patchwork-Id: 33689 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f197.google.com (mail-qc0-f197.google.com [209.85.216.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 1107A21141 for ; Tue, 15 Jul 2014 17:26:38 +0000 (UTC) Received: by mail-qc0-f197.google.com with SMTP id x13sf3411240qcv.0 for ; Tue, 15 Jul 2014 10:26:37 -0700 (PDT) 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:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=YoNBU8W0qCsM0dBrVlSqBgXHqMMA2l1XFd1E1gAurWU=; b=MvFnsVgg65ARjD1pTmayaM/JINIjGXwLmttVbCGJoFMkJ6UQ7E5HgAYHE59Dj8bs22 lwnkOLI8xekvIlCCywJW7kT45viuJIpxYiapJgkgwUPXXy9C+oDWI7HS+thg8Uyb1x7R 9km5PvuEjaKDKnEQSuQUP+m+npQGX+CZLiy7yTp8t3OUopH++25C0O0SLkK1SxSaPDF0 G8yVTrD+CllbwIw8mhtag56MgxIo/9VqA2j3FcsEU93T4oxW00mfJxcQOmWQL2XTKqnz FYEzK0Ebbm5lXR+/gjPm8rBAETx5eHjvM7vaCtJGL3maGPno5Iy1T5u+pvzYbJ/J1i0w LqsQ== X-Gm-Message-State: ALoCoQkzzCGrkrd1PXKXpRHZVs3a95e/GBHT6spWz0Vcy9R54ee1jsamtgWQd/n0Vwvu9PwGtggq X-Received: by 10.236.197.226 with SMTP id t62mr9804681yhn.50.1405445197939; Tue, 15 Jul 2014 10:26:37 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.18.194 with SMTP id 60ls175958qgf.7.gmail; Tue, 15 Jul 2014 10:26:37 -0700 (PDT) X-Received: by 10.220.182.5 with SMTP id ca5mr2311932vcb.50.1405445197863; Tue, 15 Jul 2014 10:26:37 -0700 (PDT) Received: from mail-vc0-x232.google.com (mail-vc0-x232.google.com [2607:f8b0:400c:c03::232]) by mx.google.com with ESMTPS id iw8si7071855vdb.59.2014.07.15.10.26.37 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 15 Jul 2014 10:26:37 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2607:f8b0:400c:c03::232 as permitted sender) client-ip=2607:f8b0:400c:c03::232; Received: by mail-vc0-f178.google.com with SMTP id la4so4190465vcb.23 for ; Tue, 15 Jul 2014 10:26:37 -0700 (PDT) X-Received: by 10.220.200.71 with SMTP id ev7mr10539717vcb.24.1405445197783; Tue, 15 Jul 2014 10:26:37 -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.221.37.5 with SMTP id tc5csp232227vcb; Tue, 15 Jul 2014 10:26:37 -0700 (PDT) X-Received: by 10.70.87.138 with SMTP id ay10mr23898241pdb.103.1405445196842; Tue, 15 Jul 2014 10:26:36 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id od9si6149335pdb.38.2014.07.15.10.26.36; Tue, 15 Jul 2014 10:26:36 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759054AbaGOR0Q (ORCPT + 28 others); Tue, 15 Jul 2014 13:26:16 -0400 Received: from mail-wg0-f51.google.com ([74.125.82.51]:38701 "EHLO mail-wg0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755153AbaGORCI (ORCPT ); Tue, 15 Jul 2014 13:02:08 -0400 Received: by mail-wg0-f51.google.com with SMTP id b13so3815034wgh.22 for ; Tue, 15 Jul 2014 10:02:06 -0700 (PDT) X-Received: by 10.180.89.233 with SMTP id br9mr7035605wib.14.1405443726910; Tue, 15 Jul 2014 10:02:06 -0700 (PDT) Received: from Debian ([94.54.73.8]) by mx.google.com with ESMTPSA id r14sm5809863wik.3.2014.07.15.10.02.05 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 15 Jul 2014 10:02:06 -0700 (PDT) Received: from sam by Debian with local (Exim 4.80) (envelope-from ) id 1X7678-00040J-Gv; Tue, 15 Jul 2014 20:02:02 +0300 From: Sam Asadi To: gregkh@linuxfoundation.org Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, Jon Medhurst , sam-the-6 Subject: [PATCH 16/94] ARM: kprobes: Prevent known test failures stopping other tests running Date: Tue, 15 Jul 2014 20:00:31 +0300 Message-Id: <1405443709-15288-16-git-send-email-asadi.samuel@gmail.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1405443709-15288-1-git-send-email-asadi.samuel@gmail.com> References: <1405443709-15288-1-git-send-email-asadi.samuel@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Original-Sender: asadi.samuel@gmail.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2607:f8b0:400c:c03::232 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org; dkim=neutral (body hash did not verify) header.i=@; dmarc=fail (p=NONE dis=NONE) header.from=gmail.com Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Jon Medhurst 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 Signed-off-by: sam-the-6 --- 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");