From patchwork Thu Jan 23 20:05:49 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Long X-Patchwork-Id: 23645 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f69.google.com (mail-oa0-f69.google.com [209.85.219.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 9D8C2203C3 for ; Thu, 23 Jan 2014 20:06:15 +0000 (UTC) Received: by mail-oa0-f69.google.com with SMTP id h16sf8744128oag.8 for ; Thu, 23 Jan 2014 12:06:14 -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=BB3IOkQSBrfIVXJp06hWujCXkr8cHjspfveWdlEQNnTc/r2RKsgmWehbcf3veYVJT/ BGADH6Zu4BjwkihiD+HvfDaE5YeQGcVUY/pyIP6znDLsbUGWLhpSFjXbrVRL4Ln1iTN9 YLt84dff4nDuWFBXGD13EPOVbswSe+YiDsy0mxsNDCw/xJ0uhFH1jgm95wXs+AM0vUZN oCkcMROkv/wt4ACMhzPE1UQ8o7yAL+RkhcX34sLk+GKbrIsnOhTZygelrqIYURT8K9iT Odor813po8Z6kAhObQKvsa1/hsBrRcN2tWbWTjkFfjMlIzrWJOGdoI9elhAymnh6dBPv an/g== X-Gm-Message-State: ALoCoQnFbgzjMojUgnEzzleRtRaei+NitgCfnM24OVSLxcZ3v+UYbNV5uPscymPnspT9Icv78GHj X-Received: by 10.182.55.102 with SMTP id r6mr3778002obp.7.1390507574799; Thu, 23 Jan 2014 12:06:14 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.109.198 with SMTP id l64ls359753qgf.68.gmail; Thu, 23 Jan 2014 12:06:14 -0800 (PST) X-Received: by 10.58.201.169 with SMTP id kb9mr54311vec.42.1390507574684; Thu, 23 Jan 2014 12:06:14 -0800 (PST) Received: from mail-ve0-f172.google.com (mail-ve0-f172.google.com [209.85.128.172]) by mx.google.com with ESMTPS id w6si7220269vcz.8.2014.01.23.12.06.14 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 23 Jan 2014 12:06:14 -0800 (PST) Received-SPF: neutral (google.com: 209.85.128.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.128.172; Received: by mail-ve0-f172.google.com with SMTP id c14so1422317vea.31 for ; Thu, 23 Jan 2014 12:06:14 -0800 (PST) X-Received: by 10.220.186.68 with SMTP id cr4mr19740vcb.55.1390507574605; Thu, 23 Jan 2014 12:06:14 -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 u4csp51579vcz; Thu, 23 Jan 2014 12:06:13 -0800 (PST) X-Received: by 10.140.95.179 with SMTP id i48mr13898457qge.1.1390507571912; Thu, 23 Jan 2014 12:06:11 -0800 (PST) Received: from mail-qc0-f169.google.com (mail-qc0-f169.google.com [209.85.216.169]) by mx.google.com with ESMTPS id t3si7640951qas.78.2014.01.23.12.06.11 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 23 Jan 2014 12:06:11 -0800 (PST) Received-SPF: neutral (google.com: 209.85.216.169 is neither permitted nor denied by best guess record for domain of dave.long@linaro.org) client-ip=209.85.216.169; Received: by mail-qc0-f169.google.com with SMTP id w7so3227648qcr.0 for ; Thu, 23 Jan 2014 12:06:11 -0800 (PST) X-Received: by 10.224.34.71 with SMTP id k7mr14605534qad.15.1390507571705; Thu, 23 Jan 2014 12:06:11 -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 js9sm13677540qeb.9.2014.01.23.12.06.10 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 23 Jan 2014 12:06:11 -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 v5 06/16] ARM: Disable jprobes test when built into thumb-mode kernel Date: Thu, 23 Jan 2014 15:05:49 -0500 Message-Id: <1390507559-4697-7-git-send-email-dave.long@linaro.org> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1390507559-4697-1-git-send-email-dave.long@linaro.org> References: <1390507559-4697-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.128.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 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");