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: 3351561 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id B80EDC0D4A for ; Mon, 16 Dec 2013 04:12:37 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 051DD20379 for ; Mon, 16 Dec 2013 04:12:37 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1860020378 for ; Mon, 16 Dec 2013 04:12:36 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VsPWH-000086-GV; Mon, 16 Dec 2013 04:11:02 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VsPVt-0007fc-LG; Mon, 16 Dec 2013 04:10:37 +0000 Received: from mail-qe0-f54.google.com ([209.85.128.54]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VsPUl-0007Ue-3j for linux-arm-kernel@lists.infradead.org; Mon, 16 Dec 2013 04:09:58 +0000 Received: by mail-qe0-f54.google.com with SMTP id cy11so3492341qeb.13 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:from:to:cc:subject:date:message-id:in-reply-to :references; bh=PjUAi/jJot4zfjimXF7PCpeD2wABBtMm1NNsSD0+AO8=; b=dQ/qbXtjLF5NEqLZ/++BL5rSIEwY8TgBQPxgBMfqdRxtb/YoC9/YBhyDYXnl/LiFpe Rhad1rIDdfFtTuAdD/4a3ES99xJ9ioP6EvWN6UGdZvD+sIlWiK94RFNSFVgc1KoebEJ/ 3hnS//wWAHTgiclJEdcBS8wBDDL2W77MlwOhe2Esdo1+DtlTOrNxLFeei/RMwfvQu2Je ipxTP1KBm2DM2X/q0cEsbUMIcnGavNv3eZM5aJZ59atY2PoyovUk9G6z2be0jF01ENRw QQAMZEKgA/9HfYI8C7MbOOivA90yVZCHNJrGZT1AeWw1DFiDVQbmrp6DuuD+lup9m/p0 49bQ== X-Gm-Message-State: ALoCoQmuaOpHy5C+RRW34sfNpqKt407udmWXIhlYtji18Z8WNOLu6awykwX0gSzJnp9aClUJY0N/ 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 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20131215_230927_272405_8CB14699 X-CRM114-Status: GOOD ( 11.77 ) X-Spam-Score: -2.6 (--) Cc: "Jon Medhurst \(Tixy\)" , Peter Zijlstra , Srikar Dronamraju , Oleg Nesterov , Anil S Keshavamurthy , linux-kernel@vger.kernel.org, Rabin Vincent , Ingo Molnar , Paul Mackerras , Arnaldo Carvalho de Melo , Masami Hiramatsu , davem@davemloft.net, Ananth N Mavinakayanahalli 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+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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");