Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp1178430lqm; Thu, 2 May 2024 07:25:51 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW2jCJLZkdHNLYqMvolAmra5r6VG5tc8zvrFB93sn4k3CmMxhps8/l7NlMQuxownWfeDfoL6YlWotDRxdZUmZaXpp++HNxyQb0aLcmNvg== X-Google-Smtp-Source: AGHT+IERVBE/KBARXnYG5FXZo1ILA+lUrxXmulusCc1V/BymKiXORIRsPgC2rQmr4nKIMz7p0jhN X-Received: by 2002:a05:6a21:811b:b0:1ad:a8d:dc59 with SMTP id pc27-20020a056a21811b00b001ad0a8ddc59mr5144077pzb.26.1714659951304; Thu, 02 May 2024 07:25:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714659951; cv=pass; d=google.com; s=arc-20160816; b=rmPgUPxqfUqgl2U7A0UUsJxkSFjO+bLRa0g22L+qkjzxi7gbZG/kRcbbYk1/L/nwO6 mBK6KwVjRPkXTJo1Em2Ur/tna/UHngT1n+q/Gw31U/mdCpK4KI424hdoegYESgP1XFGZ aycrPAwDNl2Z0Pc+3wmCwCgPwK0lx/rsq0UKfsQoUqCHG3v5MPr4wK6npjpbd9EfKbDx 79qK14VI95k1XZ3/EwsB4Ye779apnL8/A5qAuVivZvhNtR71FYEsTYAHp2RKYMb8f/I5 ftrz2fuuisdoWM/TfQcqQCWpU6GYciOtACcFfE4f7nlUuk1blUs4GgDQ1uvv7787sl47 eTLg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=To7lg/iSbBu3LoMtmGI+6P+jJmN5/jnTmcEshVPHGQU=; fh=49GrrO/H3LiGmymuFnNd59pBYHHWBS2xk/6Ejg0rn8E=; b=ictL9tTKvKwfiuj9yi/N3qZvNHXmxDsXTBxjLM3vpuNqKKmCbpnP/siD00hK5gCxbK PThXZablp/llcxAMuqSjPHXtTVVfJI8znzqqngR8y8yY4r5J7bHU7z1GXWGzsjde23KV xPdXpWkvJ0V/4aDw16nZOVb7bzfXiSKrrxV+piTIobQpq6HoGc0NlW6heB/rl5eERw8k c9cno0LVjWfqsjXeQkzr/eih7qyiwj3+KcttZwXCt1wnWIbyYEUoRVnJCbNzvUDsnWIg 9AGCSqq7b3sNS1+dTxz1WiRyjKujaUs+ebH1fRo5ag923fd54+2P42SSNqH+IVL+Do2i Cowg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dAzJalcK; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-166551-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-166551-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id fc31-20020a056a002e1f00b006f102d7f20csi1169426pfb.223.2024.05.02.07.25.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 May 2024 07:25:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-166551-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dAzJalcK; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-166551-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-166551-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id AD258282A8F for ; Thu, 2 May 2024 14:25:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3FF0013C80E; Thu, 2 May 2024 14:25:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="dAzJalcK" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 67DC4152788; Thu, 2 May 2024 14:25:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714659943; cv=none; b=oDp9MMl5pYqqlkxaXM4809a96sslEckD5/tSokn3GOmiSRfVIXb7NecPBIYlU0OSQwRqfdEj5Uxd6uc+a5iTV4yAR/GmvqGLfHFDwzDnznukxWElb2Mykm71LuqTN8Au88AjQdjZxOfTLa0I/QmStlS+FNgD+4Ko0rpbSoPcyeE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714659943; c=relaxed/simple; bh=oiao4TXlXK5TsFP1Fh+N2TWYYYhrR0A4blK5ja4oXvk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=TqqeLERteZL5AqXYL1DihDlA56+3aX/nnX5eMG8wzNYTKXvr9cXEvxL6HXHqysmHJeVp0tjWJqNlTZ/CQRKaSQxPcS7cI2DpfdO34OSEtEfkZk0MaSudmtpbOlsqP3xSfu4tR1jswNcpPGFdZXRRGamLmiU5xAQPgEagzr6y9iI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=dAzJalcK; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id F0328C113CC; Thu, 2 May 2024 14:25:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714659942; bh=oiao4TXlXK5TsFP1Fh+N2TWYYYhrR0A4blK5ja4oXvk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=dAzJalcKX4diwfIOgGoLZvmrhpPg0IYEPC0w/F+BK6OHlU2xuKBZqICiytS/PgQaX UmIjttq9jGIBz6gmTZvawJNepUOFJZ17+y0NnBtY4t8NvDaDV9MxQnsJIfDdfsBXjo X4GqzZMDd1iOQ8dP8kOi1K/s00Va4mSurxUjHkZ70WdAFRHBIHHC7H75p1N1vzwfin 4TPfyRfbRYB8QoG1eclrKybT3XkzX/9m7Brc2Z+lkUUte0PgIpxqq16VjnjY++YiFs dJogNYqj2dPInoMbtmon+ivHmao9sByS9CrOAsKihIMzbt4eb1IcavbH8nTv90/hmM 3JLC4AgclnWBw== Date: Thu, 2 May 2024 11:25:38 -0300 From: Arnaldo Carvalho de Melo To: Namhyung Kim Cc: Ian Rogers , Kan Liang , Jiri Olsa , Adrian Hunter , Peter Zijlstra , Ingo Molnar , LKML , linux-perf-users@vger.kernel.org Subject: Re: [PATCHSET 0/6] perf annotate-data: Small updates in the data type profiling (v1) Message-ID: References: <20240502060011.1838090-1-namhyung@kernel.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: <20240502060011.1838090-1-namhyung@kernel.org> On Wed, May 01, 2024 at 11:00:05PM -0700, Namhyung Kim wrote: > Hello, > > This is a mix of bug fixes and optimization in the data type profiling. > > Firstly it now caches global variables and looks them up by address later. > This will be good for performance as well as improves the success rates > because some variables are defined in a separate file (compile unit) and > has no info in the call site for some reason. > > Also it properly checks instructions that use more than one register for > a memory access like x86 SIB addressing. And check the type of stack > variables correctly and discard constant values (without type info). Applied locally, doing build tests. - Arnaldo