Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp4422473imm; Mon, 8 Oct 2018 22:30:06 -0700 (PDT) X-Google-Smtp-Source: ACcGV61ES3ywRSU5qU9XO9+siYb6qhfLcNsaWeN7Y3Ik31h4OmCS7MPZECRNl9QblpxFAMv312pH X-Received: by 2002:a17:902:780f:: with SMTP id p15-v6mr26460103pll.170.1539063006304; Mon, 08 Oct 2018 22:30:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539063006; cv=none; d=google.com; s=arc-20160816; b=LKlrXKUDt/fGUbC8nj+mThyFTXDzmFUXbPRvcSU09TN0HacXI4cDvWg3GzlNLK59jO CA9LqKuXGk89cLYzjGYkAjuknfo9qF9dpn5366ZKgguYNJdhjaDD/Pnv9kldzTiGrO9H 2HSEgEiWWB2ZrgUJKO3mIzHCM/grhw2J0pTPTp7A2ZmB6goYA+cIMrPcelGmS6HgBw12 gTv1y/NpOOGN4fn661TxqAS47MqjcGgQEQxhuGZFzaRMBNAus4oir7/+o8VOFg2tlJJc 7z2Tox45dIFZr9Fr4M3tiRB4WNbj8JFtilOFtTpzjVlvb76lc5iK08hSsEDJdWqh5JQ0 /t+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date; bh=zokYNj4Y4C1BzLy5r235htSW4IOaO+wQqIjBqWO3j6E=; b=Lmk0Zcy8UqOqyX0yqXA1GTwrtH3/bzj04mkclAswwpSb2BlVwD0NMrP1cfM6AUSw3Z g+gDF+QLAGxteRaJRg7aCGK0QJAn6WrBXBuAvi7KoN6ri8xsTnEQDTV+o30egDMyYukB Fina8YinP+B914qjbCc2MovhWM4nBhHrnvDLOzM0Ed0wnHQ+0JV0qXJek3x99RSGBv2O dbCvFh6ihXnXjrm1P6N7omdH8zEzQqXkuRQlV1YyzR4pz7aXl3CJaVRLfm5mIpobPka1 QAF9jRvt+xKXPpmV+s2ES5mRZ11ovvHADfJF2Z1aQRN2MaVBTuLfgCHNKmI23cBrwz4G y+LQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k8-v6si19621176plt.176.2018.10.08.22.29.51; Mon, 08 Oct 2018 22:30:06 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726529AbeJIMoN (ORCPT + 99 others); Tue, 9 Oct 2018 08:44:13 -0400 Received: from terminus.zytor.com ([198.137.202.136]:41647 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725828AbeJIMoN (ORCPT ); Tue, 9 Oct 2018 08:44:13 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id w995SscH909865 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 8 Oct 2018 22:28:54 -0700 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id w995SsQb909862; Mon, 8 Oct 2018 22:28:54 -0700 Date: Mon, 8 Oct 2018 22:28:54 -0700 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Thomas Richter Message-ID: Cc: hpa@zytor.com, schwidefsky@de.ibm.com, brueckner@linux.vnet.ibm.com, heiko.carstens@de.ibm.com, tglx@linutronix.de, linux-kernel@vger.kernel.org, acme@redhat.com, mingo@kernel.org, ravi.bangoria@linux.ibm.com, tmricht@linux.ibm.com Reply-To: tmricht@linux.ibm.com, ravi.bangoria@linux.ibm.com, mingo@kernel.org, acme@redhat.com, linux-kernel@vger.kernel.org, heiko.carstens@de.ibm.com, tglx@linutronix.de, brueckner@linux.vnet.ibm.com, schwidefsky@de.ibm.com, hpa@zytor.com In-Reply-To: <20180928105335.67179-1-tmricht@linux.ibm.com> References: <20180928105335.67179-1-tmricht@linux.ibm.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] perf test: S390 does not support watchpoints in test 22 Git-Commit-ID: 0e24147d69c9357b1ccb54a9bc028eb9a9f9ed1a X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Spam-Status: No, score=-0.7 required=5.0 tests=ALL_TRUSTED,BAYES_00, DATE_IN_FUTURE_48_96 autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 0e24147d69c9357b1ccb54a9bc028eb9a9f9ed1a Gitweb: https://git.kernel.org/tip/0e24147d69c9357b1ccb54a9bc028eb9a9f9ed1a Author: Thomas Richter AuthorDate: Fri, 28 Sep 2018 12:53:35 +0200 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 8 Oct 2018 14:23:44 -0300 perf test: S390 does not support watchpoints in test 22 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 +}