Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp4234687imm; Mon, 8 Oct 2018 17:57:13 -0700 (PDT) X-Google-Smtp-Source: ACcGV63+MoUox59d90j16d3puN5/S5dLOCvIKUS9P26NsNNp4CbHCQp1ww6Qt6fwV7sZDp6+J+or X-Received: by 2002:a17:902:9a04:: with SMTP id v4-v6mr25951201plp.247.1539046632988; Mon, 08 Oct 2018 17:57:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539046632; cv=none; d=google.com; s=arc-20160816; b=GMwGRCNJ0+I526e/dso6usoRauow+fNBdMkZ27wvruzeZ45+HekEDaxRmzLnN70BSn 3oxQiag0RnLQ7g5FEM4blP08ZJlQPs0FcaMRSaSTp+r5vDpDuRG8RfmeUqe9KrOTDqy4 q95PG5Oi3ac+5JFOxYm1dmbcZ771QfMm4HujZz1wei6f3c5Z/UL0wacq8rL20S/pUUO4 NH1lCEuGkUX9BoEKKfcnxNvcUgDNsXmpjlutM6EMzFWh7crjYfFM8OLvCpjVz7BXLK1n xpJ2HBvN9hfvCRWx2JvXksD/h4nNzl+dj6i8V6FxoaZusFdYEK3fOEfGlar0zUEeV9VS 2zdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=pU30F+L90gdNRoNnnyIz6dA+CkBxsUoNxRbFjOwUnxo=; b=zQrDh3Ok+Yp/UybE0BN+7sFZOxtDZcMN2zlxzYi7HsQG9f5Wn64qFMpu9rA2MR0N+d +NK35Gsfz750yqb3z3LG+LqUEnEl9iT2/zYxZZ9fN7SBsVQVmJmlX9ZMZMQdiWtqQKgS q5fuzOvOPeA7vhXyTqhb9LuIrAPdH62PzfmyxLFjOVbR2CIMTnCH9w10SdPpJoXfeJwY 70tSCdHUrD4iirkytS/lZ8TRBp9n3UG2Cawl0QC+ItZS2Sl8NLn+hb0X8Fmu0Oekn91n jYIu74SSsOz1SYQXixGX1NGK9BcVhNLDf+BgccRtmntk0KPOfdAAqs/39Aw18/5Ikf+B 2AkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=hKz2jcYR; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w3-v6si17389767pgl.159.2018.10.08.17.56.58; Mon, 08 Oct 2018 17:57:12 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=hKz2jcYR; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726827AbeJIIJW (ORCPT + 99 others); Tue, 9 Oct 2018 04:09:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:42060 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726786AbeJIIJV (ORCPT ); Tue, 9 Oct 2018 04:09:21 -0400 Received: from jouet.infradead.org (unknown [179.97.41.186]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 568532087D; Tue, 9 Oct 2018 00:54:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1539046499; bh=bK97mj6JCpYEiYxawBQbKp6SAOz1PMnV4kKGLtRRamE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hKz2jcYRMtHnarks3QUGbm7waRzKUjJzHXWbVWgNTM+Xk9DlqUxmXHymm+59g0m9O xmCPXZox+jT2QGrcLQdy23Q6XZzM9Q1u+bE15Gn43b5HKCmCUdvt9FvJf+QPEjszZI v90YqssXQlPzuvGBSKko5nIkRG2TK/enB5YXb9nk= From: Arnaldo Carvalho de Melo To: Ingo Molnar Cc: Clark Williams , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Thomas Richter , Heiko Carstens , Hendrik Brueckner , Martin Schwidefsky , Arnaldo Carvalho de Melo Subject: [PATCH 03/12] perf test: S390 does not support watchpoints in test 22 Date: Mon, 8 Oct 2018 21:54:18 -0300 Message-Id: <20181009005427.6607-4-acme@kernel.org> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20181009005427.6607-1-acme@kernel.org> References: <20181009005427.6607-1-acme@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Thomas Richter S390 does not support the perf_event_open system call for attribute type PERF_TYPE_BREAKPOINT. This results in test failure for test 22: [root@s8360046 perf]# ./perf test 22 22: Watchpoint : 22.1: Read Only Watchpoint : FAILED! 22.2: Write Only Watchpoint : FAILED! 22.3: Read / Write Watchpoint : FAILED! 22.4: Modify Watchpoint : FAILED! [root@s8360046 perf]# Add s390 support to avoid these tests being executed on s390 platform: [root@s8360046 perf]# ./perf test 22 [root@s8360046 perf]# ./perf test -v 22 22: Watchpoint : Disabled [root@s8360046 perf]# Signed-off-by: Thomas Richter Reviewed-by: Ravi Bangoria Cc: Heiko Carstens Cc: Hendrik Brueckner Cc: Martin Schwidefsky Link: http://lkml.kernel.org/r/20180928105335.67179-1-tmricht@linux.ibm.com Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/tests/builtin-test.c | 1 + tools/perf/tests/tests.h | 1 + tools/perf/tests/wp.c | 12 ++++++++++++ 3 files changed, 14 insertions(+) diff --git a/tools/perf/tests/builtin-test.c b/tools/perf/tests/builtin-test.c index 54ca7d87236f..12c09e0ece71 100644 --- a/tools/perf/tests/builtin-test.c +++ b/tools/perf/tests/builtin-test.c @@ -123,6 +123,7 @@ static struct test generic_tests[] = { { .desc = "Watchpoint", .func = test__wp, + .is_supported = test__wp_is_supported, .subtest = { .skip_if_fail = false, .get_nr = test__wp_subtest_get_nr, diff --git a/tools/perf/tests/tests.h b/tools/perf/tests/tests.h index 8e26a4148f30..b82f55fcc294 100644 --- a/tools/perf/tests/tests.h +++ b/tools/perf/tests/tests.h @@ -109,6 +109,7 @@ int test__unit_number__scnprint(struct test *test, int subtest); int test__mem2node(struct test *t, int subtest); bool test__bp_signal_is_supported(void); +bool test__wp_is_supported(void); #if defined(__arm__) || defined(__aarch64__) #ifdef HAVE_DWARF_UNWIND_SUPPORT diff --git a/tools/perf/tests/wp.c b/tools/perf/tests/wp.c index 017a99317f94..f89e6806557b 100644 --- a/tools/perf/tests/wp.c +++ b/tools/perf/tests/wp.c @@ -227,3 +227,15 @@ int test__wp(struct test *test __maybe_unused, int i) return !wp_testcase_table[i].target_func() ? TEST_OK : TEST_FAIL; } + +/* The s390 so far does not have support for + * instruction breakpoint using the perf_event_open() system call. + */ +bool test__wp_is_supported(void) +{ +#if defined(__s390x__) + return false; +#else + return true; +#endif +} -- 2.14.4