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=1796135261; b=cYgq0GuioklhZhycXQDLvO2q9ynXp1bhZ7rJiB8SYP61AmwoQm3IxFmmo5qWQ6kRvlQw uGbiwoMqwUzjd/TP6lHX/oFbIdH2AURlWniuuH23hMvjEjXc6xkdxk3N7r5T6bLwvfZ5k c3E7Nel0cZVDQUszy00bJ1pLcTqgeJhcH4zD7CAWoRfiT2rK5+31fYRqZMb1hveThkCQW HXqj145WoFiYzsUjfmx7QAAF3pHmcI/BT0+PBJlhpfBWHyVYe6lYTKIrZDSZcw23ovkSW GyGW4XtgjA5I7g9J9NJzk5ZWTQ0Uag48Ltn8/uwuv4fJJs/zA+hgl3W7xgBC5c+VEsA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796135261; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=lnESgHk+mqXrV6KraLOw3h3STErpNk/tcOlDvcNSmQk=; b=nvtmHEMFmgIjsDnrUIzNJZ1AjOlcGYFEUz65M8jFw0oiAU+xojHvrIBeIC8IhFC7psu/ iV3dB0n4K9J3qE4tQ5TjsWSKUdJ6T2s34vWN+EgXRhKNtGVitf7lI4KLnlH6OPYSRKoJ0 ZgGgb3ihlXgwgAUOw41JhZR/2IEMIMKG4rrN7lUNg9YTuJODPXeap1a6Is3cJJWMaPblQ GPj5jnnJV1qSxb4Cd+0Rpn5w2QeU1G+pdVgY25XZQL1i8mJ+bbR+k2NDMsE7p98nh9zO7 UxI6P+4J5hSnSMJQGmS+OpR0OdM9jLphGxltKHIdU8MMbAY2DX8gZbuD0hMM2QwxETw== 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="hqOIX/I4"; 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 33837606A322 for ; Tue, 1 Dec 2026 14:27:40 +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=hqOIX/I4 Received: by smtp.kernel.org (Postfix) with ESMTPSA id B11951F008A0; Tue, 1 Dec 2026 14:27:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796135260; bh=lnESgHk+mqXrV6KraLOw3h3STErpNk/tcOlDvcNSmQk=; h=From:Subject:Reply-To:To:In-Reply-To:References:Date; b=hqOIX/I4gIRAEA708LmrCMKl5hlegsYinVDRYbXl2Pm+Okd7QMgyyXRFqOsWv2yVK qtiL1bIMEqTuKxM4Hy9n6gL/tgEyZy09WAJWcJCPDZA1fyAKCKPuEfDY2YKlHmwxXR M1u0mgE4wRRXhdUBcKGgXA+geUlnP8CULmmETKPb3J64sNrnNtwe/8FQIqBvIt39E7 FKFBGM8DCOcMtZPBjOigybiKMvo1DuynMnt52BSErJuxLPfAZcifoRUFNGXQPgG548 691IO+ANVtNwre8rHHtXo9Wc/TwR8+PM69BuWYKZXkZ3S1PHBCkYrZzTFVieI1iT6U hvWOSN1hKDeWg== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v10] perf stat: Refuse a group mixing tool and kernel events Reply-To: sashiko-reviews@lists.linux.dev To: "TAKANO Mitsuhiro" , linux-perf-users@vger.kernel.org In-Reply-To: <20261201140836.2320511-1-takano32@gmail.com> References: <20261125222725.2554455-1-takano32@gmail.com> <20261201140836.2320511-1-takano32@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Tue, 01 Dec 2026 14:27:40 +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 stat: inaccurate parser split claim for hwmon/drm in perf-stat.txt -- commit bb09784fff8e91b3f49cdb60c1ebfe292a8ef185 Author: TAKANO Mitsuhiro perf stat: Refuse a group mixing tool and kernel events This commit refuses event groups that mix kernel events with events not opened via perf_event_open() (such as tool, hwmon, and drm events), splits weak groups led by such events, and skips members without descriptors when enabling or disabling groups. Link: https://lore.kernel.org/all/sashiko-outbox-227849@kernel.org/ Link: https://lore.kernel.org/all/sashiko-outbox-231330@kernel.org/ Link: https://lore.kernel.org/all/sashiko-outbox-232396@kernel.org/ Link: https://lore.kernel.org/all/20261111-tool-pmu-leader-v2-1-3faa0fb98c5= 1@gmail.com/ Link: https://lore.kernel.org/all/awC_aZXD5FBGu4mO@google.com/ Link: https://lore.kernel.org/all/awTXdgY38s2bijW5@google.com/ Link: https://lore.kernel.org/all/20261123071913.653315-7-irogers@google.co= m/ > diff --git a/tools/perf/Documentation/perf-stat.txt b/tools/perf/Document= ation/perf-stat.txt > index 8ea17da89976d..02de7a91d8464 100644 > --- a/tools/perf/Documentation/perf-stat.txt > +++ b/tools/perf/Documentation/perf-stat.txt > @@ -65,6 +65,25 @@ report:: > Multiple PMU instances are typical for uncore PMUs, so the prefix > 'uncore_' is also ignored when performing this match. > =20 > + Tool events such as duration_time and user_time are read by perf > + itself and have no event in the kernel; an hwmon event reads a > + sysfs file and a drm event reads /proc//fdinfo. None of > + them is opened with perf_event_open. A group of such an event > + and an event from a different software PMU, such as cpu-clock, > + is split by the parser, which warns that events were regrouped; [Severity: Low] As reported by Ian Rogers on v9 [1], is this sentence accurate for hwmon and drm events? Unlike the tool PMU, perf_pmu__is_software() returns false for hwmon and drm, so in a group like '{cpu-clock,hwmon_x}' the software event adopts the hwmon or drm PMU name in evsel__compute_group_pmu_name() rather than being split by the parser, and check_unopened_in_group() refuses the group instead. Saying "A group of a tool event and an event from a different software PMU..." would match the actual behavior and the updated commit message. [1] https://lore.kernel.org/r/CAP-5=3DfVhXzO7TrPmzirS1dojWBupGfeGJOGiG9uytA= 3HjB+qww@mail.gmail.com --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261201140836.2320= 511-1-takano32@gmail.com?part=3D1