From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 37900C433F5 for ; Mon, 7 Mar 2022 17:19:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244397AbiCGRUV (ORCPT ); Mon, 7 Mar 2022 12:20:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56228 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240304AbiCGRUT (ORCPT ); Mon, 7 Mar 2022 12:20:19 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8753259A45; Mon, 7 Mar 2022 09:19:24 -0800 (PST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 53CDF153B; Mon, 7 Mar 2022 09:19:24 -0800 (PST) Received: from e121896.arm.com (unknown [10.57.41.31]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 855B63FA45; Mon, 7 Mar 2022 09:19:22 -0800 (PST) From: James Clark To: acme@kernel.org, linux-perf-users@vger.kernel.org, anshuman.khandual@arm.com Cc: german.gomez@arm.com, leo.yan@linaro.com, James Clark , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , linux-kernel@vger.kernel.org Subject: [PATCH 0/4] Branch stack improvements Date: Mon, 7 Mar 2022 17:19:13 +0000 Message-Id: <20220307171917.2555829-1-james.clark@arm.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I came across a few generic non-Arm issues when reviewing Anshuman's new support for branch record buffers on Arm [1]. The first one is a fix to an error message which is misleading if the feature is unavailable and the remaining ones make the branch type field visible in perf report and perf script so that it can be debugged or used by other tools. Applies to perf/core (56dce86819) Thanks James [1] https://lore.kernel.org/lkml/1642998653-21377-1-git-send-email-anshuman.khandual@arm.com/ James Clark (4): perf: Add error message for unsupported branch stack cases perf: Print branch stack entry type in --dump-raw-trace perf: Refactor perf script branch stack printing perf script: Output branch sample type tools/perf/builtin-script.c | 28 +++++++++++++--------------- tools/perf/util/evsel.c | 4 ++++ tools/perf/util/session.c | 5 +++-- 3 files changed, 20 insertions(+), 17 deletions(-) -- 2.28.0