Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp232768lqb; Tue, 16 Apr 2024 14:07:10 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVFR+KfuwmT30GOtXnaAXebqE8mSTLsY17B9fsL42C6rI8KdACQV8tzHr2LP+udlrT9lTe4SgR+ATCcmBd15JivqoDsShWEHfSsCo1dWw== X-Google-Smtp-Source: AGHT+IHLbx/DNOKEDMil+Uo3U60duX8bHzqHs3zo9+geLD8g2BphnaSEETkDS4cjHmFm4Emqx4dg X-Received: by 2002:a05:6808:a02:b0:3c4:eeca:6c5 with SMTP id n2-20020a0568080a0200b003c4eeca06c5mr13373367oij.53.1713301630165; Tue, 16 Apr 2024 14:07:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713301630; cv=pass; d=google.com; s=arc-20160816; b=RwviBkHj0Z+HCYWrupjiO/B/B/0liCGsContA7Exf2NYzBLzPss/Ex4wLHDp1ZZ1Ja Tm4az2kIfad/1Lq7fH5ndCWXhPpXr5UwlW6AS+4Ug8zC5UyL9j+caIEeAIMdqHxJ/Oen eIx36dxFY3RxfLfi/AixdrPqQtenFYd87JmQEwnUbhJ+BjcL/34z5X8jzCduPkmqhrka 7jmpeEL5j+ViS59Kt8Jf+7gC5wuDdohIY49YFIWjG2koGJIJCmwOSthTadPzOU8kN6+2 2q8jFlzSy36Uk7QRGuJ35jVkbw4/ZBfvzAoNmRtB0XUqML01cyQej8DfqFa0gYhwXu8d 3yvQ== 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=AXoY1HRKNS840MVV6j3zx8JTCAIG3JA7iENcff6tlcg=; fh=49GrrO/H3LiGmymuFnNd59pBYHHWBS2xk/6Ejg0rn8E=; b=ptslFeJ7pISIwLMp0GYaPWW1FAN++I4MB6kHDLU1MdNelB8t6B+hS8GxYIINtpkmV1 +NSf/ap9EaLZL4cJWjKxpYc6TuwiwpmBM3Rc/FxEYgb16UNA3OLj+EYTPqx3CbJZxxka buDbpLYoojcZuuBxvdnKekWK4nI6q9Y395aP41b83jdxndpJKJ/La5xGN/9F7XFrQWWR nVxz9i4YOLw0kwlVGja/UNUWvqaPmQinWUBYBXoHgwkX/BVIhrgmux9KnmXVEdJkeAYH lvQKBX/H7LykdcR1ljTjBuFV5HpNvTr6ST8F4+4ncWlA/7kYLMglrdzcLyMIXPi1uMO3 bNmg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CzeoyLLt; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-147548-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-147548-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id i6-20020ac85e46000000b00434ab9db084si13795712qtx.607.2024.04.16.14.07.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 14:07:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-147548-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CzeoyLLt; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-147548-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-147548-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id D96B71C21BDF for ; Tue, 16 Apr 2024 21:07:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 95A535A116; Tue, 16 Apr 2024 21:07:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="CzeoyLLt" 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 B585858203; Tue, 16 Apr 2024 21:07:00 +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=1713301620; cv=none; b=mIaGEOlqNErgGoBtD+cTnzWZGCnMMaE8DuCBX3kr5PzSVNB1dteEYz3snQRPd7S+M+Rkl4nhx+J6NZu2WxVJI2vk0Sb2uDFfJR3bE2Xovj6a50HBdKLPmKomRThMBOHvGjmP7rvafHdpdVSW71Vtn1WYpZmY9E8+XhxGl+4UoqI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713301620; c=relaxed/simple; bh=ONCP2bFIWRJWPrrlD6FPRHnVB+6rMtOOD9g0rxMYLS4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=cM49sC14nunId/6mYG/U2h1gdv4/RMTAW/U7eoQFqIyHn2BKvKuuLSFsvJpK7LdI/Ry3aZ4+nmpZpVm+jXGbtjehXqwTyh09hL/Whc1fSpVkYZAhWMyme+Ti9pQYNba/HrChqS8afJRto3tPdmW5jvsliBJ16Ah7VqwXXkzCslk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=CzeoyLLt; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id A0504C113CE; Tue, 16 Apr 2024 21:06:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713301620; bh=ONCP2bFIWRJWPrrlD6FPRHnVB+6rMtOOD9g0rxMYLS4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=CzeoyLLtjCH92fzH6b6xsKhQn+a0mPTSDmNEcptI0C0Dk3OEejkBSBPyUydBKh3Lw lBRI+0h5X8W0LWggaf7931KHvSIXyzSsZe+x7p/KjF8Kb8bp2fknRjUfmzaisoMSBb jwf+DWNHwpQX2mNcw8KdTwtJU0n7SRRU4kOLknkgVROhi/PUcNlgRzFlgvq+Qyzgo2 wCCEFSLq0RrVP5NbtXP6q3mncAKu+gxZmAS/e3Ed3SwDa7DbYwDa48yAKnM1Kg8ajT 2wo6G3yHfuDTJi2dwBlgqVWMitw5iQAhvE+yPzgSLYf40kl8qmY8Z3SGh/uIrVZrdC i2cu5EGHWmxbA== Date: Tue, 16 Apr 2024 18:06:56 -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: [PATCH 0/4] perf annotate-data: A couple of small updates Message-ID: References: <20240412183310.2518474-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: <20240412183310.2518474-1-namhyung@kernel.org> On Fri, Apr 12, 2024 at 11:33:06AM -0700, Namhyung Kim wrote: > Hello, > > I am working on improving quality of the data type profiling and I > found some issues. One is when more than one variables are placed at > the same location. Then it should find the correct one based on the > given info rather than checking the first one and bailing out. This > one (patch 2) can go to the perf-tools tree. > > Another issue is use of the stack pointe register when it's not the > frame base register. I found a case where rbp is used as the frame > base but rsp is also used to point some stack variables. And it > confuses itself how to interpret the type of the variable. > > I think these are rare cases but it would depends on the code pattern > and compiler behavior. Anyway I can see a tiny improvement in my data Thanks, applied to perf-tools-next, - Arnaldo > with this change. :) > Thanks, > Namhyung > > > Namhyung Kim (4): > perf annotate-data: Improve debug message with location info > perf dwarf-aux: Check pointer offset when checking variables > perf dwarf-aux: Check variable address range properly > perf annotate-data: Handle RSP if it's not the FB register > > tools/perf/util/annotate-data.c | 126 +++++++++++++++++++++++++------- > tools/perf/util/dwarf-aux.c | 35 ++++++--- > 2 files changed, 125 insertions(+), 36 deletions(-) > > > base-commit: 0ffc8fca5c15a70f32c8aff12c566bbd3991bd0a > -- > 2.44.0.683.g7961c838ac-goog