From patchwork Mon Dec 16 04:08:40 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Long X-Patchwork-Id: 22494 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ie0-f199.google.com (mail-ie0-f199.google.com [209.85.223.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 1890A23FC7 for ; Mon, 16 Dec 2013 04:09:07 +0000 (UTC) Received: by mail-ie0-f199.google.com with SMTP id lx4sf16469353iec.6 for ; Sun, 15 Dec 2013 20:09:06 -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=PjUAi/jJot4zfjimXF7PCpeD2wABBtMm1NNsSD0+AO8=; b=Hj9IUY6XtMnvS5UK3mFUO5kHCQqy8mLV1aBsCqzrFSiFJSc+HVw66Y/ayFhVy/ybwT ZQbpJsxKqeoOHDonXKS/snkkXPVPLPVnmJrFd8tMDV2RInkNBuz1FVUIJ7ccu8cSRFlL iR+UaIaPXRzWZJQFcBp1Dm7/tcrjKPpGdUX+AH6tQJ0qSDRLyrq5Qv8mCR1bjx2uPDeo 9p7UwChcJVJkndwZ0ar6rzcsKgGBsLOgaEPXyviNyb0UcG4l3vefWyFn61xd2JwjNiUh ZQK1JwZKrL3K14wEDb9mKgqGH3sveI9YclpU/GaoujtanPNIUs114d2xzaYHM0WMFdzP eUdA== X-Gm-Message-State: ALoCoQkdx3d1fcQ71C5jEBCx4qZaMXWSuImF8aGkKcjaAkdjowiYskJAl31IUXvU6LWT5uTPhcTy X-Received: by 10.42.66.147 with SMTP id p19mr4715831ici.12.1387166946672; Sun, 15 Dec 2013 20:09:06 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.116.42 with SMTP id jt10ls1763240qeb.66.gmail; Sun, 15 Dec 2013 20:09:06 -0800 (PST) X-Received: by 10.52.230.102 with SMTP id sx6mr6226902vdc.15.1387166946579; Sun, 15 Dec 2013 20:09:06 -0800 (PST) Received: from mail-vc0-f174.google.com (mail-vc0-f174.google.com [209.85.220.174]) by mx.google.com with ESMTPS id s4si3642793vcy.136.2013.12.15.20.09.06 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 15 Dec 2013 20:09:06 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.174 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.174; Received: by mail-vc0-f174.google.com with SMTP id id10so2771331vcb.5 for ; Sun, 15 Dec 2013 20:09:06 -0800 (PST) X-Received: by 10.58.146.71 with SMTP id ta7mr3079078veb.23.1387166946515; Sun, 15 Dec 2013 20:09:06 -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 u4csp69925vcz; Sun, 15 Dec 2013 20:09:06 -0800 (PST) X-Received: by 10.224.57.68 with SMTP id b4mr28500274qah.99.1387166946118; Sun, 15 Dec 2013 20:09:06 -0800 (PST) Received: from mail-qc0-f181.google.com (mail-qc0-f181.google.com [209.85.216.181]) by mx.google.com with ESMTPS id s5si8088108qas.83.2013.12.15.20.09.05 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 15 Dec 2013 20:09:06 -0800 (PST) Received-SPF: neutral (google.com: 209.85.216.181 is neither permitted nor denied by best guess record for domain of dave.long@linaro.org) client-ip=209.85.216.181; Received: by mail-qc0-f181.google.com with SMTP id e9so3240513qcy.40 for ; Sun, 15 Dec 2013 20:09:05 -0800 (PST) X-Received: by 10.224.34.71 with SMTP id k7mr5656433qad.15.1387166945908; Sun, 15 Dec 2013 20:09:05 -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 hb2sm36013890qeb.6.2013.12.15.20.09.04 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 15 Dec 2013 20:09:05 -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 v4 06/16] ARM: Disable jprobes test when built into thumb-mode kernel Date: Sun, 15 Dec 2013 23:08:40 -0500 Message-Id: <1387166930-13182-7-git-send-email-dave.long@linaro.org> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1387166930-13182-1-git-send-email-dave.long@linaro.org> References: <1387166930-13182-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.174 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: "Jon Medhurst (Tixy)" 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");