Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp439229imm; Fri, 28 Sep 2018 00:44:22 -0700 (PDT) X-Google-Smtp-Source: ACcGV60F6dYR2+NkNaQCcqQbIz1nvwFkSIj8RAufVFaaiNfBDjprhLD2PcXGOyDMyzLmIYXFYFr5 X-Received: by 2002:a17:902:ac8e:: with SMTP id h14-v6mr828868plr.300.1538120662635; Fri, 28 Sep 2018 00:44:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538120662; cv=none; d=google.com; s=arc-20160816; b=YNGmfZF7zC4t/valDxkyXDzL5YeR+1wnXBNnQRK/bDkqXQQMNuQrS9fFXB+/khaYeM hrWxLkGjiIiV/sMumT72GLt1bX4/4axS1TfygG+wJ5Yl68sm/hqs/1aY11JeEPCxq79z YzaXCpNLUE5O/jlBW3EqR0H5NNmkeUOSV8/nX3RC2YXCDgYE2/GZbYG1THj4Y++F6uHM OGAcOmim91Stn1H9K88AR4UrJht2JoTRpkgq3oskGGBGG/WIyFs0p0XhbcZfGRINmSuB hGXMwfDH9+zB53qFPA0qQoP1MvsqkI+Vh2o6/qOXDav5vdbqorkEaDkjbWnQx9IDLzLk 1wWQ== 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=yVci4PeN9cEeHamp3/hQI59fF4jq3r44p34hq91wjd8=; b=dvxnzq22k1ozk8Pv4de/Zn401Zw/Iw5kIO1OFBzGEzx8yVu7mabNZ6D2+MbD8jpqvQ G/QNT5MUEh4USnSkekKxRPbmCCBs8xyxkepRFVfRSvfrAp3SOWKks2sabZpMMi410d07 QDdlAMAdFgyTMP4se4DAhv8vVLsAlas3Nag+G/0N3pZDh16jRwaQPKqhibTGf9DLlMpZ AiKBAzQCVki/FJBw0RVicjR0NSFYg90u+It2vuhdrINpOfykxDbWgiFhGBDxav21QJ0P f3tnZqnLaZ+lhkM3csxe1eRT2oAchB14JO49c9LbdWPOGonC64BbWtdlHcT+2N4E0EhV XLMQ== 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 m20-v6si4166441pgk.579.2018.09.28.00.44.06; Fri, 28 Sep 2018 00:44:22 -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 S1729087AbeI1OGR (ORCPT + 99 others); Fri, 28 Sep 2018 10:06:17 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:41504 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728902AbeI1OGR (ORCPT ); Fri, 28 Sep 2018 10:06:17 -0400 Received: from pps.filterd (m0098409.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w8S7hnNu015864 for ; Fri, 28 Sep 2018 03:43:49 -0400 Received: from e06smtp02.uk.ibm.com (e06smtp02.uk.ibm.com [195.75.94.98]) by mx0a-001b2d01.pphosted.com with ESMTP id 2msce70716-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 28 Sep 2018 03:43:49 -0400 Received: from localhost by e06smtp02.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 28 Sep 2018 08:43:44 +0100 Received: from b06cxnps4074.portsmouth.uk.ibm.com (9.149.109.196) by e06smtp02.uk.ibm.com (192.168.101.132) 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 08:43:42 +0100 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w8S7hft963242424 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 28 Sep 2018 07:43:41 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B82384C040; Fri, 28 Sep 2018 10:43:24 +0100 (BST) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 849024C044; Fri, 28 Sep 2018 10:43:24 +0100 (BST) Received: from tuxmaker.boeblingen.de.ibm.com (unknown [9.152.85.9]) by d06av22.portsmouth.uk.ibm.com (Postfix) with ESMTP; Fri, 28 Sep 2018 10:43:24 +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 v2] perf test: S390 does not support watchpoints in test 22 Date: Fri, 28 Sep 2018 09:43:17 +0200 X-Mailer: git-send-email 2.16.4 X-TM-AS-GCONF: 00 x-cbid: 18092807-0008-0000-0000-00000278241F X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18092807-0009-0000-0000-000021E12FBB Message-Id: <20180928074317.42893-1-tmricht@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-09-28_03:,, 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-1809280082 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 22: Watchpoint : 22.1: Read Only Watchpoint : Skip 22.2: Write Only Watchpoint : Skip 22.3: Read / Write Watchpoint : Skip 22.4: Modify Watchpoint : Skip [root@s8360046 perf]# Signed-off-by: Thomas Richter Reviewed-by: Hendrik Brueckner --- tools/perf/tests/builtin-test.c | 2 +- tools/perf/tests/wp.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/perf/tests/builtin-test.c b/tools/perf/tests/builtin-test.c index 54ca7d87236f..e83c15a95c43 100644 --- a/tools/perf/tests/builtin-test.c +++ b/tools/perf/tests/builtin-test.c @@ -124,7 +124,7 @@ static struct test generic_tests[] = { .desc = "Watchpoint", .func = test__wp, .subtest = { - .skip_if_fail = false, + .skip_if_fail = true, .get_nr = test__wp_subtest_get_nr, .get_desc = test__wp_subtest_get_desc, }, diff --git a/tools/perf/tests/wp.c b/tools/perf/tests/wp.c index 017a99317f94..85c66f978732 100644 --- a/tools/perf/tests/wp.c +++ b/tools/perf/tests/wp.c @@ -162,7 +162,7 @@ static int wp_modify_test(void) static bool wp_ro_supported(void) { -#if defined (__x86_64__) || defined (__i386__) +#if defined(__x86_64__) || defined(__i386__) || defined(__s390x__) return false; #else return true; @@ -171,7 +171,7 @@ static bool wp_ro_supported(void) static void wp_ro_skip_msg(void) { -#if defined (__x86_64__) || defined (__i386__) +#if defined(__x86_64__) || defined (__i386__) || defined(__s390x__) pr_debug("Hardware does not support read only watchpoints.\n"); #endif } -- 2.17.0