From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C84C6606A329 for ; Mon, 30 Nov 2026 17:55:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=O1HfcQNx; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=foss header.b=tOf5180h DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Unsubscribe-Post:List-Owner; bh=GyI6kQu3pUA+pusKIS4Gp050bqMYmIbg4jjZ+HQyjzM=; b=O1HfcQNxMlwJmiPNKkcsA85c41 iYtAo1QwFWnKenklRkHN3wviAoSu1PVMP82vbholcBCMJ0/NJaBrztXP3lbDqi7qX3eKxKzYBpmKj NZrWHtIqaSHD4Srh1QWvxbMiFLEXUcJ65X47O9e7ITlnwlAZA0ogeKJivJ3k6fvrk5dkWNaj+xUwm s573dZyae+jC+6zQyhqS/IG7TyHqxW1IaY0wYlS3UENc7T/WnkaZPGThTB+9P+i5qxV7rKgXa2mZz 7zoIj3Dxa0j0OXYHUClM5L6JJyBfULgksIKbN1+55QLElN8B+44AOnGRCOLfIgK2XQaIYnj1xgxk+ d6uOUl+w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xY5b0-00000005XCm-1OxD; Mon, 30 Nov 2026 17:55:22 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xY5ax-00000005XCE-43tA for linux-arm-kernel@lists.infradead.org; Mon, 30 Nov 2026 17:55:21 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 343061595; Mon, 30 Nov 2026 09:55:16 -0800 (PST) Received: from localhost (unknown [10.2.196.114]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 8189B3F86F; Mon, 30 Nov 2026 09:55:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1796061319; bh=jc070KZzgqB7M8uDGpOgx6p0NErieIzR0d5gI6vPiTo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=tOf5180hK7YmqbrzO1wEgkP5BzguQr+vipbN5vw+BJA4LuGoMa+79HXIimmtBVKs7 q/Eeudc8zT9qYUqI61ojBtYyVGuoLJ23o2OneOGLrXotZT2aXn/MBSa+ch0iyyqHcc rzNeWn84lGCwr0PmMQjCXNsFfOMPHi1DcVjHLeXY= Date: Mon, 30 Nov 2026 17:55:15 +0000 From: Leo Yan To: Amir Ayupov Cc: James Clark , Suzuki K Poulose , Mike Leach , Alexander Shishkin , Will Deacon , Mark Rutland , Greg Kroah-Hartman , Jonathan Corbet , Mathieu Poirier , Randy Dunlap , Shuah Khan , Daniel Pereira , coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, linux-perf-users@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v6 4/4] coresight: Add pmu_pulse/extout_pulse Message-ID: <20261130175515.GO861809@e132581.arm.com> References: X-Archived-By: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261130_095520_044234_A3F3E581 X-CRM114-Status: GOOD ( 14.25 ) X-Spam-Score: -4.4 (----) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" X-Spam-Status: No, score=-15.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 On Fri, Nov 20, 2026 at 10:54:34AM -0800, Amir Ayupov wrote: [...] > --- a/Documentation/trace/coresight/coresight-perf.rst > +++ b/Documentation/trace/coresight/coresight-perf.rst > @@ -109,6 +109,21 @@ Example for triggering AUX pause and resume with PMU event:: > -e cycles/aux-action=pause,period=10000000/ \ > -e cycles/aux-action=resume,period=1050000/ -- sleep 1 > > +Using external-output pulses > +---------------------------- > + > +The ``pmu_pulse`` configuration drives fixed external output 1. Separately > +select the matching PMU event, ``trcextout1``, to count it. The hardware must > +support and connect this output to that PMU; this is not checked automatically. > + > +Perf skips CPUs whose trace units do not support this configuration and fails > +setup if none remain. Use the PMU instance that counts output 1 on your system:: > + > + perf record -a -e '{cs_etm/pmu_pulse,aux-action=start-paused/u,cycles/aux-action=resume,period=10000000/u,armv8_pmuv3_0/trcextout1,aux-action=pause,period=5000/u}' -- sleep 1 For the record, this series drops the PMU feature check. Since TRCEXTOUT support is already in mainline, the ETM driver is only responsible for enabling ETM pulses, while the PMU driver handles the corresponding events. If PMU feature is missing, I'd use a separate patch for the PMU driver. For this patch: Reviewed-by: Leo Yan