Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp565045imm; Fri, 22 Jun 2018 01:14:15 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKxxmTmic7zgI7x/fcgiXeF4yQmBmNS5zzpkHeU7FZ8KETaAh6sGokTPselred0vy78Vymn X-Received: by 2002:a62:fb05:: with SMTP id x5-v6mr667699pfm.210.1529655255131; Fri, 22 Jun 2018 01:14:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529655255; cv=none; d=google.com; s=arc-20160816; b=AO5hkVIZH8HJncy+9NpMB3joKdG9qXdTOotDIODnov5gpTGjpVUcRiSSvtr/Oo73G0 RWsa/tV7WKpJs6jL3tQOw5ZxH3XHozoK7JW/hVxyy/51nc/L2FHHpJ2Czv0zev5ypvux Eb1t7SBIBBKUWttqxiLdXnn4gIAfAfuZ/dE92eND3SDGTlm0clxRj4afKkhO7Mthqtvj QQgHCRNzG74b5YFmMw2gYdNzRMK/16Ct27Sc3Mp5gTsn+0U7gNApcLIY1pGfDHVyQxtp dY0ncYQ9Y22ZoXP81UwH+tZldJPNcXvNJXLOn11lPmgEGOYL3vb//+jYS3Qiutd0hM1H chaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :organization:from:references:cc:to:subject :arc-authentication-results; bh=trlmBIN4yx34cynTFzMevIdT2nfuBjqXerv6XYXB1qs=; b=awlOXwACJHJl163dJbBZWe2XpqIJHU5vxQbT7D9ZwHD0nxmICafS+bakqmPrvKqOuD h4TjShAyY6+d3ppxkSvzV+eVk3gjLDOySFDdTLmc+KZowLiOMNkSutPQjFJmUC88lkvQ lfsSh5GLKxH4XJDGTR1oXKL/i5owmFJGb6CTlz9sAc+MnVxIN5PNMZDpvVTYdDIH+yaC 57y7fmXKbcHrjNNPo6KHPIrBcB6X7Hfqw8jyPAvQQkzZzmeNNCKDjktuSkmo6Y5XAR5k XomnhQfwr+8R1VnqwS2wexdMH3fE9qTc2tnRGDijJsnT0NgjPm82QR4ZxNLxRafjv4sH Gn8Q== 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 n129-v6si2775016pgn.375.2018.06.22.01.13.59; Fri, 22 Jun 2018 01:14:15 -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 S932981AbeFVIMF (ORCPT + 99 others); Fri, 22 Jun 2018 04:12:05 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:38066 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754264AbeFVIKG (ORCPT ); Fri, 22 Jun 2018 04:10:06 -0400 Received: from pps.filterd (m0098413.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w5M89bLq139470 for ; Fri, 22 Jun 2018 04:10:06 -0400 Received: from e06smtp04.uk.ibm.com (e06smtp04.uk.ibm.com [195.75.94.100]) by mx0b-001b2d01.pphosted.com with ESMTP id 2jruuv3qst-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 22 Jun 2018 04:10:06 -0400 Received: from localhost by e06smtp04.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 22 Jun 2018 09:10:04 +0100 Received: from b06cxnps4074.portsmouth.uk.ibm.com (9.149.109.196) by e06smtp04.uk.ibm.com (192.168.101.134) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Fri, 22 Jun 2018 09:10:02 +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 w5M8A2Y133161402 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 22 Jun 2018 08:10:02 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 1B2EB4C04E; Fri, 22 Jun 2018 09:10:01 +0100 (BST) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id BE21B4C046; Fri, 22 Jun 2018 09:10:00 +0100 (BST) Received: from oc3784624756.ibm.com (unknown [9.152.212.201]) by d06av22.portsmouth.uk.ibm.com (Postfix) with ESMTP; Fri, 22 Jun 2018 09:10:00 +0100 (BST) Subject: Re: [PATCH 4/4] perf stat: Add transaction flag (-T) support for s390 To: Andi Kleen Cc: linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, acme@kernel.org, brueckner@linux.vnet.ibm.com, schwidefsky@de.ibm.com, heiko.carstens@de.ibm.com References: <20180621080452.61012-1-tmricht@linux.ibm.com> <20180621080452.61012-4-tmricht@linux.ibm.com> <87in6bsg2z.fsf@linux.intel.com> From: Thomas-Mich Richter Organization: IBM LTC Date: Fri, 22 Jun 2018 10:10:01 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <87in6bsg2z.fsf@linux.intel.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 x-cbid: 18062208-0016-0000-0000-000001DED74F X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18062208-0017-0000-0000-00003232F7BE Message-Id: <57f6e02e-a8e8-73fb-11d1-24fb6b5e2e9a@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-06-22_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-1806210000 definitions=main-1806220093 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/22/2018 04:36 AM, Andi Kleen wrote: > Thomas Richter writes: >> >> + /* Handle -T as -M transaction. Once platform specific metrics >> + * support has been added to the json files, all archiectures >> + * will use this approach. >> + */ >> + if (!strcmp(perf_env__arch(NULL), "s390")) { > > Use pmu_have_event() instead. Done see version v2 > > You may need to add support for wildcard pmus to it. > > -Andi > Currently only one PMU on s390 does support transactions, its the PMU with counters named cpum_cf. -- Thomas Richter, Dept 3303, IBM s390 Linux Development, Boeblingen, Germany -- Vorsitzende des Aufsichtsrats: Martina Koederitz Geschäftsführung: Dirk Wittkopp Sitz der Gesellschaft: Böblingen / Registergericht: Amtsgericht Stuttgart, HRB 243294