Received: by 2002:ab2:3319:0:b0:1ef:7a0f:c32d with SMTP id i25csp238345lqc; Thu, 7 Mar 2024 16:19:45 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVxPKzDI6gxYgrC+FewjQg9x/gv/tgtXQNFRkL4hN9C0PI6LsfTthLthPB3JI4SPrPd+xtjIc6ICj5w7zL7hSDtAjg1rfTK7u4VgK+HyQ== X-Google-Smtp-Source: AGHT+IF1Eeezm8P0xRHr7lbYi8Lm02mzdTZCvaMGMvGGNzJLj34a7DNQc/Nf9XIEoqOdRnBuFifm X-Received: by 2002:a17:903:22c4:b0:1dc:a8aa:3c86 with SMTP id y4-20020a17090322c400b001dca8aa3c86mr11982353plg.5.1709857185192; Thu, 07 Mar 2024 16:19:45 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709857185; cv=pass; d=google.com; s=arc-20160816; b=oiwShAPu7aagexbEIo2AE+UDcLKeCI7P8wTEinRH+2vxc3GxMwZS7dVWAcmfEJ/Fyo rwgl9e6fxG3uDJLlPhzItSd7uu1b8dVyW+c3u9/I+7u2Zp/nxiFlRLd3zspze61++CCd fEDuPhMj+xDIxacAZgg0OBCNkrBPW9ipGgAvMZmhbhST29R1yLdFaNGI3Vl4Bnl4DbBk r+nL0IGJfNLVIYUs9KQUchYpCTlABKMgNzUr6FH8yspSGs9xh9JDex9hWEfuy8bVKifi 5EPibjIBfiyp+APfeApHzWdgFf7zWGFgwG4yI3eE0rdoat22nfIQDlWf1RGNCUUIX1Wq EKUg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:from:subject:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:message-id:date:dkim-signature; bh=De+xXG9LErpx0jsehLOAYTZORpUzSmU7F+YMDvAGffE=; fh=Vq2gqtxsVngHTPt7sQdVj+RtBBghNribufHUGpyhKKw=; b=rgQa/gSbgqUfdfT4xcdBSaNUMr8+mHCJzsVOSmUbXNpzDCZveIMDTCtH/YbJnJ4laR 5vJr0BOrps1oOMsf2y3kSS3iKMysmWzG4BbiXEUSvY0s/wxhKMDw9zD06jew49y+DX76 1UO5ABmQk9gcSKuXtsK58gfnRBUOwFfGZUMip3QSbnfgIihK/fRJJPGwBpnZXDm1EkXH 7oRlYRFGeirS41mtGFraMVEVOss5M784TY21IXWnHxOFX5g/M68GGGkZ9VKbzDlaNpk6 NREVb3RaPz9wjni3IaMShxwGq1w2XCfq2cJQtvweAAhd/0nx4dLCuWnLftYcFMY1pETQ khcA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=lfrtRmJG; arc=pass (i=1 spf=pass spfdomain=flex--irogers.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-96381-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-96381-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id i9-20020a17090332c900b001dccb7f8f26si15429879plr.81.2024.03.07.16.19.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Mar 2024 16:19:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-96381-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=@google.com header.s=20230601 header.b=lfrtRmJG; arc=pass (i=1 spf=pass spfdomain=flex--irogers.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-96381-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-96381-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com 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 B1372283167 for ; Fri, 8 Mar 2024 00:19:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 363587FA; Fri, 8 Mar 2024 00:19:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="lfrtRmJG" Received: from mail-yb1-f201.google.com (mail-yb1-f201.google.com [209.85.219.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ED868163 for ; Fri, 8 Mar 2024 00:19:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709857176; cv=none; b=fypDdxxbysf934GC1X2/FmlvA3Nuc9jD49Nnt1FgUOY5waY4CxBImtbBzKTJqiVIT5ixSdtyw1D7pzzFLuq4VhnELSHD4KJt9Gra9wuVqBcfrCwVv4WDg0l8TJbIEAPBSxmlz+wrQpzzDP91aG6X5+rJOrRcmEpXtTiAdoPNg7c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709857176; c=relaxed/simple; bh=41OGcxDXHE9reRyhpUNhOqjp5DIntWx9erI9QUJZ7zM=; h=Date:Message-Id:Mime-Version:Subject:From:To:Content-Type; b=B8MYrtY0cgcaM9a+42tSF6O2QV94o2nz5XPNcb88sSP0R2Nmm7s4zBs2c0SaZLXsl1fsdxQU16oAVJRcwDHpb/NFbLZZ1C/ikaxZfBuNQgLrN7wk+Uo2Q3LALzxEDUgOUoOueJnaOKO1fkDR4OPXNnW+nqVzN2KiDOaFlVm18pM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--irogers.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=lfrtRmJG; arc=none smtp.client-ip=209.85.219.201 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--irogers.bounces.google.com Received: by mail-yb1-f201.google.com with SMTP id 3f1490d57ef6-dcdc3db67f0so3035391276.1 for ; Thu, 07 Mar 2024 16:19:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1709857174; x=1710461974; darn=vger.kernel.org; h=to:from:subject:mime-version:message-id:date:from:to:cc:subject :date:message-id:reply-to; bh=De+xXG9LErpx0jsehLOAYTZORpUzSmU7F+YMDvAGffE=; b=lfrtRmJGg9W8iRwkRhBBdvZpYoH+RwfbIKDOAp+IjVKwyl19jfUOTy0F9+0qGR4mG9 ari+gJ0P/aKFPVa1l+EIGJrXGCJdQJV4YyToA6qV7m93/vrC+RzqFya5ZP74PDnpzCf3 eQiOOJbqONhh/ENrWi53ej6pupp0vo0vCRYR4Y7094buNYsVtucbjkwyrk0lp5xgbls7 U1f4mw2smZNQG2nClM9dbHA0e/e2aLtqRIL47sJvvV9AJzEjE3AH+aX98osWwafANe9k 58UxjFw0rqd2Ac5K1zUwxsiha/4K1LXFj5YuNZUvbCypUnWsC9Eq1rIt8R6mrEXkkbLq FwOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709857174; x=1710461974; h=to:from:subject:mime-version:message-id:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=De+xXG9LErpx0jsehLOAYTZORpUzSmU7F+YMDvAGffE=; b=cfU53pnKW3Yjy9SqNRWJLpsXQ1TWVFo3Xl9L3xev/7mQpuWH2YOXvcrVZik9YSPplk B26fdxrlNu7bsu5dqF1vSqyz2aH51le6PzhDl0pK4QZjc5D+ry9CCC0x/yOtK++4MPOD 51JrmCdzrfI6r/2Rk6Tl5PVYTqObLK1T5kGIEWoAwvmNhxyL0nhn8jNexFsoIaFWxcaF 8VbpCuKyEaqT7fWxRXqrjRyCkYy3PzkWLoFXk4XxAkS+mu1xiHHe2/Bisp5mkAvuzzvt q77uRUbxNpjmsUpGNpp5An4uspFWR1DCkZYWZKqapduAXAbV9rOL1qYchtLwchbPEpuL EeJw== X-Forwarded-Encrypted: i=1; AJvYcCWlzb9VIqBDcSr9RaU8kt3ZPi3VbWYg1sKLKJCyXcdk0N8o3UgYxQJ3wydgmsKwbYc+v0k1aPtIjWEhLwdvzWarEX5MrgORiOFhOv5q X-Gm-Message-State: AOJu0YzBD9ynq9kbpjjI1CYDQ96v1Zggzskx1ibIeStCCmZXtWEDoviP Yx14qRbK5kHJFPIdtwOnz9EWN4z1rc8JB2O8qaAYavUjRoKhCH/p5Qnzd7vPUtRExsSoyi2hiQa TBmt/hA== X-Received: from irogers.svl.corp.google.com ([2620:15c:2a3:200:218f:92ee:d543:c1a2]) (user=irogers job=sendgmr) by 2002:a25:310a:0:b0:dc6:b7c2:176e with SMTP id x10-20020a25310a000000b00dc6b7c2176emr84209ybx.4.1709857173521; Thu, 07 Mar 2024 16:19:33 -0800 (PST) Date: Thu, 7 Mar 2024 16:19:09 -0800 Message-Id: <20240308001915.4060155-1-irogers@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 X-Mailer: git-send-email 2.44.0.278.ge034bb2e1d-goog Subject: [PATCH v3 0/6] Extra verbose/perf-list details From: Ian Rogers To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Mark Rutland , Alexander Shishkin , Jiri Olsa , Ian Rogers , Adrian Hunter , Yang Jihong , Kan Liang , James Clark , Ravi Bangoria , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Add more encoding detail and raw event details in perf list. Add PMU name and reverse lookup from config to event name to perf_event_attr_fprintf. This makes the verbose output easier to read, and the perf list information more specific. v3. Fix to reverse lookup to ensure or aliases are loaded and if getting the config value fails for an event/alias just continue to the next one. v2. Address feedback from Kan Liang, "Raw hardware event descriptor" becomes "Raw event descriptor" add assert to keep term numbers in sync, fix a commit message. Ian Rogers (6): perf list: Add tracepoint encoding to detailed output perf pmu: Drop "default_core" from alias names perf list: Allow wordwrap to wrap on commas perf list: Give more details about raw event encodings perf tools: Use pmus to describe type from attribute perf tools: Add/use PMU reverse lookup from config to name tools/perf/builtin-list.c | 21 ++++- tools/perf/util/perf_event_attr_fprintf.c | 26 +++++-- tools/perf/util/pmu.c | 82 +++++++++++++++++++- tools/perf/util/pmu.h | 4 + tools/perf/util/pmus.c | 94 +++++++++++++++++++++++ tools/perf/util/pmus.h | 1 + tools/perf/util/print-events.c | 55 +++++++------ 7 files changed, 242 insertions(+), 41 deletions(-) -- 2.44.0.278.ge034bb2e1d-goog