Received: by 2002:ab2:1347:0:b0:1f4:ac9d:b246 with SMTP id g7csp313874lqg; Thu, 11 Apr 2024 04:02:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVH7NIuaIbwnOedEokmAZNwJB3T01QQeRet+4sO2XXQYB0/7gjHBQ62RPkyMrT9uTY7a7Og5wECASMNaDpqBYFgP9ZY8QtNqkO2n3DoEQ== X-Google-Smtp-Source: AGHT+IFj3XdFk3mZyK8kSqecd6q8Se/L+fWYJFxD158kh3dHSqK15CFz9oaAEegkyNUWQUhGXpm4 X-Received: by 2002:a05:6602:4c86:b0:7d5:de55:a6c4 with SMTP id eu6-20020a0566024c8600b007d5de55a6c4mr5487696iob.4.1712833334763; Thu, 11 Apr 2024 04:02:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712833334; cv=pass; d=google.com; s=arc-20160816; b=c0UISY/JjKtT2e2JmR6a2wabK69E7wrq8LcCgN/5HixL/XEmweSdPpoAFU980TdZ7v lpcx7TFRm+c+8xLb2O9Jmk8UVt6+MGQFmUsbGvIdtIQJzch7sBVP6TOOwfJnP4JjEr5R c8067nOIKZNu0CpaAsNcT+PhPNpwIrkXzuK62J3Uv9uyVXYutrsqSGOLvH+Mxhyuk2Ab h9u6wywcFQjOHR9r4NMF8Y8J1KT1vUzNXkxJdRrFHBYVUgbK/CHKm5M3LGwHnen9ST/c tiaCzmVSKxW0/NWXqiEALGu9+O4ipcnYlKQuSjkgxRKCOFISbaCRZzlJh8PjEtwWK8or rY4w== 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=Q2NFOoPOb6dE2xSUJr4jMKvZscLimKS9RfItJz2rBgU=; fh=49GrrO/H3LiGmymuFnNd59pBYHHWBS2xk/6Ejg0rn8E=; b=SO9ig+S66AcaAKnWLINEoAMuRvm0lCz0uYw1A3U10yiB2mqoW5UP1JV6fHaHPyXbX9 PlxxPSnKKmVhU9DwGgxLeW7U8DdiTpqzhXZrJ1HqTHzRO+eoUbjgcgtt0LyEo2HRrKCL /AkJkJGBQpj2Zs1O8fl3D3EhXdHvQUdVyodJ3o94RhT9z08i+UQ8XbPklmWN+GDf99ql +WZE5Ea2q9U3NiYH34jsluT1xc81kO+2u/ndX30LRtJzqIEC8R2SdoRriBonltFjX+hg PPk7jQB12GwuMY7xjNQvgO4Kt3SU0t7LE+FXFesI4sfY/WzfGHNsaLgQYyH+WZrjQr5u N/eA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ITt7keUR; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-140300-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140300-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id r15-20020a632b0f000000b005cdf9c9b7e3si1105244pgr.179.2024.04.11.04.02.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 04:02:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-140300-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ITt7keUR; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-140300-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140300-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 42ED628309E for ; Thu, 11 Apr 2024 11:02:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5693C1474BB; Thu, 11 Apr 2024 11:02:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ITt7keUR" 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 81A8D13BACD; Thu, 11 Apr 2024 11:02:07 +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=1712833327; cv=none; b=WlIkJDkPGs6IO7pqlLbFM7Q7h7Obxjb92l/Fa2ndaZlGaPY6ChfI2Q5cNdDQ87DFb922Z7ZHanhaX6s/4g2ctXfUClD1U+s4BidXIjS1ljBVHglOvTEENEyKZ20SH+NAYFkc8XRzlBkwZGGncIXPySufbJIzKPwhCwffv2oK4m8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712833327; c=relaxed/simple; bh=ozY6hVvMNrGYH6tlZjxx5umvChurNxXOh6R9cmNMYMU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=l74tiWocR3Ty9DknRE1g8FcWkVs35tPR3U5vS/dLET1yXOZANmjZiHU+xXOA7Wg84NYrjr0pkXtbxZx85EznEEFqMb2G2EEIi1KMrsC055sJLVz21+zxKTKWFNmZVipOVYNHGkq0GY1N4PCe7ej2aookDUcpHEFMa8KpRPw8doo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ITt7keUR; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 901FAC433F1; Thu, 11 Apr 2024 11:02:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712833327; bh=ozY6hVvMNrGYH6tlZjxx5umvChurNxXOh6R9cmNMYMU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ITt7keURFX8f4Tuy7WWwTF4VLc77ty5YMzo0qcwpMNZxXYZ+kXUODu6BcijHsQz5V qXz5kVKGawoKATUPjJ/c636nJYjPo8JBWXkNNNpn6krY/Hd3lVbteuHlXohb+TBkG5 zv9X8c/l/2hhVTdRyqMB+2Gn/ONG11eAHqNLWjP1IwmATlGuH5yd8wPJNJUoxUT6VO nkWUnSh6cgZPFZyse0orJQ5BSaDxb4hjjKjJcS7w5t/BbvUjwP3pckTc7ilq2lhIAl 1N/vP01ibLhrNE8LdBdl+cxMlbF99WNKKQBOw4xaqHyRi5OLUH+ZK5XqW49boL8FRC mJ3R9hwOqlKQA== Date: Thu, 11 Apr 2024 08:02:04 -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: [PATCHSET 0/7] perf annotate: Add TUI support for data type profiling (v2) Message-ID: References: <20240411033256.2099646-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: <20240411033256.2099646-1-namhyung@kernel.org> On Wed, Apr 10, 2024 at 08:32:49PM -0700, Namhyung Kim wrote: > Hello, > > This is to support interactive TUI browser for type annotation. > > v2 changes: > * fix build errors when libslang2 or libdw is missing (Arnaldo) > * update commit messages with examples (Arnaldo) > * skip updating sample histogram for stack canary (Arnaldo) > * add Reviewed-by from Ian Thanks, applied. - Arnaldo > Like the normal (code) annotation, it should be able to display the data type > annotation. Now `perf annotate --data-type` will show the result in TUI by > default if it's enabled. Also `perf report -s type` can show the same output > using a menu item. > > It's still in a very early stage and supports the basic functionalities only. > I'll work on more features like in the normal annotation browser later. > > The code is also available at 'perf/annotate-data-tui-v2' branch at > > git://git.kernel.org/pub/scm/linux/kernel/git/namhyung/linux-perf.git > > Thanks, > Namhyung > > > Namhyung Kim (7): > perf annotate-data: Skip sample histogram for stack canary > perf annotate: Show progress of sample processing > perf annotate-data: Add hist_entry__annotate_data_tty() > perf annotate-data: Add hist_entry__annotate_data_tui() > perf annotate-data: Support event group display in TUI > perf report: Add a menu item to annotate data type in TUI > perf report: Do not collect sample histogram unnecessarily > > tools/perf/builtin-annotate.c | 149 ++++-------- > tools/perf/builtin-report.c | 7 +- > tools/perf/ui/browsers/Build | 1 + > tools/perf/ui/browsers/annotate-data.c | 312 +++++++++++++++++++++++++ > tools/perf/ui/browsers/hists.c | 31 +++ > tools/perf/util/annotate-data.c | 113 +++++++++ > tools/perf/util/annotate-data.h | 22 ++ > tools/perf/util/annotate.c | 12 +- > 8 files changed, 534 insertions(+), 113 deletions(-) > create mode 100644 tools/perf/ui/browsers/annotate-data.c > > > base-commit: 9c3e9af74326978ba6f4432bb038e6c80f4f56fd > -- > 2.44.0.478.gd926399ef9-goog