From patchwork Thu Feb 29 00:17:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Rogers X-Patchwork-Id: 21118 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2097:b0:108:e6aa:91d0 with SMTP id gs23csp89195dyb; Wed, 28 Feb 2024 16:19:38 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUpldCnM5PxdsS7S+31eQg6gAmTJjkWlvADdCoKxKQG+PP7fViuGnXu8kPmMro2NxRY+iTQH/0niRI7cBRV2AZkw+onhA== X-Google-Smtp-Source: AGHT+IHR/FmKJpC5lRYwyy8Pc6t1UavrQwvnRT1MD0lbSH4/8qUYg/lEuuxavRP921f5ZFQLXrcq X-Received: by 2002:a17:906:27c9:b0:a44:2b:cdd1 with SMTP id k9-20020a17090627c900b00a44002bcdd1mr298433ejc.27.1709165977980; Wed, 28 Feb 2024 16:19:37 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709165977; cv=pass; d=google.com; s=arc-20160816; b=itTdnhW6QD9IWSt+FYquidWhLOGITGDJbYydRcDhCMvMSuFmMwrGuX/GlRWSyQ+hmp DVDOZCHiBcGsYQaZH/3bxokIAkGVaM5LAFagGxVgbaugMdUIbJJ3tXJug1AN4fyuu5iO WAakMte5vh+cePDagxp2OTTLoD1Mk+GzNCtkGrKRGVkflfj1ZMIZ24yrFAkZvuDx7L13 lk9D2CdKbzT3wUuQCShUOu2puW8rdhrzM/ijGKZYHCvi0tE0OB9RTS/bUIWVAVnIJzdL X6bAxtHZd8yTpkMdap1Gf6JnIbR05ocfmb8ljUDxnCbGZDlXwG7LEpAR3HjDgHJAxxk5 E/wA== 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=i9aZM8JSI75x3Nv5IZnCmGh+gLHZGhZIzWCbKV2hRuI=; fh=+WrIkPHoMBLbn5mgX1DAWrdpfZZIYKQBdovNlPC216A=; b=SBdk1z2Ecv3gBXdn4cUvD4nvwfVdYZe3G6AOybtfKqsTyeKHxlOuGykjqcy5eC6UGN V6wj+9gvkIT8ebwFSyqUH2gh729lSdw6seUlPq2OA/D/dTg+rd77G9La2Gk3vbzDuflA mO+vCq/gml8aAs2aJ2oExUblchJqqWfAywjAnjJPrl8BEXfdqHUTs6zBbEbFOBjk7cyx dExdiQBazsOwNWLJ28bEvWITJpWtctzVLkeJdLaIIguBfsujpJkpqktmswrHREoyoKgW et+l1UUfSyONiR9u7FuKAsmN9l0LSc2s3oZAN9GUWIMfrfLFTrJbBR1tdZdrdPD9Z2dD C6IQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=Q4LXKtwd; 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-85892-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85892-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id br26-20020a170906d15a00b00a442d07e56csi60086ejb.7.2024.02.28.16.19.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 16:19:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-85892-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=Q4LXKtwd; 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-85892-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85892-ouuuleilei=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 am.mirrors.kernel.org (Postfix) with ESMTPS id 93F3C1F21BB7 for ; Thu, 29 Feb 2024 00:19:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F2EF92C1B4; Thu, 29 Feb 2024 00:18:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="Q4LXKtwd" Received: from mail-yb1-f202.google.com (mail-yb1-f202.google.com [209.85.219.202]) (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 7D4DC20335 for ; Thu, 29 Feb 2024 00:18:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.202 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709165906; cv=none; b=FlpjosrCQ1dOpWul1J0vQf4/ACV8L5pSm5DC9M1T25KnWuh1g7MCBE5EMAvEkTYwW/oSbGJ5bzn44A9YVX9XAhZKB31O2J4Zg7H044H/Hl867LfdndroqnBzz3sfY8iGi7UTLNaa+TDB8hr9lNub+KIIpp9uYki8pVLDjp/U6yw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709165906; c=relaxed/simple; bh=SNeE1H2bSvNelRyZsRJeUUph4hutQUY+T7ny61PsnSo=; h=Date:Message-Id:Mime-Version:Subject:From:To:Content-Type; b=L30p6t7pWDbSiaSrBsaXk/M3H+FGG/X1++ZMbTrMvkuOri3Tsiom9EtGVmcsJ+wE3g0sdSJCfHuGeCWjpQuzbUCjQ1mmNngPR5fmOeNg2vTwomLMQlY66Hedp/XZQuiM0X2cOCIp6yvUZhNyuvoMe3cAEzHfZTnAwrKRRDd+cGc= 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=Q4LXKtwd; arc=none smtp.client-ip=209.85.219.202 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-f202.google.com with SMTP id 3f1490d57ef6-dc647f65573so671387276.2 for ; Wed, 28 Feb 2024 16:18:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1709165903; x=1709770703; darn=vger.kernel.org; h=to:from:subject:mime-version:message-id:date:from:to:cc:subject :date:message-id:reply-to; bh=i9aZM8JSI75x3Nv5IZnCmGh+gLHZGhZIzWCbKV2hRuI=; b=Q4LXKtwdwN6AQWuzlOJBKhCj7s4G6FBP9DnemaBa1biautNdnZip8ui+Z5XpbgH7Rs on/fQHF5VZJZWMpEIz2lVF9P+UBmKjOyG5drxwHxwWcLM5hzZm+hfDtZqKUtmKP9Kew+ X/3JGhvKhM2NZ5V7RzB3wr0lAUt4zoxM5dP/i+ASAw/hVN5l6BxLfFtwIweerRzhIgME MMp1drRG4gc6R9m/mF1D9JQaCmsobTupDlo0+te9piuvQ+m3hyfsJeAi2PDEBQt+qINc WCJAfJDOyX7BM5GuiMgw/Ldh08a2UV9mmgNoOgTTwGgMYA6XADTWLvRbIbtXPuUHWWp/ YP7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709165903; x=1709770703; h=to:from:subject:mime-version:message-id:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=i9aZM8JSI75x3Nv5IZnCmGh+gLHZGhZIzWCbKV2hRuI=; b=r3wnquhzC20KgSZiT8JnB1I8AO8kloEpPOA3SOqOh8dzmkqc5D8LhxPIFG5jXbrsLS 7G895oxQYO9UKdgrIJwFsA2IH27v1zvv8bOtTKc+P2yrNJUWRdjglj7VusmQSVnTPXuV ofwdvUXA253kKB8hfpv99gk8idQ8ILLvMVzoz07jxWh0jxTupt3jsnL9zx5jlhZpooad 6Ud+l7kPiNrL6Ke6DgO3JAs5auPtme3OSW0V9DZe6FOQMYDI+bDl3tvcWgrhaq4wpXVG Li2NyqvxvuhFVCn02L7CDnKmOSvg7ukgZ5RZ2lTheXb+UdsvCYgeKns5ZbnfyS4sysFD tJtw== X-Forwarded-Encrypted: i=1; AJvYcCUcdLUb4Y/OwNzR7C92bt14IPvHZr+A5rl6SCPnuRqMmW9AFZaTdRo+cHvH8WuXHKDuBYnVO+AMs6H7Rw0mLp0bi/2x2d+GuBkuet77 X-Gm-Message-State: AOJu0Ywy6NvTkc/hMUneeshR0DS1tk0nZTTWlGABUnpnVfG/dNi6zKUh QDURqsnkjpteUdZMp/CLM/z3563ftG7U9nnqet7iQpMKF3qSi1kKZJ0cpBtg9xp/a8XDT6wxVHQ S4VbN5A== X-Received: from irogers.svl.corp.google.com ([2620:15c:2a3:200:77dc:144c:334e:e2dd]) (user=irogers job=sendgmr) by 2002:a05:6902:100a:b0:dc6:e5e9:f3af with SMTP id w10-20020a056902100a00b00dc6e5e9f3afmr193174ybt.9.1709165903628; Wed, 28 Feb 2024 16:18:23 -0800 (PST) Date: Wed, 28 Feb 2024 16:17:45 -0800 Message-Id: <20240229001806.4158429-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 v1 00/20] Python generated Intel metrics From: Ian Rogers To: Perry Taylor , Samantha Alt , Caleb Biggers , Weilin Wang , Edward Baker , Andi Kleen , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Mark Rutland , Alexander Shishkin , Jiri Olsa , Ian Rogers , Adrian Hunter , John Garry , Kan Liang , Jing Zhang , Thomas Richter , James Clark , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Stephane Eranian X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792190424400086149 X-GMAIL-MSGID: 1792190424400086149 Generate twenty sets of additional metrics for Intel. Rapl and Idle metrics aren't specific to Intel but are placed here for ease and convenience. Smi and tsx metrics are added so they can be dropped from the per model json files. There are four uncore sets of metrics and twelve core metrics. The cstate metrics require the event encoding fix of: https://lore.kernel.org/lkml/20240228170529.4035675-1-irogers@google.com/ The patches should be applied on top of: https://lore.kernel.org/lkml/20240228175617.4049201-1-irogers@google.com/ Ian Rogers (20): perf jevents: Add RAPL metrics for all Intel models perf jevents: Add idle metric for Intel models perf jevents: Add smi metric group for Intel models perf jevents: Add tsx metric group for Intel models perf jevents: Add br metric group for branch statistics on Intel perf jevents: Add software prefetch (swpf) metric group for Intel perf jevents: Add ports metric group giving utilization on Intel perf jevents: Add L2 metrics for Intel perf jevents: Add load store breakdown metrics ldst for Intel perf jevents: Add ILP metrics for Intel perf jevents: Add context switch metrics for Intel perf jevents: Add FPU metrics for Intel perf jevents: Add cycles breakdown metric for Intel perf jevents: Add Miss Level Parallelism (MLP) metric for Intel perf jevents: Add mem_bw metric for Intel perf jevents: Add local/remote "mem" breakdown metrics for Intel perf jevents: Add dir breakdown metrics for Intel perf jevents: Add C-State metrics from the PCU PMU for Intel perf jevents: Add local/remote miss latency metrics for Intel perf jevents: Add upi_bw metric for Intel tools/perf/pmu-events/intel_metrics.py | 1040 +++++++++++++++++++++++- 1 file changed, 1037 insertions(+), 3 deletions(-)