Received: by 2002:ab2:1347:0:b0:1f4:ac9d:b246 with SMTP id g7csp41808lqg; Wed, 10 Apr 2024 14:48:35 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV48iAHX9/vVBUtY//M7jngqikrLCpu+BFz6RXJUbeYML8Wqdg2PkVHJrMopkHAtJkHx/i0t6NWbi9QgWt9I7xFLvRk2onUufDXzvGW7A== X-Google-Smtp-Source: AGHT+IHWGNF+Ow3wc/cJok4qj3tBqEFdRaYc58loBZ2IEFcEyJ8fFz8GwRepjT2mIAXFf7t1Vw2H X-Received: by 2002:a05:6a00:cc4:b0:6ea:f05c:5c16 with SMTP id b4-20020a056a000cc400b006eaf05c5c16mr1212071pfv.5.1712785715232; Wed, 10 Apr 2024 14:48:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712785715; cv=pass; d=google.com; s=arc-20160816; b=iC2wrEuXjn3lk/c4hyHzLB9If93g4zbrxXqwucyvG09KcAyr2UOpAT8sKUT0Pe3/BY ML64Tcu1ObwENJbDeaA7b8Rina74mklwCM6iFrNPBGS65SxTfbeZTamtPh8GN5t5vrzA 1FSxtygnuQbyyMHEuiNneurstknTKhvjHuNYeL3z2kdvPwxuJ00np70inyDaMq3j7icu dCL3+pugSKM4hyt4jRJuYnTvUtrzWJWvYF5tU+AebA3nm3NQDwLYHZYEr3zfpvcBnZCr mISO++qb8eo00qOTkWE7g+0DeIvvO11jJfAG5LpOeUYBCwbs7aPwVcKoJnOXZEtL5gCh n5zw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=PjAuzegTxKvKcTWDS+buwIrvJwT/DmTjRYlhWDRXZeo=; fh=49GrrO/H3LiGmymuFnNd59pBYHHWBS2xk/6Ejg0rn8E=; b=J6zkB1pddAwxMabn8IAunKIIquB+mIUAYPFUnJCzIQkCEE5B+7DUpcRVOCp/vbzU0k DCKwd2H3ZzfXFwPg9i/EtXs1tkjDEbcO71mwAXx9yw7Ju0JVkmvTng8pIdHS+fe7ZkDf wXPTSnRlZUUufZSR8j+Tv4nqmw7n5kXuHgStyeC3Hvh4BBz5B8nbK/6G7Eq0CnF7ZiG1 qt8QMJUingJ+eKkc+Ou+ofvmcj0XrREiiNxItEh6DgaWIVFt8KqVOnxNIIZDo6iol1A6 t+h81uz3NF6/JFyGnBPFmeZ/n2eRKKMrLOpjKanPFN5PStZK9lKGTYm1L6zHQA9mLvJj iKhw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Nar6LfZn; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-139372-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-139372-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 n9-20020a638f09000000b005dc7e782167si22201pgd.462.2024.04.10.14.48.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 14:48:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-139372-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=Nar6LfZn; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-139372-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-139372-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 8AD3DB22140 for ; Wed, 10 Apr 2024 21:32:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6C02C1836FB; Wed, 10 Apr 2024 21:32:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Nar6LfZn" 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 93EB528FD; Wed, 10 Apr 2024 21:32:17 +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=1712784737; cv=none; b=Jt05T9U5DJz3hUmRLmJ50GVxMog7GJ7J7QUtd9Uhxojf+fCglFGEjj+G7CjNzXPN+FMMYwvDtz5fCRChEAHgAGMWqM9NVmJBValZNu1SHIvtRdSXNhtp9Tc0z5YQi5utOXhEB51R4tekCHuxIH92nvcvhcCyQPtQ/NWQp3Kv+Lk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712784737; c=relaxed/simple; bh=DsgMr6BDiqsK3q9T1+THsDzho55RHG2QZeNku/055Yo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=TTGWTpixsPAa6mA2XtiCpe9FKRrcavmh3zNJPsyyY2T7ujS4+SI1VC0Usjxtr91jgYZZP60M4FMnwvEq+g1u5USxnL3ZU9rR8VrSkCitnNeRXDntUa3qiQuP+w+nPgPqUSPGjJUh+OOdHEsBMZs0QCnQRWi1FUavgaw/hksszY0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Nar6LfZn; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 98312C433F1; Wed, 10 Apr 2024 21:32:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712784737; bh=DsgMr6BDiqsK3q9T1+THsDzho55RHG2QZeNku/055Yo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Nar6LfZn3s7SWdDNiyIov+OYYfRtmnf9YMtFnDqTcdOvYeB9hVkF/8okAE1zTCLK1 rSTcbxNBXTKH8RTs5PHVrGqoyldmH7ctV7PYM9hTbT2epN/QsSl5IEPV0BDgpb4FTg 9es7JBpdWRjno+6WOk1T5fozW3uOKNKJig5ZX10pqTWaq40vH1EoHg86BzFXjzxvLk t9fP88BA1qXdnHbm92joYzh+hWEvolvoAuLHKE1TvJe6n2Bkoz1cTrKmuuW4HmmOnv md7sIv6wIpFomRuRMAUwZi1Pf0p0+mayxgeTkYXjoTKEX0s+DELPzqhZNgu8C/yb60 M0TvfOaScsatQ== Date: Wed, 10 Apr 2024 18:32:14 -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 3/6] perf annotate-data: Add hist_entry__annotate_data_tui() Message-ID: References: <20240409235000.1893969-1-namhyung@kernel.org> <20240409235000.1893969-4-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=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Wed, Apr 10, 2024 at 06:20:06PM -0300, Arnaldo Carvalho de Melo wrote: > On Wed, Apr 10, 2024 at 06:17:16PM -0300, Arnaldo Carvalho de Melo wrote: > > On Wed, Apr 10, 2024 at 06:12:32PM -0300, Arnaldo Carvalho de Melo wrote: > > > On Wed, Apr 10, 2024 at 06:05:27PM -0300, Arnaldo Carvalho de Melo wrote: > > > > On Wed, Apr 10, 2024 at 06:04:26PM -0300, Arnaldo Carvalho de Melo wrote: > > > > > On Wed, Apr 10, 2024 at 05:21:01PM -0300, Arnaldo Carvalho de Melo wrote: > > > > > > On Tue, Apr 09, 2024 at 04:49:57PM -0700, Namhyung Kim wrote: > > > > > > > Support data type profiling output on TUI. > > > > > > > > > > > > Added the follow to the commit log message, to make reviewing easier. > > > > > > > > > > > > As followup patches I think having the DSO name together with the type > > > > > > is important, also I think we could have a first menu with all the pairs > > > > > > of DSO/type, sorted top down by the types with most samples, wdyt? > > > > > > > > > > > > Applied. > > > > > > > > > > > > > > > > There is something else here with the static build, checking... > > > > > > > > Probably because of: > > > > > > > > Makefile.config:810: slang not found, disables TUI support. Please install slang-devel, libslang-dev or libslang2-dev > > > > > > > > Fixing... > > > > > > Trying with: > > > > Not really, I need to check for HAVE_DWARF_SUPPORT as well? Doing that > > Attempting with: Nope, the surgery needed is a bit bigger, as you made hist_entry__annotate_data_tty dependent on DWARF but calls it without checking HAVE_DWARF_SUPPORT from builtin-annotate.c. I put what I have in tmp.perf-tools-next, please take a look, I'll continue tomorrow. - Arnaldo > ⬢[acme@toolbox perf-tools-next]$ git diff > diff --git a/tools/perf/builtin-annotate.c b/tools/perf/builtin-annotate.c > index 458eafe65e4aa16f..521ec7e226e29e6b 100644 > --- a/tools/perf/builtin-annotate.c > +++ b/tools/perf/builtin-annotate.c > @@ -469,7 +469,7 @@ static void hists__find_annotations(struct hists *hists, > goto find_next; > } > > -#ifdef HAVE_SLANG_SUPPORT > +#if defined(HAVE_SLANG_SUPPORT) && defined(HAVE_DWARF_SUPPORT) > if (use_browser == 1) > key = hist_entry__annotate_data_tui(he, evsel, NULL); > else > ⬢[acme@toolbox perf-tools-next]$