From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D8469C433F5 for ; Sun, 17 Oct 2021 12:33:39 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 71C5D6125F for ; Sun, 17 Oct 2021 12:33:39 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 71C5D6125F Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=ellerman.id.au Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.ozlabs.org Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4HXKDf1PLmz3cPt for ; Sun, 17 Oct 2021 23:33:38 +1100 (AEDT) Received: from gandalf.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4HXKCn35hbz2yYd for ; Sun, 17 Oct 2021 23:32:53 +1100 (AEDT) Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4HXKCl3Qcxz4xbL; Sun, 17 Oct 2021 23:32:51 +1100 (AEDT) From: Michael Ellerman To: Athira Rajeev , mpe@ellerman.id.au In-Reply-To: <20211007075121.28497-1-atrajeev@linux.vnet.ibm.com> References: <20211007075121.28497-1-atrajeev@linux.vnet.ibm.com> Subject: Re: [V2] powerpc/perf: Fix cycles/instructions as PM_CYC/PM_INST_CMPL in power10 Message-Id: <163447392991.1159469.14557180203895744207.b4-ty@ellerman.id.au> Date: Sun, 17 Oct 2021 23:32:09 +1100 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kjain@linux.ibm.com, maddy@linux.vnet.ibm.com, linuxppc-dev@lists.ozlabs.org, rnsastry@linux.ibm.com Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" On Thu, 7 Oct 2021 13:21:21 +0530, Athira Rajeev wrote: > From: Athira Rajeev > > In power9 and before platforms, the default event used for cyles and > instructions is PM_CYC (0x0001e) and PM_INST_CMPL (0x00002) respectively. > These events uses two programmable PMCs and by default will count > irrespective of the run latch state. But since it is using programmable > PMCs, these events will cause multiplexing with basic event set supported > by perf stat. Hence in power10, performance monitoring unit (PMU) driver > uses performance monitor counter 5 (PMC5) and performance monitor counter6 > (PMC6) for counting instructions and cycles. > > [...] Applied to powerpc/next. [1/1] powerpc/perf: Fix cycles/instructions as PM_CYC/PM_INST_CMPL in power10 https://git.kernel.org/powerpc/c/8f6aca0e0f26eaaee670cd27896993a45cdc8f9e cheers