Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp601816imm; Fri, 28 Sep 2018 03:55:19 -0700 (PDT) X-Google-Smtp-Source: ACcGV62Va7sec462BWrcyGmyp4ONRo6ZOHuDDRnlPN+qB2873+4RgTP3d7BYVuVbCGwENARqUsaN X-Received: by 2002:a62:6643:: with SMTP id a64-v6mr16096777pfc.202.1538132119184; Fri, 28 Sep 2018 03:55:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538132119; cv=none; d=google.com; s=arc-20160816; b=uvdzEkjW6abvoNWhmFqdYWgwuTQRU6j0h+bkEjzr8iAPdHQyavFTnguBWP0hNJ/X1U Gqsjy6S2JBFdsrdbm1CkH0J+QV3M7H/HHY1QnAkGGLRPOzZkveOr1KuadoAu+9Lc0/eU JsV3x5I80p85HEALMCPjaqnKbVLhIF06yphPZ8iP0NWUdmPQ9MGGVeJoFBKclv3mwAe5 EM0dDY/oXee8+W0Ikr/ZaO4Aw7Cj3o/Al52gzubYbaukxRL87KtLI1TMx44gaaZd3ks6 MjK0TrqO4dlsvHHdxi7OsFp8yr0YMQ1/bDdQ9IRbbSUtfd/J1h1AykctoZayq23fAL3g ID9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=aQGLg29ITmZY9GPFn2HvW8lIUSRT9ag+coPANoACdK0=; b=GJiLQgGfp7N7OYA9/s9dY+uYnspKf7TkhiZwce7z/hrgIA4iVYucTDFTSOvV5MLchH kKarPqYaP8K5B6o4fcKsKF1i4OKhcWEZAI831WNeuyxgGwOGqp3EFQFQv8YbQ+XJxkPl STn3IIWRgZ3WYOmsP6lkJOpTWDnoEp4SQLitYGcOcHjqjJu5JSQe1KlFY+6Q/yGRE2xR otlCZfa1sQ0VCoqqzbNNtIR5uNhX1pDdij+QZCryxZGc1EkDQUdpVop5Mjcwp92vIfOq vCLEEukRp2bneFF68vRPjxx7mtse/rCw8Hp+nMAkn7L80DqVdrAiB1Wda/ros6ZVeajA sTgw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 33-v6si4188506plk.300.2018.09.28.03.55.03; Fri, 28 Sep 2018 03:55:19 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729542AbeI1RRB (ORCPT + 99 others); Fri, 28 Sep 2018 13:17:01 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:60462 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729240AbeI1RRB (ORCPT ); Fri, 28 Sep 2018 13:17:01 -0400 Received: from pps.filterd (m0098393.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w8SArkXW107227 for ; Fri, 28 Sep 2018 06:53:48 -0400 Received: from e06smtp01.uk.ibm.com (e06smtp01.uk.ibm.com [195.75.94.97]) by mx0a-001b2d01.pphosted.com with ESMTP id 2msgfap678-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 28 Sep 2018 06:53:48 -0400 Received: from localhost by e06smtp01.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 28 Sep 2018 11:53:40 +0100 Received: from b06cxnps4075.portsmouth.uk.ibm.com (9.149.109.197) by e06smtp01.uk.ibm.com (192.168.101.131) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Fri, 28 Sep 2018 11:53:38 +0100 Received: from d06av24.portsmouth.uk.ibm.com (d06av24.portsmouth.uk.ibm.com [9.149.105.60]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w8SArbTE58720296 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 28 Sep 2018 10:53:37 GMT Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 67BF942047; Fri, 28 Sep 2018 13:53:20 +0100 (BST) Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 2AC3C4203F; Fri, 28 Sep 2018 13:53:20 +0100 (BST) Received: from tuxmaker.boeblingen.de.ibm.com (unknown [9.152.85.9]) by d06av24.portsmouth.uk.ibm.com (Postfix) with ESMTP; Fri, 28 Sep 2018 13:53:20 +0100 (BST) From: Thomas Richter To: linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, acme@kernel.org Cc: brueckner@linux.vnet.ibm.com, schwidefsky@de.ibm.com, heiko.carstens@de.ibm.com, Thomas Richter Subject: [PATCH v3] perf test: S390 does not support watchpoints in test 22 Date: Fri, 28 Sep 2018 12:53:35 +0200 X-Mailer: git-send-email 2.16.4 X-TM-AS-GCONF: 00 x-cbid: 18092810-4275-0000-0000-000002C23A7B X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18092810-4276-0000-0000-000037CD3CF5 Message-Id: <20180928105335.67179-1-tmricht@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-09-28_04:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1809280111 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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.17.0