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=1796343191; b=KKaj7Iz7R1v5aXWNTPzDbtswThSbJkejsA3FgTZAZmezVWB8RJfmWr0Z2N4rcqETSvDU ZtK9ojPLebbZUuvmFFFork0I5nbLEyVLaYy/oZWIvVVo1H+e1eXe1J1RbZYTKMWBFxmcc 6816HixuK4F50X6cwKn+eCJurnoMt+GUKCzoQKByjO1oDVsMJfNTTTZSWqmSLPX4/LEAL UwvQkCNhduANo212fjmBcrUBO1TIEYadB523yGEGs5foja8H8moanRoy8GMPox05hn9uY hxWmZl/JByPokb8azV7lZ/MMJBlHe5WWzFHG0HeXMAQ7jNaEf4H9TlKhYxLCS+csz+w== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796343191; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=tV05nB91S+DSVVvcGNcc8c0EqPAxlowTnK6Tn3EJR0Y=; b=fXlebeBIJwwxLYU018yt5aT0+KYWtRhGCz0Tw7pY/cZ7NYTnS1D3wFvUpIodkdmlldYg vldjVOsnzs2oPx9dWUpcnGaNCf89u7L9B6qfw7wcLU4pxmvK/hPK6J3NEK1ODZ4J4ZNDN I+FV25/XTI7v5d8eHKm2aqZyQp+W6ROSxy7HgMoAisnHDEBRjj+wLqXcrOeI0VX0Z3ksA lWsmwKtWKiq8K2p5krh14YciooGk3wxgzZvWIcIOML4m1eQ0vhob8TqQlVXNDZm6A832j bvlqwLjQhUZedh8ac6KPeDo9m0SGpcDwEUfeZXUZ6e842HVrHHFH7P76ERT+Hfbu5Ww== 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=cZvmvMCO; 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 171A6606A322; Fri, 4 Dec 2026 00:13:10 +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=cZvmvMCO Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3DBCA1F000CE; Fri, 4 Dec 2026 00:13:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796343190; bh=tV05nB91S+DSVVvcGNcc8c0EqPAxlowTnK6Tn3EJR0Y=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=cZvmvMCOLEKPUghG+xH4tfhThkbyQWMITu2jOi3Fxi/e7Vn2R5d9/iodBqTNboy9p Ufc9QzUfNRdp5W87HG5PQ4mjcsI7qokRxVVk3k3FgT8Fl95TibAbtISI/e0pJ/5cfO yUysv9pVD6bi/6y0kUnLJE0mjtext9ku9wQcFibBbumlaaav/J/S55Dz6yWCohf6/L lAG3JZBEmsGi3PL01wNYnYzaSAG81durHIeimAHGvzLuRoRefuVQRF94kvWTmVNtNH Avbtf8P983wd5vAXJJInGBCxcCvyJLpBeCt06Luf087lWDBo0fNRg0GP9xCpWYS9ZJ QSktMct7DZZrQ== Date: Thu, 3 Dec 2026 16:13:08 -0800 From: Namhyung Kim To: Arnaldo Melo Cc: Arnaldo Carvalho de Melo , Athira Rajeev , Ingo Molnar , Thomas Gleixner , James Clark , Jiri Olsa , Ian Rogers , Adrian Hunter , Clark Williams , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Arnaldo Carvalho de Melo Subject: Re: [PATCH v13 00/19] perf coverage: A harness for perf, and the fixes it found Message-ID: References: <20261125192312.34134-1-acme@kernel.org> <66F9D915-DB49-4567-B42E-9721EFFE03E7@linux.ibm.com> <4D914371-C1BF-4930-88E2-A5EDCC44C5C0@gmail.com> X-Mailing-List: linux-kernel@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=utf-8 Content-Disposition: inline In-Reply-To: <4D914371-C1BF-4930-88E2-A5EDCC44C5C0@gmail.com> On Thu, Dec 03, 2026 at 04:28:57PM -0300, Arnaldo Melo wrote: > > > On December 3, 2026 4:22:59 PM GMT-03:00, Namhyung Kim wrote: > >On Sun, Nov 29, 2026 at 09:45:00PM -0300, Arnaldo Melo wrote: > >> On November 29, 2026 8:16:51 PM GMT-03:00, Namhyung Kim wrote: > >> >Arnaldo, how do you want to process the series? I'm not sure if they > >> >are independent or not. > >> > >> The two series are independent, but I think we should merge the tested one first, this series that Athira tested and provided his tested-by tag. > >> > >> I hope the other one gets tested next, but IIRC there's some Sashiko comments I need to address that I'm waiting a while to respond to. > >> > >> I have one more than depends on this coverage infrastructure that I'll submit after this one is merged. > > > >I've applied the series except the patch 2 and 8 to perf-tools-next. > > Thanks! > > Any comments on why not to apply those two patches? As I said before, it cannot treat any move of immediate value to a register as memory reference. It'd confuse the instruction tracking. I guess it's rare to use constant address for global variable access. At least your example of MMIO doesn't seem to carry type info. I could be wrong but I think it should be careful for instruction tracking and better to reduce false positives. If you really want to handle the case, I think it's better to track the instruction as TSR_KIND_CONST as before and add a special case to check if the value refers a global variable. Ideally it could check raw encoding of the instruction to make sure it refers to a memory. That's for the patch 2 and the patch 8 has a dependency on it. Thanks, Namhyung