From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796386509; b=m4M6Wzpc6f501KN7GWlZNszTmP2KRnMLVhdUfHSpW4E5n4PvGoCWug6vt2n26OJPWffD xJiJjn3aE2IHqYgvea4NKdRQ1H/6Q6Y7GcFgU0WYFHEM4X22Hw5onsAakXmJoShQ1m243 J9JstUtVQ0ntypRh1AQRVGWYLmlDKtQjmeyZYBRzkuI5mXbOH+QuD/OTBUGtPCTJH0DK7 tFSVMAUmI90eFT5VWiwwP060/Ans3MsG7EPzA6MJryaY9e3WJOejvDaS/n5smDaMpgIKX KomKzmuY6ay9vM8Ced2I6WMmlqLCBFRMI4dyoX/92vGpVFjg6RlEHqxWtOfDXSfxBEQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796386509; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=UvL1B9b4qhK37yoLxGtCxtLPZ4zdn0HsFddFJyLzA5s=; b=NquJWRNVd9zkkynMFlBFbldFxgiPF+iC3/yxYpOnu2d2aqMqKX9Ql4MFeWZYGYrVVPF1 XrzhajZoNXTEMuIoOBlD4aa7dQyKkpd06icGvePDwvTHgZ6ntsp1ZxivaVb6B/1LbiPmX F6QwGwUzAEsvXkUzfPyYo+c9Z7uq7qzt+tSddFhGcftAG4lVwEEa8JT9CwkuPGiJ2vcPW 7RfWL8ZwcYC0fYA8Cmy3VF74rd8Hx61pSX86tZsY2I1SLvwx5ersqebOWRRRb/LV614kG QtE36Uby4lKb4S1pG/+dFkYuXCOXvUfhA8OUm+7NBuqvw3K/vB183N8LEwe1qUkzFqg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=V9SRDDCJ; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A02F8606A32D for ; Fri, 4 Dec 2026 12:15:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=V9SRDDCJ Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5BB931F000C2; Fri, 4 Dec 2026 12:15:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796386509; bh=UvL1B9b4qhK37yoLxGtCxtLPZ4zdn0HsFddFJyLzA5s=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=V9SRDDCJ40T3IyqL7IrGvtlfY3GYXnya8abbm8hcloprDfuIEB7osdJLINj9T2iDb rm4/WJyf2XYfG5MchX23LM+fEcVdNZihM4bKwNKa1YtveHxHkC0VzxuS8IRJgIPyeD K7YV13Xb2BCQcaMC18t5xtxSldquCNKiQe9BLwO9XDp/xyqQveJcXhc52oomMmogZw lKQnaPRj/IiN6iVtvbutW7RzMytdGXHuMUoJ/9gTiXb+7942gu0eYTUOTCsiMv16CI On1x/8mD0LLiUzSEdCPwPIeK9ZR6RabuNS5EE9ZXOX21jIe93Oq+7FwvaBbyjOSFTS 6JVWyc0C5Sujw== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v2 4/7] perf synthetic-events: Split oversized thread maps into records Reply-To: sashiko-reviews@lists.linux.dev To: "Leo Yan" Cc: linux-perf-users@vger.kernel.org In-Reply-To: <20261204-perf_fix_large_threads-v2-4-a6c077f3037d@arm.com> References: <20261204-perf_fix_large_threads-v2-0-a6c077f3037d@arm.com> <20261204-perf_fix_large_threads-v2-4-a6c077f3037d@arm.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Fri, 04 Dec 2026 12:15:08 +0000 X-Mailing-List: linux-perf-users@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] perf: PERF_RECORD_MISC_THREAD_MAP_MORE collides with CPUMODE_MASK -- commit ae292c402320802a8fd8c7199764b2c5af7b2533 Author: Leo Yan perf synthetic-events: Split oversized thread maps into records This commit splits oversized thread maps into multiple PERF_RECORD_THREAD_MAP records that fit within the 16-bit header.size limit, using a new PERF_RECORD_MISC_THREAD_MAP_MORE flag in header.misc to mark continuation records. > diff --git a/tools/lib/perf/include/perf/event.h b/tools/lib/perf/include= /perf/event.h > index fdced574c889e..1785fea2873e4 100644 > --- a/tools/lib/perf/include/perf/event.h > +++ b/tools/lib/perf/include/perf/event.h > @@ -406,6 +406,14 @@ struct perf_record_thread_map_entry { > char comm[16]; > }; > =20 > +/* > + * PERF_RECORD_MISC_THREAD_MAP_MORE means another THREAD_MAP record foll= ows > + * for the same map. A clear bit marks the final record. > + * Each nr counts only that record's entries; concatenate records in ord= er. > + * A map fitting in one record has the bit clear. > + */ > +#define PERF_RECORD_MISC_THREAD_MAP_MORE (1U << 0) [Severity: Low] Does defining PERF_RECORD_MISC_THREAD_MAP_MORE as (1U << 0) collide with PERF_RECORD_MISC_CPUMODE_MASK? tools/include/uapi/linux/perf_event.h reserves bits 0-2 of header.misc for PERF_RECORD_MISC_CPUMODE_MASK, with (1 << 0) being PERF_RECORD_MISC_KERNEL. Generic perf.data parsers decoding cpumode will misclassify continuation thread-map records as kernel-mode events. Other flags in this header (PERF_RECORD_MISC_LOST_SAMPLES_BPF and PERF_RECORD_MISC_BUILD_ID_SIZE) use (1 << 15) to stay outside the cpumode mask; moving this flag before it becomes on-disk ABI would avoid that. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261204-perf_fix_l= arge_threads-v2-0-a6c077f3037d@arm.com?part=3D4