Received: by 10.213.65.68 with SMTP id h4csp1070810imn; Wed, 14 Mar 2018 08:45:02 -0700 (PDT) X-Google-Smtp-Source: AG47ELtsWxNoQ+DkzzDLO50STm/MFjBwFZw08LOdrQ3dqxVWRpNdhDTqHbJxu6fTUWmMqHOGxDWa X-Received: by 2002:a17:902:604e:: with SMTP id a14-v6mr4205560plt.356.1521042302852; Wed, 14 Mar 2018 08:45:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521042302; cv=none; d=google.com; s=arc-20160816; b=VU29GvTnc4qda4j+JY1QU9dFY3mWLdIDuJ6eBC4pBpHxKBnU6rIK/YhBOM15Ju5Nnm 1sPn41i+gohF2EkyfbtK4mf4NHM1uYYFDGFwT+YaUXzOCXoq+XnbBqB1gUrki47QIIGh yY2HnI1SMe9hJjwKLvI+hkb7BLVAhmKsh6yfY/B2O2snbXp4HaAbp5j50v0zIvnkbr/8 r4YlZVMpcF9cHviUwCbrQN/dhQY7lDSQy3htfR0ypZXBP75CDFutOjmPZwjco84RjzqU QKquvXjERPWmqtIlgNs9/7hfXzqBXa8BQ67+zRykfSuGirnKQLsyh18tpDRNSwVq46Ji 9IUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=qICLkggf9KG0wNc4ljZwLVWuoD2MLe84RQFOaImByeg=; b=S/vKnmZQ/X8/T5dYr8vIX5YN54XqZgwC4HsYR+rtYCAP0dDAg7aMqa5MoPuI3nqyLe Lq3/GyHlUWD5UzyTYFmYj2S7DQnBIegeU8bpYnqvMlG7KXAbyCaTyNX1dieYdJUu/urC YEL4YqJG7BCRPUDAzQpyrTa+ex/iQbAdAf+Y2gCAunXE70K8ZZ/z8nfIDxDxsNfbDvBO s+ON8w46PpUqXMxpuMzKZNtUrfQ2rgSHLZ/eoxtu/hDWTAeJcvOlZ/LW65W+g4WRNbDC pKYX0iTFVsIr4dl3r5hB9OfBvnwr/Y4ayo+jaWFgZr6C39BHejoeolFACsX2iSTizwzr o9JQ== 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 q15si1335839pgc.272.2018.03.14.08.44.48; Wed, 14 Mar 2018 08:45:02 -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 S1752275AbeCNPnf (ORCPT + 99 others); Wed, 14 Mar 2018 11:43:35 -0400 Received: from mga01.intel.com ([192.55.52.88]:22725 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751731AbeCNPne (ORCPT ); Wed, 14 Mar 2018 11:43:34 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 14 Mar 2018 08:43:33 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.47,470,1515484800"; d="scan'208";a="41985438" Received: from tassilo.jf.intel.com (HELO tassilo.localdomain) ([10.7.201.133]) by orsmga002.jf.intel.com with ESMTP; 14 Mar 2018 08:43:33 -0700 Received: by tassilo.localdomain (Postfix, from userid 1000) id 6330C300FAC; Wed, 14 Mar 2018 08:43:17 -0700 (PDT) Date: Wed, 14 Mar 2018 08:43:17 -0700 From: Andi Kleen To: Thomas-Mich Richter Cc: Arnaldo Carvalho de Melo , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, brueckner@linux.vnet.ibm.com, schwidefsky@de.ibm.com, heiko.carstens@de.ibm.com Subject: Re: [PATCH] perf stat: Add support for s390 transaction counters Message-ID: <20180314154317.GG13724@tassilo.jf.intel.com> References: <20180312103807.45069-1-tmricht@linux.vnet.ibm.com> <87tvtk64ld.fsf@linux.intel.com> <20180314131850.GA27335@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > S390 has no support for Elision and uses transaction begin/end/abort > instructions. The CPU measurement counter facility provides counters for > transaction end and transaction abort. You don't need to implement the el-* events. > I have used this table (taken from arch/x86/events/intel/core.c) as giudeline: > /* Haswell special events */ > EVENT_ATTR_STR(tx-start, tx_start, "event=0xc9,umask=0x1"); > EVENT_ATTR_STR(tx-commit, tx_commit, "event=0xc9,umask=0x2"); > EVENT_ATTR_STR(tx-abort, tx_abort, "event=0xc9,umask=0x4"); > EVENT_ATTR_STR(tx-capacity, tx_capacity, "event=0x54,umask=0x2"); > EVENT_ATTR_STR(tx-conflict, tx_conflict, "event=0x54,umask=0x1"); > EVENT_ATTR_STR(el-start, el_start, "event=0xc8,umask=0x1"); > EVENT_ATTR_STR(el-commit, el_commit, "event=0xc8,umask=0x2"); > EVENT_ATTR_STR(el-abort, el_abort, "event=0xc8,umask=0x4"); > EVENT_ATTR_STR(el-capacity, el_capacity, "event=0x54,umask=0x2"); > EVENT_ATTR_STR(el-conflict, el_conflict, "event=0x54,umask=0x1"); > EVENT_ATTR_STR(cycles-t, cycles_t, "event=0x3c,in_tx=1"); > EVENT_ATTR_STR(cycles-ct, cycles_ct, "event=0x3c,in_tx=1,in_tx_cp=1"); > > > So s390 can only support tx_commit and tx-abort symbolic names. > None of them show up in the transactions_attrs and transaction_limited_attrs > string variables used in builtin-stat.c file. We could change perf stat to fall back to only tx commit and tx abort. We already did that for one limited case. -Andi