Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1243572rwd; Thu, 8 Jun 2023 14:48:31 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6GyOKSXVW5CGeh6RXIKRiaOrLI+4v2hNbYSKPyCQiEZujVynhLi/jL8xiOcNYv3D0Gqikr X-Received: by 2002:a05:6a00:39a6:b0:662:e5f1:1760 with SMTP id fi38-20020a056a0039a600b00662e5f11760mr5450204pfb.0.1686260910964; Thu, 08 Jun 2023 14:48:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686260910; cv=none; d=google.com; s=arc-20160816; b=ek2TkT0HXmDPZ1IME4zWfoct4Kvm3FtaHtvVQDg5PNZ4xLLvrxyVoNoJSFb8BnvXHl 7kwZS0aQX22hI3y54kgZ812e8njNkXM+EN1ks+BluSEF12SMDroMi2CyyfI8IyL2jpTo OibUIaFsaN3xXVtNlYtx+aPafA/iRBRdBeGE6TAg9f1xE57LHibgJ1CvB3TEGDfvG91w b35TrT6D3gVqDegN3DgEO3IgO8Yltd5nxXGy8e3eAEUnbwk6P5vpBpSqJcdBiaflVdwQ ceYnErLVfmFHS0/zaKwRDFPtwrF8JmDBxVB/TmdRqWtX2O+33EHI92v9S1YM+HyBIDJm XA1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=mJgcCGQF+EdVCKMcjZlTQWRVExYScbeDqPcvf8Ead2Y=; b=zbdDx2KQ0U7ZPB5Nmte1hThwC/dGll1q/xJH7MkzLoI61c8tV6RVX4mpdN0mOUxkT7 +cVb8DPPJzI832zmCXC51U3wXD3vjT3wId9eNuBMHIi9YMVJJFvrZc5/JpI/FHA6MEPp lfBOb9ldy6DbwvwRBPAdT3YcvfDpj9GCmsve8+J3TkCVCPepKVJzz++wzRXz0RR0a2TU BoyvRA/0HYyzynlh/2NzjiZjLbPPFfI3vYfUQbuJV7tyywNBLCWAZNxhPg1rGWXTGfcz C2f9MdJeFqD0Pc5iYVPHrBVsCRzaS5XLDpmkZS2fsor6esqrQ0qZoCDsImgmcoCbcE6M kjrA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m26-20020a638c1a000000b00543d2bb0086si1536289pgd.741.2023.06.08.14.48.19; Thu, 08 Jun 2023 14:48:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236982AbjFHVJa convert rfc822-to-8bit (ORCPT + 99 others); Thu, 8 Jun 2023 17:09:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237021AbjFHVJ1 (ORCPT ); Thu, 8 Jun 2023 17:09:27 -0400 Received: from mail-yb1-f181.google.com (mail-yb1-f181.google.com [209.85.219.181]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A88BB30D3; Thu, 8 Jun 2023 14:09:18 -0700 (PDT) Received: by mail-yb1-f181.google.com with SMTP id 3f1490d57ef6-bacfa9fa329so1174508276.0; Thu, 08 Jun 2023 14:09:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686258558; x=1688850558; 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=RSyw6qf+FqNzsYEWzuRM5QiQmAyiFWZ9iK/UDhMvxuA=; b=etsNKmEgF8KQfORpsEkKmYOkjsActJ0bOOB131/OGGz4I6+pXj71WZnVvD5M00ZgvE 5QhkMsKP3UWWt4rhKKkKrSFc+iWqZEEruQK+ImoEqLBqVufPq6SRGcime4EFoM67Up6Y EBlzTbb+CMjBX9XcBlkVNb+gGGq4S4v/I3zZ85vwaIyavneqKG38CEjdqXVbMV8jqWcc MATf3UZAcJcWbNbsifYWTAMmQQk52pR0vpBOq035BU+JNJ9wvRD5zuVoc3zF9zgQD42l wdRsvL1BwJNAZPh5NgmcjiP9Phg6DFfO9vfdWmSPImSxLvvTRvB8WX2PHSpjKKod/Tfg 41gg== X-Gm-Message-State: AC+VfDwpRk8wkJm8voc8IE1vFqzZb9F4Ymptq96mC8N8LugITgtCodpB NgF42/FxPB0ZXuOs6mlo9sssKaWmDGSAGur14ObmqW0R X-Received: by 2002:a25:37d2:0:b0:ba7:7cbe:1080 with SMTP id e201-20020a2537d2000000b00ba77cbe1080mr736104yba.62.1686258557687; Thu, 08 Jun 2023 14:09:17 -0700 (PDT) MIME-Version: 1.0 References: <20230608084407.140323-1-asavkov@redhat.com> In-Reply-To: <20230608084407.140323-1-asavkov@redhat.com> From: Namhyung Kim Date: Thu, 8 Jun 2023 14:09:06 -0700 Message-ID: Subject: Re: [PATCH v2 0/2] perf tools: annotation browser from c2c tui To: Artem Savkov Cc: linux-perf-users@vger.kernel.org, Arnaldo Carvalho de Melo , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , Ian Rogers , Adrian Hunter , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, On Thu, Jun 8, 2023 at 1:44 AM Artem Savkov wrote: > > These patches add ability to start annotation browser from c2c report > tui. The idea comes from Arnaldo's "Profiling Data Structures" talk [1]. I was thinking about how it works and realized that it didn't collect samples by symbol. Then I'm not sure if the result is meaningful. I think it'd show a random symbol that touched the cache line first. The same cache line can be accessed from other locations but it cannot know where they are. Also different instructions in a function (symbol) would access a different cache line. The annotate output just shows any memory access. So it might be good to check the instruction at the point but others should not be considered related. Hmm.. I suspect even the same instruction will hit the different cache lines at different times. Then probably the annotation won't work well in terms of correlating cache lines. Thanks, Namhyung > > [1]: http://vger.kernel.org/~acme/prez/linux-plumbers-2022/ > > v1->v2: Addressed comments from Namhyung Kim > - No longer saving evsel for each hist entry, using evlist__first > instead. > - Factored out preparations to call annotation browser to do_annotate() > function > - Other small fixes and adjustments. > > Artem Savkov (2): > perf util: move symbol__new_unresolved() to util/symbol.c > perf tools: allow running annotation browser from c2c-report > > tools/perf/builtin-c2c.c | 73 +++++++++++++++++++++++++++++++--- > tools/perf/ui/browsers/hists.c | 22 ---------- > tools/perf/util/symbol.c | 22 ++++++++++ > tools/perf/util/symbol.h | 1 + > 4 files changed, 91 insertions(+), 27 deletions(-) > > -- > 2.40.1 >