Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp325501imm; Thu, 21 Jun 2018 19:37:06 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLib+2ZcmfuqmCEhdXaYE9+bH7Rx/YStbJ9M/Pd1n5T+zFyIJ/gUU/X7hi1M5eo+LRObTIt X-Received: by 2002:a62:ff1d:: with SMTP id b29-v6mr30046755pfn.181.1529635026343; Thu, 21 Jun 2018 19:37:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529635026; cv=none; d=google.com; s=arc-20160816; b=F+lXRQJfiwex5lO5PU7zAPNx/wdW3w2+FiEGegEryvjNKavKj/5uzvw2uVfQS/qmfn +KNG5yVvlWptSZ1NOC1yEdAWhlJ/KB/ntjD7jQqXCNss9PDDIrOOxALLrwYhEtR/ulI/ +3v1UnsKlNPVtK96DXzQc0xYSLi34WG9jboCPDVXD3coL2UZz8mWXLF1XQK4QFLh8Mje 3ggBO3eP7Crh7fJ3+FMut3UzqJgiMEsgKXUFFA2BkgC70N9U7II+XMaqX5HBY9DI0hLK 1RaaplJjO6+0bM+3s/58x1kJsXSmatdlukDSfCe3UZh8thGyf8btNJBhdUldo872hsVY 1YSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from :arc-authentication-results; bh=fmjEgLTp5eDDw3bMwoVQ8nm7aoHF37bBc1mEFsXjwd4=; b=L53M2NlMusWgWiUCYu37W8j0+/R+EgUIGemSvLVWhwWCoDRLlHP6rjw/qi6KoQrS8u Ea5z2kxQVFU/NI/IlJbeRoiDctzBXMbTw/BVrNSTVl8sp4H31BU2sXhIqZ7TUsm5FMMI A3AvrH947WUB1Xt+HFlruReuKpjdvGYXMpWY5oazmNmXsBGKw9c4wRS2MMcG4vf7d65y O/zhXGbmmKqPdIrqHAmySgIa87lK1KSz3N0Aqo3m6XOYcqmsbemE9dvRJt32fSvO8QoE stccfWRfRGyZXEpWVIvDWbz3j1seumEIWFwkIu1DjqmzLO0K4oJzCiDV2jABs5zCA3En GwxQ== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l3-v6si5295090pgf.505.2018.06.21.19.36.51; Thu, 21 Jun 2018 19:37: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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934153AbeFVCgL (ORCPT + 99 others); Thu, 21 Jun 2018 22:36:11 -0400 Received: from mga02.intel.com ([134.134.136.20]:47688 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933775AbeFVCgJ (ORCPT ); Thu, 21 Jun 2018 22:36:09 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 Jun 2018 19:36:09 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,255,1526367600"; d="scan'208";a="69034933" Received: from tassilo.jf.intel.com (HELO tassilo.localdomain) ([10.7.201.126]) by orsmga002.jf.intel.com with ESMTP; 21 Jun 2018 19:36:04 -0700 Received: by tassilo.localdomain (Postfix, from userid 1000) id 31D57300D7B; Thu, 21 Jun 2018 19:36:04 -0700 (PDT) From: Andi Kleen To: Thomas Richter 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 Subject: Re: [PATCH 4/4] perf stat: Add transaction flag (-T) support for s390 References: <20180621080452.61012-1-tmricht@linux.ibm.com> <20180621080452.61012-4-tmricht@linux.ibm.com> Date: Thu, 21 Jun 2018 19:36:04 -0700 In-Reply-To: <20180621080452.61012-4-tmricht@linux.ibm.com> (Thomas Richter's message of "Thu, 21 Jun 2018 10:04:52 +0200") Message-ID: <87in6bsg2z.fsf@linux.intel.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. You may need to add support for wildcard pmus to it. -Andi