From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CC51033998; Mon, 14 Sep 2026 01:20:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789348837; cv=none; b=Po00GjIuN05jq/Sap93cgZnYsn6hWgqqLOkQtqILCxGRWxe57WQrQNJFN5Zfgb2l96SU2vuDqaDO1iclZXz9QLKYYhMKwqb63pHOhzBzG967qGB8bt22yT9VD7liiG93mod3/tEMTR6gpsTrJiJofY6W1lP89J4mSbDcHvtOjuM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789348837; c=relaxed/simple; bh=3ca8p5g2xMf5iWc0hlpy7f7BLo6a5dixz41iJOhoJH0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=c7/8KN+YI55rkhwgaLw301TWCutvDrW2qpvY+6/eie/t6hU5EmNXNEYJdA5f2/uqlP7t0cHMDZcJZ0OzB+J3zEqYhYbI1Q+MxAkp6NhWuspKvuO2a0W12EqbFdWDlLVa+FSyVNjw2adApguAemHDBFyo+ENFecZZu/8fX9023Uo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=kq24UEU3; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="kq24UEU3" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8EF0F1F000FF; Mon, 14 Sep 2026 01:20:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1789348835; bh=cjQJOduHqAwj6o7DipSItmVFnQfPwlvihYn4mDcpUD0=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=kq24UEU3HqY8/TTUrb1EXUbWdo5ZauWVeW/Z5ll7ftQHqY4sVATatElsiAsoBMR6q D+d8stydFiSSF70rz4XefQXbO/yl93pWYgxUwmcVaIY7qkMn86/thfoU+Vdz8H3D9p /59xH3aSNtdc27ZV6rpmcEWnxftOSsxILMWWvfXL5tkRE3apKASq2hSI6iP9hjQUla FglS3eUuU8hbp/h41PmnY583lhfq8P3L9lapGAriHK4U+RmWUAD2zcigPP9bkIp5AT 7RxBcSDSqSM6zvdg3OBqzg1ZBLcLhbHpCwpjPSh11u9fSqDLT6dveM0/K4Ln7FmtqZ DenlbWQmZFsjw== Date: Sun, 13 Sep 2026 22:20:31 -0300 From: Arnaldo Carvalho de Melo To: James Clark Cc: Suzuki K Poulose , Mike Leach , Leo Yan , John Garry , Will Deacon , Peter Zijlstra , Ingo Molnar , Namhyung Kim , Mark Rutland , Alexander Shishkin , Jiri Olsa , Ian Rogers , Adrian Hunter , Mathieu Poirier , Jonathan Corbet , Shuah Khan , Suyash Mahar , Leo Yan , linux-arm-kernel@lists.infradead.org, coresight@lists.linaro.org, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, Arnaldo Carvalho de Melo , linux-doc@vger.kernel.org Subject: Re: [PATCH 00/14] perf cs-etm: Per-thread mode fixes and snapshot wrap support Message-ID: References: <20260811-james-cs-unformatted-per-thread-fix-v1-0-90565318f5f8@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260811-james-cs-unformatted-per-thread-fix-v1-0-90565318f5f8@linaro.org> On Tue, Aug 11, 2026 at 04:30:03PM +0100, James Clark wrote: > Fix a few issues with per-thread mode: > - With TRBE, thread migrations hit a queue without a decoder assert > - On nVHE, everything looks like guest trace instead of host > - Tracing multiple threads didn't really work This series applies cleanly to perf-tools-next but has no Reviewed-by nor was processed by Sashiko. Can somebody from the ARM camp take a look at it, please? Thanks, - Arnaldo > After adding a tests for those, it turns out there were some snapshot > bugs not picked up by the other snapshot tests. That showed that the > different snapshot searches for Intel BTS and Arm SPE were inconsistent > and I think all tracers can benefit from using the same pointer fixup > logic, so that gets refactored into the common auxtrace.c. Then SPE can > just share the Intel BTS search as it was obviously copied from it > originally. IntelPT keeps the more advanced duplicate data search, but > in the future that could probably be made the common one and all tracers > would benefit from using it (except maybe BTS if it always has a very > small buffer, but I doubt the overhead of the duplicate search would be > an issue). For now this is more of a refactor rather than behavioral > change so don't do that yet. > > Signed-off-by: James Clark > --- > James Clark (14): > perf cs-etm: Fix nVHE per-thread decoding > perf cs-etm: Warn for invalid timestamp option > perf cs-etm: Turn on context packet timestamps in per-thread mode > perf cs-etm: Use per-CPU queues for per-thread mode > perf cs-etm: Increase default timestamp generation period > perf auxtrace: Turn Intel BTS snapshot search into a generic one > perf arm-spe: Use generic snapshot search > perf auxtrace: intel-pt: Use new snapshot_has_wrapped callback > perf cs-etm: Queue partial AUX records > perf cs-etm: Don't print missing buffers in snapshot mode > perf auxtrace: cs-etm: Capture wrapped snapshots > perf test: Allow infinite named_thread loops > perf test: Add test for per-thread mode > perf cs-etm: Test multiple per-thread threads > > Documentation/userspace-api/perf_ring_buffer.rst | 6 +- > tools/perf/Documentation/perf-test.txt | 2 +- > tools/perf/arch/arm/util/cs-etm.c | 30 ++++- > tools/perf/arch/arm64/util/arm-spe.c | 147 +-------------------- > tools/perf/arch/x86/util/intel-bts.c | 115 +--------------- > tools/perf/arch/x86/util/intel-pt.c | 58 +++----- > .../perf/tests/shell/coresight/per-thread-multi.sh | 78 +++++++++++ > tools/perf/tests/shell/coresight/per-thread.sh | 48 +++++++ > .../perf/tests/shell/coresight/raw_dump_stress.sh | 5 - > tools/perf/tests/workloads/named_threads.c | 7 +- > tools/perf/util/auxtrace.c | 136 +++++++++++++++++-- > tools/perf/util/auxtrace.h | 20 ++- > tools/perf/util/cs-etm.c | 98 ++++++++++---- > 13 files changed, 382 insertions(+), 368 deletions(-) > --- > base-commit: bf10e6ee2ac3034c9068e03eed418fd16961984e > change-id: 20260605-james-cs-unformatted-per-thread-fix-50e723aa7f0e > > Best regards, > -- > James Clark