From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=217.140.110.172 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796061320; b=cV9hwwKAaSHSI/jS2v2F4BifoORtqZcKWCPxRn5ioY8mBN/+OaZYFndT/ernGsi3kywV O2hXIDXktwI+E7JRRsMjYzuuiKHVSf56E4JnlLhCt19JhpppzyK0WtBZDTJM2Rd3zN3fG wwl4dgJWTMhjIzZYmf59F9mt4tVLeMYHg1Bt+EuE7xJX+6LAsp1Sw34UeTYMeDxd6KL5Y 8y1fczLjIPcs1GbTCmm/qht0MXv7+ehIbu7OSOgz/6arHavP8XSeh8WO62upcTzqgsUhP 13QkZJfP3AtTa7szzxoqk2LdHpOX2snRV72CSz+9XAtlwpbPQvNzfDbGL8ZQ171sUvA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796061320; h=DMARC-Filter:Received:Received:DKIM-Signature:Date:From:To:Cc: Subject:Message-ID:References:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; bh=GyI6kQu3pUA+pusKIS4Gp050bqMYmIbg4jjZ+HQyjzM=; b=UMyESo1Qi3waWgA5VlPl90I5qr1Kz4QF3CHJrT/oXiT5hCGL0UlQ+r4cJd4xVZP2/jUx GRAshKBNeUgkQJugbrZ4eCZio2052CFGXvmAfD285UkACz9A6fEduNSyN3JU4Hykti+/i eP2+eaBuCruw9oHreYC3mTs10rm3dRPfA9AoaO6dftFFudI2HraOe4PSG7AQ9PrmgC1XS jBRfLvr4hdMmWzyaZ7TZKEkl/qKS1/oYHCtUW6Zvirhb0T+SwDaQc4MCvP28g7CgPGKuQ JKbUasfl7u3Mv4HbXj7LwBKgFKNUXEnkHoi02hHlwaXX7ALsxK28kUo3EuXIv9fRegQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=arm.com; spf=pass smtp.mailfrom=arm.com; dkim=pass header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=foss header.b=tOf5180h; arc=none smtp.remote-ip=217.140.110.172 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D74BB606A31C; Mon, 30 Nov 2026 17:55:19 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org D74BB606A31C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=foss header.b=tOf5180h 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-Mailing-List: linux-perf-users@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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