Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp101867lqp; Fri, 12 Apr 2024 11:37:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCULe5CHQe8toB0tUrfdJjZFp3Bv8Khz+y4fG8o9tQop2Wwg16zj27yJ7fP5lkeGVVG2yINWOP8RztJFglqH/f338EY/6D9H5XgLDADkCA== X-Google-Smtp-Source: AGHT+IHOD43n4Q1QX6KKmTJLkC1Tx0ZooUbaGl/7o3z0gduyZmvvxblV4G98ABARAw+xhXCE96pQ X-Received: by 2002:a05:6a21:778a:b0:1a7:815c:208a with SMTP id bd10-20020a056a21778a00b001a7815c208amr4334072pzc.61.1712947031342; Fri, 12 Apr 2024 11:37:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712947031; cv=pass; d=google.com; s=arc-20160816; b=brr9wA+B9UZw4XsX8WM1ZNqGI1ntOAmtmG9KEXxvXICA3sqGrr8TFVAqQWayqKuPJS q/ufLySPGyusc4uvMn2TDEjytsMbqWCSPdO4WuWoaF0eRQcyNhtuVIA4p7la5OwXFmSt o8/ICP+xSQBjep1Cp45Nsila85L0H/IAyoqsh8QfCkYyqANZdsEjcFxjnAha5D4vBNML PVhJRnBU4YJZidAMr/JmzkvvrSBszxVDCLIsTnOXGZC3UpSiyBbtEmMlUcNuv6767qc0 sZ9uwR3uJQV0pLpdYkj2/G6LPlqOIWYq5pVGR4h6L6lufe04vMGyPI3dOx5WOUn1IR/F 4HkQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=dbQl3o6JhVltdj0gWojJvtmuU1ZellmZ1ilUcBrNCrE=; fh=fHhbvXgCev/wpffLVpfaAi8pPyv7hrTyhVPgsZ7HNrs=; b=gopxq1vJvgcZ6HBrs6pL92L3lzAPIN4sHRqu923ufoe0sXU/wPc2Xg11pfpmNUZa+d H39Lo37DE7Y3ucv8+O4YoPLQXw6EYfiPO4P943JfvDJRi+bgW7+PduZqSmIto6Zl34pq 7TY0VyijQGByXGv0kBDXwkKAGD5DBB7LtXv/v92HMTJVrkQVsRqqoyKmUzZr3fb1XSMb euhZvs6qkaHjV1j6vMdd4pr0Vytc8ZPafnaITF65EHCTaaYhS7Mcr69yG7FslcvgQPJP pCxeFXAZDj2ud3glVctj+7ngwV6Eu1F/gVU1Uyss9KaeaKLVhP1QxpD4b+eVOWkpn7kH ZxiA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LEuR5gVX; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-143206-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143206-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 8-20020a630f48000000b005f3a866cc50si3665732pgp.550.2024.04.12.11.37.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Apr 2024 11:37:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-143206-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LEuR5gVX; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-143206-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143206-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 942C4B2435E for ; Fri, 12 Apr 2024 18:33:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1559C14F13D; Fri, 12 Apr 2024 18:33:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="LEuR5gVX" 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 3A620148313; Fri, 12 Apr 2024 18:33:11 +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=1712946792; cv=none; b=JJ5SinqxKSo9ZSl6aEy2vP4HiezdfIj4mDGtakqYDgF392TD9UhhNKbEUmlV0lH9qQSGDJKHnu0bCJxesPtqzB7L14Nn9czhVLleAQ4MEwYvbaxQAkXtEk6QIAaWr20lY1IyKIHllC0tUZzydGhdFiPNSOc++rPJDYRCIkSoGfA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712946792; c=relaxed/simple; bh=fY814fzcHenJo2QDXcpObQ8TZ74Z0JBV4+BBtdSgHZg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=iECXm8fj7NZYaPg4HxBZ8WINH2WwNeDBETqrvzP6KSJijCVOghs2OxQUylFJzFSi/gt5U/+iT398kPkAkJjznhqDEyWi/4GK7oGWoAkd2VKLJ28pfg9XU/rqBfdn7K73RqtrrbR1j1XB136WW4pVKq5tsqWompncKUq6lf8aY7U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=LEuR5gVX; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7E38FC113CC; Fri, 12 Apr 2024 18:33:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712946791; bh=fY814fzcHenJo2QDXcpObQ8TZ74Z0JBV4+BBtdSgHZg=; h=From:To:Cc:Subject:Date:From; b=LEuR5gVXXl3rh1T4LyyCWCmvuK98AIvyDDhA3m7C+J0uCh97SBVjL9Wm3f1Gw2uWr 22dxdT/OZuu0LOhnIesGvimB1MDQlH0WB1YKacDxM2Aity8E1dKac80XOcXfnDivS9 lmqMWLBmDUPVIu6oQf0Wk8Mt7euE4XUcXcqs6/orWwL+AsyZW//Gg46/L3AFL/sz1T seUOCWT2bYCdKNUt7J91Vkg7E4YxTdsfryF9JMJIr4AnF4SfBmyuqN/+bJG7xyrMd3 yvvn5npq7Xvc/pPYQVIJJsLU63lR9MqXNSpKyjxogyQR9baUQ+EWNePrRjRQB+Dpvc YVQBl2NU55hiA== From: Namhyung Kim To: Arnaldo Carvalho de Melo , Ian Rogers , Kan Liang Cc: Jiri Olsa , Adrian Hunter , Peter Zijlstra , Ingo Molnar , LKML , linux-perf-users@vger.kernel.org Subject: [PATCH 0/4] perf annotate-data: A couple of small updates Date: Fri, 12 Apr 2024 11:33:06 -0700 Message-ID: <20240412183310.2518474-1-namhyung@kernel.org> X-Mailer: git-send-email 2.44.0.683.g7961c838ac-goog Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 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