From patchwork Mon Feb 10 07:38:57 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Long X-Patchwork-Id: 24390 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f71.google.com (mail-oa0-f71.google.com [209.85.219.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C7822202B2 for ; Mon, 10 Feb 2014 07:39:27 +0000 (UTC) Received: by mail-oa0-f71.google.com with SMTP id g12sf27662743oah.10 for ; Sun, 09 Feb 2014 23:39:26 -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=718dFHlzkrKFUIIcyjZY7Bz6LDdE4s1a1Zf3L9EflJc=; b=IMoc86zGQU2/xAQdqdn7JMxIubl8W4+XW/lLDq+UyBM+I8PEeUHhDmqNxBmq/TUVJS 3knRYr4DnBblxryDfFyFAAKMbdrTXvTiplIKdlqzaqXN6x1/Kz/2pHS/X+Rx28lTqGZ2 JPF8TaHErMHorlbU60racMdoAkQMw9E11ekNfl/deQCshzkZ7W9A1rfPEimtY7FZBFS+ cc4/n+Q3/yYN8C1pLvDSysAdm3TpmvzV3ec1VpBEDehs+UyLexppRmO4mkKIHyVRtIyR 4ACSP1FnAC6EjYBRkf347HBlDZb6SQNP1XJEkUTD55oVut0Y75LxHj3NLA1MNInPsGwJ k0qQ== X-Gm-Message-State: ALoCoQmdjgQFwMY+MCfFm1aTJCS+HX7cM2gVepyAYs2aU7cW2Px81RsxciWERDnSg/eTk1Z/uLsZ X-Received: by 10.42.51.141 with SMTP id e13mr5217284icg.28.1392017966894; Sun, 09 Feb 2014 23:39:26 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.80.98 with SMTP id b89ls1898886qgd.9.gmail; Sun, 09 Feb 2014 23:39:26 -0800 (PST) X-Received: by 10.220.10.2 with SMTP id n2mr44496vcn.26.1392017966813; Sun, 09 Feb 2014 23:39:26 -0800 (PST) Received: from mail-vc0-f176.google.com (mail-vc0-f176.google.com [209.85.220.176]) by mx.google.com with ESMTPS id os4si4553119vcb.97.2014.02.09.23.39.26 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 09 Feb 2014 23:39:26 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.176 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.176; Received: by mail-vc0-f176.google.com with SMTP id la4so4418456vcb.7 for ; Sun, 09 Feb 2014 23:39:26 -0800 (PST) X-Received: by 10.58.37.67 with SMTP id w3mr481211vej.22.1392017966727; Sun, 09 Feb 2014 23:39:26 -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 u4csp148197vcz; Sun, 9 Feb 2014 23:39:26 -0800 (PST) X-Received: by 10.140.107.53 with SMTP id g50mr42506660qgf.63.1392017966272; Sun, 09 Feb 2014 23:39:26 -0800 (PST) Received: from mail-qc0-f182.google.com (mail-qc0-f182.google.com [209.85.216.182]) by mx.google.com with ESMTPS id jm10si3116536qcb.64.2014.02.09.23.39.26 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 09 Feb 2014 23:39:26 -0800 (PST) Received-SPF: neutral (google.com: 209.85.216.182 is neither permitted nor denied by best guess record for domain of dave.long@linaro.org) client-ip=209.85.216.182; Received: by mail-qc0-f182.google.com with SMTP id c9so9854571qcz.41 for ; Sun, 09 Feb 2014 23:39:26 -0800 (PST) X-Received: by 10.229.84.198 with SMTP id k6mr27948696qcl.20.1392017966112; Sun, 09 Feb 2014 23:39:26 -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 k107sm22671621qgk.5.2014.02.09.23.39.23 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 09 Feb 2014 23:39:24 -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 v6 06/14] ARM: Disable jprobes test when built into thumb-mode kernel Date: Mon, 10 Feb 2014 02:38:57 -0500 Message-Id: <1392017945-4507-7-git-send-email-dave.long@linaro.org> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1392017945-4507-1-git-send-email-dave.long@linaro.org> References: <1392017945-4507-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.176 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)" Acked-by: Jon Medhurst 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");