Received: by 2002:ab2:687:0:b0:1f4:6588:b3a7 with SMTP id s7csp111060lqe; Tue, 9 Apr 2024 16:50:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWAr6s0vqH/6ES+hBSu7HqF4fO3Jy5KiI8/CNR+WdsVe54f23+GwG1hIZmzEtqOVv1WjtC4AqeyBjomZcQLfRFUUvvB45xSaKkMEmwbQA== X-Google-Smtp-Source: AGHT+IEQ/6R5c26Ro7cvkDB8FGCxCFcHRiSXMfttQimCcNKsep3fHFpmelhGrOhll1Qi3eoby9HP X-Received: by 2002:a05:6214:4a93:b0:69b:240d:ce4f with SMTP id pi19-20020a0562144a9300b0069b240dce4fmr8025279qvb.5.1712706612071; Tue, 09 Apr 2024 16:50:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712706612; cv=pass; d=google.com; s=arc-20160816; b=hEOfYvA+5LgDr0qH462fnbXTW1QuZItwSpJx20p/jCQDwrUitmlLAvFT8vJQLRP3+8 dXxpWFZGj5BfdtidNMEV/l/LldtZvSEnhZXNXbwUfbmiO830Pjt2FVh25Z2MweBELpBv C0Fkyv9Zk0qzt4zOAGEbLQ9PEePjGbuaHxxuDcsSPDpvod3Gl41He9ph1j9A+WUfZXur cjW0SrOlsQVyPAI1Jgo9L4076GOB4GwsDV2Q/DX4bULWID0fRptlcbz1UKFr5RO/VMyX 0w7gzB1Tpfd1uQ2T0EoVz4M9dIA5sojAbRjVbXcfEi6q1l8E2qb77MBJxUBNnfbzVP4l DKyQ== 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=xwrFa2ZYNS24/pWWZgfSBLeqYQWwBO+igVeAz9/aAwM=; fh=fHhbvXgCev/wpffLVpfaAi8pPyv7hrTyhVPgsZ7HNrs=; b=X468tWiqLv5l6LGmFkXvNMbTEyt8bPAZq4PTlLAedxiyncqLZBgtaN9uwi+5s61f+j kjZBeUamSdIxiUDoYLbL2tdyC9IHWg4/pd19reRpmElbfC1BipPdmHQfJrr27z+P7azm hP3PQs1TlESYagMsUBbYfNhSg63yhYSm9Ous+MJ3rHS+YxJrinMbJQwxOcbgO0DiHnNZ BVliCya8LyZc4p2GH2a/gNHg2bSlfQNoLx8aovWMkdXVWThHQeydxGFnalcO7C2WCQ49 Zl/rC+BHPVvy1TOrKcyx5Kuej73iXJJDiL9nsShKDwB3nZ+UMlePOgK3Bzjo0GR1IE32 3YmQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tgd+GiKy; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-137725-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-137725-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. [147.75.199.223]) by mx.google.com with ESMTPS id w13-20020a0cc24d000000b0069b10ff8960si7419182qvh.176.2024.04.09.16.50.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 16:50:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-137725-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tgd+GiKy; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-137725-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-137725-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 C84131C20D10 for ; Tue, 9 Apr 2024 23:50:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C1BCC1591EA; Tue, 9 Apr 2024 23:50:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="tgd+GiKy" 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 E38D21EB5C; Tue, 9 Apr 2024 23:50:01 +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=1712706602; cv=none; b=ETXnFicurpEBkfiFEKbQo1LKgB4Sdh54v1vKn0ZI6d48+2prwfIVpq4qKkBntSfGO3dJhnpB2FSF6kw/VwExhc5SgjwA5CEwXVRnWU7dAKeezhdZU2pl1M5kujbjOrN+5ciM/5D7IRn0QLeMShb2z1Ct5mp739bGH5+eejwmEa0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712706602; c=relaxed/simple; bh=Ui3MOaTZXGUeavlImoYOyo+UW/KdX4KD/cXGTpTDHko=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=CEOvU3ECsU+wp8CDHLIE5b2mWrC21bVG7A+KztFw31Sa2sz6/Vgr7dIUCEOgbRZmlzfikkz6pRa0aarBen5Kr1KICznZrdmZuEKSV0T71aWa68LcvlSuGC5bqw17BJgqWWtgR4G3eIBBo/GlOOdpSIG0SbKBTipFUaJB/dKex8c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=tgd+GiKy; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 14DE6C433F1; Tue, 9 Apr 2024 23:50:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712706601; bh=Ui3MOaTZXGUeavlImoYOyo+UW/KdX4KD/cXGTpTDHko=; h=From:To:Cc:Subject:Date:From; b=tgd+GiKyOdv+V1+HYDZBE+RXsIxSWu2TcHyu1qA3HkipnWb/Cwmfl2jw+ETT7jYIK R/jwAjP89L7xHG40hTyejaQAZ2zFvrFP40NdXfbdpZglIlqyWMO1TuVMS1wagIlP/Y 4JoLXq61QsRAUf1Ye76oxafXBwsWa08/L4DVcY0MXfOWSh8gOpyIJN3w5hA9h7gf+g M9XJ4HSOyVhOkcVEOkTUzP/O6mx3kQraIc3OqKUOrt4oUCObnxW3I84a3UOlZZICwU ppOHxrI8+BlVbzkpuKB5ABsTZZ7abCPJN5oOWhk3smXiUxwyNeEnTzt44UGdFv7u0M 2t5i65nlu+0cA== 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: [PATCHSET 0/6] perf annotate: Add TUI support for data type profiling (v1) Date: Tue, 9 Apr 2024 16:49:54 -0700 Message-ID: <20240409235000.1893969-1-namhyung@kernel.org> X-Mailer: git-send-email 2.44.0.478.gd926399ef9-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, This is to support interactive TUI browser for type annotation. 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-v1' branch at git://git.kernel.org/pub/scm/linux/kernel/git/namhyung/linux-perf.git Thanks, Namhyung Namhyung Kim (6): 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 | 6 + tools/perf/util/annotate.c | 7 + 8 files changed, 515 insertions(+), 111 deletions(-) create mode 100644 tools/perf/ui/browsers/annotate-data.c base-commit: 9c3e9af74326978ba6f4432bb038e6c80f4f56fd -- 2.44.0.478.gd926399ef9-goog