Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp1334329lqm; Thu, 2 May 2024 11:23:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXLGMx896ykhfsrjKbhEtioxgS4nN1S9CpzJ84wiwZNOaeeG36DrR4GmG6a5BM10HXEeFXpWGfo8oySRWZG4LKQ+mxCdeR8/iYHn6uEig== X-Google-Smtp-Source: AGHT+IEB3PWetsnPdsLli07vdIdQwGWJA+U/PSNZ7Qaq8Fda6ejWCBDBCfCfnzBqjXNEPMG+41Ie X-Received: by 2002:a05:6871:486:b0:23d:f7ce:14d2 with SMTP id f6-20020a056871048600b0023df7ce14d2mr827523oaj.3.1714674217464; Thu, 02 May 2024 11:23:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714674217; cv=pass; d=google.com; s=arc-20160816; b=U+KWm9D8Ebb5Wt/NySnUxwNb/4q0hT0ACMUXWzM1wvx8G6gNF9JxIg87PXlYQQgjAQ q0t+ii6dIDM4stxQOXzdOcdGGLXAKv7FP217tyGrZEH+3QfbvY13cNz29MkHqiYGUjCV fV/mkvkahvoHpQKEJfBnIHfG/j2/KBEJVMMfcQpr+b+5hUOKssjKrDHL8J+zxQqA/8nw jUh9yO/BXGvQpf/v+DWY81q6y1XtMOt+3ib386V+TVHv2ck2f8usNF7SPcOC9LToZMEQ fWki5ycLR8C4gB0N4daAg995IgxrtYicO/rC8YYnHi7pVO60cUpm/O2QLOb7c1CU9e0A 4pGA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence; bh=Z1FoMHQWOMW5NazguqbdJ2vyAEy94LpT4il8LmHAdf8=; fh=DwYrWmjoS7/0TyjIRSTfatjMF7QqKbwAFfuxwEA5yqk=; b=zZchVDzuokgu6u3VoxPk+AjJf8CJL+QLWsrLD+Ed7PM2nfx9x3d/ql60A8nXgK/1Hs Yzc/IHNBfo0av31et3WLnkmOCAjWOv0JBFFz4WEOKtWUt8VVXZiHnVNjhCrpMYXi7Wlf 1wPHmfTdfcJ6cJAO1b8WFoUd93hgUJxBTWsFoqNIKVkmV9oczJvjYv29QU3CUERC3Dla 6k4Am0YIlV5xEbheQspQXQBOdwCO+I1v/HouZrF0OOfzFQ4laZ8q7Jv1q0A5x02sv+RM QUfCBx6Lm1Wm7GLydm5ACiHDMaKtGOTTTr+QE0BRdXldLjdQs4nmdImEKyeyaQkwZwkQ 3M2g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-166834-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-166834-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. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id m21-20020ae9e715000000b0078d61d7352esi1421978qka.159.2024.05.02.11.23.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 May 2024 11:23:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-166834-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-166834-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-166834-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 2531F1C22D67 for ; Thu, 2 May 2024 18:23:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C051D17334F; Thu, 2 May 2024 18:23:30 +0000 (UTC) Received: from mail-pj1-f42.google.com (mail-pj1-f42.google.com [209.85.216.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0CB1C16F90C; Thu, 2 May 2024 18:23:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714674210; cv=none; b=bm6/JxYtdP+twv3jMFlSjsZMNlztC49SIGSA53c7KHbcvaWnul8cX86B5dhQybU568VldpmIt3iNGSJw+h1n22nlhdGi80ceiGWNoGvDld/oSAFJSLh/bGx0FOoHaq4Il6B91WulkfWRGMqm+NrumxEgMNaEfGqPsn7qin6hPcY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714674210; c=relaxed/simple; bh=UGRIpdQuVWv7frbkKdg//Yw72g2vdPMaZMx+CTeZA7Q=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=U1s68lvaKWo29FE0Y99ZWXw1wv68b3ITCD2zUOyoQk3Lg7miRb/9eAgSnz6UDeC/kcYzY8dScd2FyLy0vc2WkJoyUhcEI3J/yh8LDrVVLFbRNLrQCbPd9//FvJ14R5b7QQDWa5jL49K45FX7/6POP/ei/w95P3oapCWc98xqzaM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.216.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pj1-f42.google.com with SMTP id 98e67ed59e1d1-2b12b52fbe0so3548749a91.0; Thu, 02 May 2024 11:23:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714674208; x=1715279008; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Z1FoMHQWOMW5NazguqbdJ2vyAEy94LpT4il8LmHAdf8=; b=Vv+tblQPphPNQZu4JiAO80/I7tVWW0m/6wW2qhw4WUUrWQW5UC5KL8foFfVb0l9pMc 1LpvQOVNGvF7QO1utv5s3/HCg6pUBhA/GtrCZd0EISvxlXytkOXMBgWEghNzNMDsY1W6 WrqjWPvnvwqXhjmMkgiohzttocvTfd6XWnBWRgJEf4Xe3oZrAH5Tw1zWLfCkLOgCwo3y eS9NIn8aFsq720QAINTOdAAL4JAXzmj4c5xasANdxMMZYPuvHNaY2zJ9Au1J81RBRUo0 VoHsxg32cIlbCxkYXeSTcE3LzIFMDp+MCu/Eq5UuxLkOTymtG9xpokk7VW6ZQZZbnZBE J7JQ== X-Forwarded-Encrypted: i=1; AJvYcCWV3CqLja085+3ntb5x1qyyyqSpEi/p7ma01VGsb8RMH8+qU/LuCiVFIijd1T1XvCha5fNhAfPJBsKN+kgA506BX7+Lqee5Sbg9y660JRUWc2TMCrSjhH4sWGhNYqEI+s47johEmem8w/5IYiiA7w== X-Gm-Message-State: AOJu0YxncASIPiz0Oj20MQfrSaLXFvIYACQhA/sDltrqJG1a7zzx0Cx1 WaiKHPi/dr3UYtcCCYJsr+/QF/xYk19Hm0IPjoAERhPXJP+07+ymy3uG/+R/eCq4/Ng8BxQ01se Z9z4p0yFwDu9jvY/Z6cf6cPnZT4PKdg== X-Received: by 2002:a17:90b:1089:b0:2b1:9fa4:16fd with SMTP id gj9-20020a17090b108900b002b19fa416fdmr629131pjb.4.1714674208317; Thu, 02 May 2024 11:23:28 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240502060011.1838090-1-namhyung@kernel.org> <20240502060011.1838090-3-namhyung@kernel.org> In-Reply-To: From: Namhyung Kim Date: Thu, 2 May 2024 11:23:17 -0700 Message-ID: Subject: Re: [PATCH 2/6] perf annotate-data: Collect global variables in advance To: Arnaldo Carvalho de Melo Cc: Ian Rogers , Kan Liang , Jiri Olsa , Adrian Hunter , Peter Zijlstra , Ingo Molnar , LKML , linux-perf-users@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, May 2, 2024 at 6:50=E2=80=AFAM Arnaldo Carvalho de Melo wrote: > > On Wed, May 01, 2024 at 11:00:07PM -0700, Namhyung Kim wrote: > > Currently it looks up global variables from the current CU using addres= s > > and name. But it sometimes fails to find a variable as the variable ca= n > > come from a different CU - but it's still strange it failed to find a > > declaration for some reason. > > > > Anyway, it can collect all global variables from all CU once and then > > lookup them later on. This slightly improves the success rate of my > > test data set. > > It would be interesting you could provide examples from your test data > set, i.e. after this patch these extra global variables were considered > in the test results, with some tool output, etc. > > This would help intersested parties to reproduce your results, > validate the end result, etc. Hmm.. ok. I'll try to find public data that I can share. But it's just a perf data file recorded with perf mem. Thanks, Namhyung