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=1796365761; b=Biu/2sZexrEv0AGeKyfZCZaj8XGkywL+MfFVAFuZAD/SXciU+wx7D4/Wq5NzqSS+7yvE 4sGIpjO4gawBZ+1menauXYF0LNec8lkQMokjcDJ2otanCY6+4lgRR1SHqCmGLg4U1Wz6Q 6lAjUG4wBsAas7TegpWSmhyetMp5LP2vQfoWXr9MXhzxvFp1B4JzmwMln6Of0VmOahARa z1lUTNnD/ckaFRJQDQMoLlPZ98ceuI0tNC4OzKMlvwj9bSYIBDgZbunZxUi9+uIv89E36 q7mH2DrMFpGJ+KiK7ariNKDQDN5ZggXnDEbMBVr7YUjXp7JkT8grvLaJZF27+SBKXMA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796365761; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=H3R1HYbdZVD4lecMYj9bPdkugEBUFLn01iw9dLx59sE=; b=TzTEx7sIIlrn25bAFtEMuGPPJjSjnkisKH1XpSX03C8dzy8xWd0CNGTykuX7J2fa8Zgh ndu6SX0Pm+pCnUsw111m0qUcnhVlEzykL/iP1lOEmCMWnNsIB8lawX7VV8QGPzxE9CzUn wewn2iL2Gbq8f5SlC4+eDXzditMCiLyB1nrkYHhy9uTj0BKX+iZrsa4TvoFX2UlnY1Q1E +ttjc6s6XBY34DEZAHWSuHjiy3oOSFWqNIz9XufXtdPrlI1Iu4MFUNts/I18xKRX4BU2y dvYXnHbqnPi6GtC165+BmZevUZax01g4suzPZWacpobmau9nROl26Eet1bNMuKqAQEg== 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=mPV6fdeN; 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 67338606A330 for ; Fri, 4 Dec 2026 06:29:21 +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=mPV6fdeN Received: by smtp.kernel.org (Postfix) with ESMTPSA id E90C41F000C2; Fri, 4 Dec 2026 06:29:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796365761; bh=H3R1HYbdZVD4lecMYj9bPdkugEBUFLn01iw9dLx59sE=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=mPV6fdeNn3cY57/1oY69BLe6kOISW8h/4Jc1ynsojqXFT6dBjDBvABWDE/ImuOfia WX25TKUz9M5El5ZPqAmoXVk2E/bf5CTiwWHESRD5jgsEAV2TZF+zTrq5x8J4rbUZUz yCGzv+q9fDOKaU/lhMzNwVdlBKabmWAq5xzeQY/gKRhg5b/xyoR6oRaeblUxIUFZvV exfukdT0BjfRjuGT4MT8nQ+4Z63bD5ePuNNxr0sNcErWmZ2BwiNrE7Jrx9DZZ/v4kH JhsqiGjRTWFGrrfD+4AIQRI/cFzvIbs+2QT2Th3d3y9GbnTw06u+vhrG/aLjQW2CQU 5/ww/dmoqkp9w== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v2] perf evlist: Reparent first_wildcard_match when evsels are removed Reply-To: sashiko-reviews@lists.linux.dev To: "Ian Rogers" Cc: linux-perf-users@vger.kernel.org In-Reply-To: <20261204061226.2483613-1-irogers@google.com> References: <20261204061226.2483613-1-irogers@google.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Fri, 04 Dec 2026 06:29:20 +0000 X-Mailing-List: linux-perf-users@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list > When a wildcard event expands across multiple PMUs (such as hybrid core > PMUs cpu_atom/cpu_core or multiple uncore PMU instances), the later > evsels point their first_wildcard_match field to the first matched > evsel. During stat aggregation and display, evsel__merge_aliases() merges > aliases into their first_wildcard_match and print_counter_aggrdata() > skips any evsel with a non-NULL first_wildcard_match (for uncore events > and hybrid events under --hybrid-merge). >=20 > If that first matched evsel is subsequently removed from the evlist -- > either by __perf_evlist__propagate_maps() during perf_evlist__set_maps() > or perf_evlist__add() when its CPU map intersection with -C or a > per-event cpu=3D term is empty, or via evlist__remove() when opening fails > -- the remaining aliases keep a stale first_wildcard_match pointing to > the removed evsel. As a result, they are neither merged nor displayed > (and evlist__expand_cgroup() copies a NULL priv pointer from the removed > [ ... ] > evlist__remove(), empty-CPU map propagation via evlist__create_maps(), > and empty-CPU map propagation during evlist__splice_list_tail(). >=20 > Fixes: 137359b7895f ("perf parse-events: Use wildcard processing to set a= n event to merge into") > Signed-off-by: Ian Rogers Sashiko has reviewed this patch and found no issues. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261204061226.2483= 613-1-irogers@google.com?part=3D1