Message ID | 20240302005950.2847058-10-irogers@google.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-89283-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:fa17:b0:10a:f01:a869 with SMTP id ju23csp249202dyc; Fri, 1 Mar 2024 17:03:18 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW20rJYWe0RDe78lQ4LDfMsaTrLybEm6weJNYDHQCCO/GZ7vCPKeAcy9e4Hn67cssWccgtTUOK0Ebw0cyh2oAfU8F3oAw== X-Google-Smtp-Source: AGHT+IETRmZVyVvHFOabc6oEROfZJvKSqBD54NTqmav1h/iTosRYDffQyGl+WlSe1ofymmCko2Ad X-Received: by 2002:a17:902:eb87:b0:1dc:d50d:f669 with SMTP id q7-20020a170902eb8700b001dcd50df669mr4276981plg.12.1709341398247; Fri, 01 Mar 2024 17:03:18 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709341398; cv=pass; d=google.com; s=arc-20160816; b=xc7Te2PTkOYBUB22uj5wrbNc3Cf+2YvImTka7CMzTjJbfuoCENbX1tlUb3+egNlU+7 7H82EQ7AvgV7vJEfFZ46zqQ9oUIU3R8TFSGHCFAA0tN1ep2aLSiHfbP43pexEF4oVVKa OC6YtMGJ8P8QMUpvlU53Y9pgZiQ56Bog99s09Amtz1rfjEtvnE0ah2gEiyw/cIlQGML5 fvyhAJgczTqV29SuTWifHMF5YHtXbSJ0KGY/yy2e3KI7gSYpvMCIMZEZ49IO10RCYPVJ bnp8Vh/oEDh016N1l5JDr8hotYUJEz2YOweFT4n7mUFlXphQDd7Fh/C8vuSMlJQ5UxlI LOlg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:from:subject:references:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:in-reply-to:date :dkim-signature; bh=yRxIvbPDDMCjNnVdacSzvCtMsT39EeStBSRtXaTCLVU=; fh=wDOWqsEdGMAYy6h4ijUixIF1s5VHaXvwlBvU9AqZkJE=; b=JYNiN4BGUyv6wifA9OQVAxqldKApVO1QhiQy349Q4bEDZQVKa57GDgHJgGo1MIz4ec xw3rUvxPK3YzeQLQ1q9I6JHZASm3qNXIzPt2D/FC5jQgHC0XxQA784YuYaGuHlnHrjzL 73WtrYlDTkxouupYzlnQCJedg6qtHOXIQK3k9jvkRc2oiw0B3EwGLX/1Njnt2iWLpZ7c rqNYFVK9kIu/Y11+wpZsWov2yxb/6WZys2mqDVGG+bnb1lvKe0RzPzLfJ3oj1sSx+HvC 0FJo4ZJ78DCM+5lYcm9I99rShjjLQXybNkB71Lr0MdBOYlgVJ8dYAdsuyoDkBlp3HVdJ 06tQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="Xhr/ucg1"; 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-89283-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89283-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 i4-20020a170902cf0400b001dcd0d28d46si4813711plg.50.2024.03.01.17.03.18 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 17:03:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-89283-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="Xhr/ucg1"; 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-89283-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89283-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 EC30C286F04 for <ouuuleilei@gmail.com>; Sat, 2 Mar 2024 01:02:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A18DD5660; Sat, 2 Mar 2024 01:00:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="Xhr/ucg1" 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 7DBCE1C16 for <linux-kernel@vger.kernel.org>; Sat, 2 Mar 2024 01:00:20 +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=1709341221; cv=none; b=cwHjq8EH/HST8jvajOq+vgEbqV/IjkxnCb7y/vyynqCpE0PZoIqt7rtP2P5IB7WIxuU5czakHu2tloTJzdDgE3a08hdl4DGWApt4b936tKMQDbKrZMjepf04bepDCHEbcuMrFz19JIvhK+N+d0lSzNoTV8qe+1iNOeJ1FSN2rGo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709341221; c=relaxed/simple; bh=r7EPMWXB50WRmPs6Ybs2X/h0mr+Q2k6sSSuIvq/Jh3g=; h=Date:In-Reply-To:Message-Id:Mime-Version:References:Subject:From: To:Content-Type; b=p1S6SGKIR32+vIdkBqyJRps4wwVGAhSgb9nIM0A1fTgvbj88rhE4mrvqZGklwhCgaWePB3js/URwVMUCN6TueokGb9fSAivVKqOGwcGgut4KTYfvQNELFJZvpgn8bmcHwthzm8jYfKoQbN/Ww/skohU1XKIHiVb/1ah/LMGjOv4= 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=Xhr/ucg1; 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-dc743cc50a6so3629929276.2 for <linux-kernel@vger.kernel.org>; Fri, 01 Mar 2024 17:00:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1709341219; x=1709946019; darn=vger.kernel.org; h=to:from:subject:references:mime-version:message-id:in-reply-to:date :from:to:cc:subject:date:message-id:reply-to; bh=yRxIvbPDDMCjNnVdacSzvCtMsT39EeStBSRtXaTCLVU=; b=Xhr/ucg1WzqHMRl4tmdOibBGQNwk518oDN4TEROUxHVsglY/zSmmMxbvN5Eu13nsax JUOJCZy7YSPIAb4hw6emVeJd/LJKx6Gwg93F4CCaTm3BmIWYbxSXTPavLJqutZ4BhkzR s9Fnliw+3uLd0tOZRQuJaYWuApofzAO5+fAVGMBS8MzHbb/eWEtY8VjFG76ocPc+ufoy taEJtRT4I/4UBA5d+Mf2Qsr0aptw9T7vxHzqCvEztVjOlhKkBfaeRHqNX7JwI4wvHTIa mPacVLdJXCwzw/gI9ZVbLy25OZgJzbRZXYciYCMt6FaXFpx0JSfkKB2aeO9MjI2r5bwX vWTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709341219; x=1709946019; h=to:from:subject:references:mime-version:message-id:in-reply-to:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=yRxIvbPDDMCjNnVdacSzvCtMsT39EeStBSRtXaTCLVU=; b=ah0FVJNtoh50XKZ1wriuDyfu4k9w0y9htUSgBN986nRN9u0ybPZErEhqSZVlRCYiQt qDcjrKT9Y5C+z+PHQam/jglDXm31pnJKPngCZYOojozUOhYPnyKo6FcX6iaOS+aMi+OU 7HJfRwWv7ss1TRg3IR8mlyl5yOp+Bnh+SMz6SZMNGhJZv4HWoDHYk9qnksS8i45x5j8L 4gL5Wu35vZ4tRbUS7OOh/1BOTG6tmqawVxCh+XvsoesEIfRAT4U50YZJDpnk6Gztuk3h i090UeHKMotrCaDwylmxJfeQ/cSIaWfQDe22NKpgpECVnmwXrhZJ4jGLtzcGbHfxyEwl IKUA== X-Forwarded-Encrypted: i=1; AJvYcCVHVUPwnXCvVdIw6A3hjfMqajrwOeJPKs1pMmqBjv3i3eSJFbh91+VryYQMwl/QVMu4qlUm2GpfZxVLpdZoriOn/mSR8B/jkVjN/Ksu X-Gm-Message-State: AOJu0Yy6nr6mErTCT1+Zi8bCjk8pO3O2S7aZ8HWE4SCDdrJsdwHEhp62 h4J/8RBy0Il4qwP5kpJfH1TkIlCW6fPfCsd54sJ/AAvCez6WrBi8uYybrfzet6Vq60a1gfztSy7 xCG0kDA== X-Received: from irogers.svl.corp.google.com ([2620:15c:2a3:200:aba7:66c5:3365:7114]) (user=irogers job=sendgmr) by 2002:a05:6902:18d3:b0:dc7:865b:22c6 with SMTP id ck19-20020a05690218d300b00dc7865b22c6mr117870ybb.8.1709341219679; Fri, 01 Mar 2024 17:00:19 -0800 (PST) Date: Fri, 1 Mar 2024 16:59:47 -0800 In-Reply-To: <20240302005950.2847058-1-irogers@google.com> Message-Id: <20240302005950.2847058-10-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 References: <20240302005950.2847058-1-irogers@google.com> X-Mailer: git-send-email 2.44.0.278.ge034bb2e1d-goog Subject: [PATCH v2 09/12] perf jevents: Drop duplicate pending 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, Andi Kleen <ak@linux.intel.com>, Kajol Jain <kjain@linux.ibm.com>, Sandipan Das <sandipan.das@amd.com>, Ravi Bangoria <ravi.bangoria@amd.com>, Perry Taylor <perry.taylor@intel.com>, Samantha Alt <samantha.alt@intel.com>, Caleb Biggers <caleb.biggers@intel.com>, Weilin Wang <weilin.wang@intel.com>, Edward Baker <edward.baker@intel.com>, Stephane Eranian <eranian@google.com> Content-Type: text/plain; charset="UTF-8" X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792374365929661833 X-GMAIL-MSGID: 1792374365929661833 |
Series |
Foundations for metric generation with Python
|
|
Commit Message
Ian Rogers
March 2, 2024, 12:59 a.m. UTC
Drop adding a pending metric if there is an existing one.
Signed-off-by: Ian Rogers <irogers@google.com>
---
tools/perf/pmu-events/jevents.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/perf/pmu-events/jevents.py b/tools/perf/pmu-events/jevents.py index 65ab03ce5064..55205a260a16 100755 --- a/tools/perf/pmu-events/jevents.py +++ b/tools/perf/pmu-events/jevents.py @@ -468,7 +468,7 @@ def add_events_table_entries(item: os.DirEntry, topic: str) -> None: for e in read_json_events(item.path, topic): if e.name: _pending_events.append(e) - if e.metric_name: + if e.metric_name and not any(e.metric_name == x.metric_name for x in _pending_metrics): _pending_metrics.append(e)