Message ID | 20240301184942.2660478-1-irogers@google.com |
---|---|
Headers |
Return-Path: <linux-kernel+bounces-88950-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:fa17:b0:10a:f01:a869 with SMTP id ju23csp85438dyc; Fri, 1 Mar 2024 10:53:42 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWlqC0OlkY64dlkQchTUi1QqztHaOimn7I+rLb05AT5vf8fOosCHLUbPh9eMeZCyqQoGLZb73CqWP/ALYXtAFxV1oExbA== X-Google-Smtp-Source: AGHT+IHE6k6H0v67csbNLgGrJJquKtSLvvdY3GpQ/Rpo/gaAE6jEIcrdjhwdggaOf4aRe5v7xyhY X-Received: by 2002:a05:6a00:805:b0:6e4:c626:f905 with SMTP id m5-20020a056a00080500b006e4c626f905mr2901299pfk.16.1709319222534; Fri, 01 Mar 2024 10:53:42 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709319222; cv=pass; d=google.com; s=arc-20160816; b=Rly9OTmpm/YlAnQq4StktN5y5ium4yJGLRT5AawWadgi1u7YQ0q/Wych/XQUawfDBT lgQIMGad1ng8xuG9ROQhjYI7iRDAJyv4I+wyod0Yny7Q0R0gI7ulE4FJ8jfuL+JwBJ4F ILdHW9MHzhbVzJhN3qz6WWv6kD/+CCh02U1PpVeIF6viEBSwcZ/PwoaRY3STybreb6hg jV2LivjheJWnsSTKpVTQd0sniOSnjr9mNSfuRDbLpO6GIP0uGpxEOoVDbB5Gro0hCb3T hk08pZ0O6Z2Lzsz9+uKHkRFQDoXkdmkedQbYrOd1zYXt+xDb5g1otwNGT0IaQtOiH2u7 IiMw== 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=EffxSucwmFeFSroxX0cVPKZy2COrl7eRkJx5fhGIBBQ=; fh=404AnAIrvNl6ysLADFX9AAtdF7/5BgUMXVMlW0spaxw=; b=NY1dGnFsIF/WLBWDQSuGwChI5d/JIu/3/8tdI3c40vFd0WnGLKPfQLIG2u/SbD32zA O0uMiD1brfhJQ/9yUEpe3P3mtZ+QkM0OmKli+v8rjK9z4/4UgcU+kEiXIbrJ8P95JPZ2 6rYs84vlu35ABfWtsTtB7gGFM5IZEfISkqG/6mFXabm7b36PrMExKilwuB8dKf/AkaHp mN7dV28SQLoRRcsT5r5lLJYxPQ3NpLCjKX18qcByxtLTdI0F2ObbfBTwBAcp5JknaAU0 u3ySLDnt+BOHADF0jR+qCl4emW4QAVXUatveh3NidkaxqvfFiG6dtnHV7CG1/eqIixAk YWrA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=TKcde1lI; 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-88950-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88950-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id s3-20020a62e703000000b006e558757d5csi4032921pfh.16.2024.03.01.10.53.42 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 10:53:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-88950-ouuuleilei=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=TKcde1lI; 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-88950-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88950-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 8AB192858E8 for <ouuuleilei@gmail.com>; Fri, 1 Mar 2024 18:51:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 263AF3B799; Fri, 1 Mar 2024 18:49:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="TKcde1lI" Received: from mail-yw1-f201.google.com (mail-yw1-f201.google.com [209.85.128.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 1A93E2900 for <linux-kernel@vger.kernel.org>; Fri, 1 Mar 2024 18:49:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709318991; cv=none; b=o0xV194o2Kw4gtyAbJRlG3EELVBD8nAglSr2hIn5ib96c3pkWpPLfxho4e0NkvNR5pUZLuJO2pCFZo9H4yLJUiwTmvWzxUzXz2LpuatR0KOvMQLQwAFTF29MFTR+7bnK9sf61sQkDak+00w0j+ijbj2GnivQGFdnteDVQTfLJcs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709318991; c=relaxed/simple; bh=DurBK1+YzS4Zj55zfkReuvuRCa8IKOApghKnxhwShZA=; h=Date:Message-Id:Mime-Version:Subject:From:To:Content-Type; b=Ce2zi5lYqFqw68+wCy6iepW7nqcTgnQGnM6ghtuUEPEZq5zTwBctP5667/PIXURA8wgju+wm2UW3o3zZu8gOZSOsWKVWP+lszOdjml+ff5M1Z9d5JspUcoYYcgBEysz6XiBFESBXaTGU/0jiv6jHDPRhx93iC1hadGjZ8TAEbOk= 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=TKcde1lI; arc=none smtp.client-ip=209.85.128.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-yw1-f201.google.com with SMTP id 00721157ae682-60802b0afd2so23217137b3.1 for <linux-kernel@vger.kernel.org>; Fri, 01 Mar 2024 10:49:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1709318989; x=1709923789; darn=vger.kernel.org; h=to:from:subject:mime-version:message-id:date:from:to:cc:subject :date:message-id:reply-to; bh=EffxSucwmFeFSroxX0cVPKZy2COrl7eRkJx5fhGIBBQ=; b=TKcde1lIxRCZMipvDg/6KQHbHGuUGBBMDSBq9yMeNUw+/lKPNPHff5ij6xKdpoSL8T /MlJJBOLsu2QHfTInOcq/dPPRrssMaS/RZKvVpxAh8XDdcP7hmIOKDf5HvSI4SrsJv17 2XNp8uv6zC1W/166EzU7w9HlaLsjUB3wKZ+fO8GDNVOB2BztUkJ+QQ8pu3ya80QHx6UE oGDgEGl+X1kQWIejkp7einb3w4its/LDmLYOJ9P/vfl+pENzZx6JcFTbUqygaHaSN2tm URE3Xm/14RFp0jg+Oxw5ZNBTEoH/XUbt2YGbqlhB3YajpFo19ETZLDW5LSw1i1190bHV O8wg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709318989; x=1709923789; h=to:from:subject:mime-version:message-id:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=EffxSucwmFeFSroxX0cVPKZy2COrl7eRkJx5fhGIBBQ=; b=mJJkOQ9xnkcPQYKlj6w/oU7i0Un4V+O2w2lZmRF1+8PNkwfacKngoeBzj5jXzSIrSF eighMwuDDqcTobynFEpBime1aoOFA0N9oh64ICUuy04iXvk9xwy3X2p2N3ylSmAQWJv3 bqBVFTtYQ81EMoV6UFWoYQiZ1YGnf9xfR2xUeFY5kOYeoEexxanPAncJbB9/lHrscOro A1QJk+cYPM0XE2tHxg54xXHSyP+O8OL0gZzy5GRRtqpyCK+Jo9oPjJldRncehKpfnWiz khoJFAfJZXDGv4VCpE0R89Q3Q+wbJZ6fHekUKbLm/TXJc1BTDyblAEvN0ld+82o9Ryuv gWIw== X-Forwarded-Encrypted: i=1; AJvYcCVtOQnHa255oxCMJdp+5sWHEE53HHge/ngZKe22MWjWExGeFdhuIB4nNK73e3l8oIonyxwURqq2vXQRA6HMp7wYt3xysEtGWoLT5Tvd X-Gm-Message-State: AOJu0YxYVUeYwjZK9wk4Tz06Ovryxsm800JGoxGqldv0AMyUoRtIY0dN xZ+UJB/FJGOSgN3jDPJ90pp9C3bSI1X/ZuaP6UMhrn+ZQ590d4EGE54rY9Rf7qKxUVuBVuNDSe7 FuIx1zg== X-Received: from irogers.svl.corp.google.com ([2620:15c:2a3:200:af4b:7fc1:b7be:fcb7]) (user=irogers job=sendgmr) by 2002:a81:7e13:0:b0:609:82e7:c0b with SMTP id o19-20020a817e13000000b0060982e70c0bmr525151ywn.3.1709318989208; Fri, 01 Mar 2024 10:49:49 -0800 (PST) Date: Fri, 1 Mar 2024 10:49:40 -0800 Message-Id: <20240301184942.2660478-1-irogers@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> Mime-Version: 1.0 X-Mailer: git-send-email 2.44.0.278.ge034bb2e1d-goog Subject: [PATCH v2 0/2] Python generated Arm64 metrics From: Ian Rogers <irogers@google.com> To: Peter Zijlstra <peterz@infradead.org>, Ingo Molnar <mingo@redhat.com>, Arnaldo Carvalho de Melo <acme@kernel.org>, Namhyung Kim <namhyung@kernel.org>, Mark Rutland <mark.rutland@arm.com>, Alexander Shishkin <alexander.shishkin@linux.intel.com>, Jiri Olsa <jolsa@kernel.org>, Ian Rogers <irogers@google.com>, Adrian Hunter <adrian.hunter@intel.com>, John Garry <john.g.garry@oracle.com>, Kan Liang <kan.liang@linux.intel.com>, Jing Zhang <renyu.zj@linux.alibaba.com>, Thomas Richter <tmricht@linux.ibm.com>, James Clark <james.clark@arm.com>, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Stephane Eranian <eranian@google.com> Content-Type: text/plain; charset="UTF-8" X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792351113150916818 X-GMAIL-MSGID: 1792351113150916818 |
Series |
Python generated Arm64 metrics
|
|
Message
Ian Rogers
March 1, 2024, 6:49 p.m. UTC
Generate two sets of additional metrics for Arm64, where the topdown set decomposes yet further. The metrcs primarily use json events, where the json contains architecture standard events. Not all events are in the json, such as for a53 where the events are in sysfs. Workaround this by adding the sysfs events to the metrics but longer-term such events should be added to the json. The patches should be applied on top of: https://lore.kernel.org/lkml/20240228175617.4049201-1-irogers@google.com/ v2. The cycles metrics are now made common and shared with AMD and Intel, suggested by Kan Liang <kan.liang@linux.intel.com>. This assumes these patches come after the AMD and Intel sets. Ian Rogers (2): perf jevents: Add collection of topdown like metrics for arm64 perf jevents: Add cycles breakdown metric for arm64/AMD/Intel tools/perf/pmu-events/amd_metrics.py | 3 + tools/perf/pmu-events/arm64_metrics.py | 147 +++++++++++++++++++++++- tools/perf/pmu-events/common_metrics.py | 18 +++ tools/perf/pmu-events/intel_metrics.py | 2 + 4 files changed, 167 insertions(+), 3 deletions(-) create mode 100644 tools/perf/pmu-events/common_metrics.py