Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp302721pxb; Thu, 9 Sep 2021 01:01:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwKk7wQqbV/04gI3OYkDEXfkZgdxPSV+4i7NykjaXklSUd8NqZAHJDLvl9SXDH4gHMramK6 X-Received: by 2002:a6b:c80f:: with SMTP id y15mr1591328iof.80.1631174476329; Thu, 09 Sep 2021 01:01:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631174476; cv=none; d=google.com; s=arc-20160816; b=sf/Y1StLGY82s8d+YTluysCpdumSbFULnNBLp0BDzW08ZxglZSjvA27B+UUsZWLTUE vSYDhROSAa/UyoDMOrKYr1hfj4lXmvLPQa5gxRXw9gb3F3CPlFSwob1zjsaQzFW+cOy1 QYEZkWK/4/bh8m2Qj8Evs0czEPnN9VD3EoaujNHBWrC7mX72Dj0Z4H+ZBddpHnQSRENs GIM/6IXWoWbTKKU0c10Ae7t/8608UYz/g2PzxTScSQViQt8tZe+CEE4Qz1WCCdSEOy65 EzkXBCxv9jhcTgu70f8sAIAaxwtd1GE0ELJPdRytyNLT6lrYqk6wtCSrL0x4/9ukEhUI geUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:references:mime-version :message-id:in-reply-to:date:dkim-signature; bh=WcYm8uYsLLRTYU+PtwqvI4JRAdNPeq6FKx6GnHlWW0Y=; b=fvUhETo+KQvE3hpF/58rMsSyZX8uvjpnS+OFHoWjPaUqaFwHsGPE2Vf8wDk9U6wA3f D/0qYUsBrym22vc+YXdozj4VMAls/0COhhHDV6C6gK+VsCSHnwpIfv5ttmegheY7YsmV J4Yj5qpv2svartkNPTCdIxzOkuioWwvrHR6rJrbBtyqc3tM5ki9fdjBTOrRLIJUujESx +J3MqGeFyR0rw6VZQF+lTT6JIyP7a/gd8a4Djp58Pf62vBjUsXZIANk21jfsXFOQ7hZz yJEyxpfHJoKDIpxIzL5HzC0aWMtztHorNoLVcopIM7PPt4dhUHaGkACgpJtEypz9L4z/ wUdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=Nhfeljr+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h8si1097205jal.127.2021.09.09.01.01.04; Thu, 09 Sep 2021 01:01:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=Nhfeljr+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232007AbhIIIAg (ORCPT + 99 others); Thu, 9 Sep 2021 04:00:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41876 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231429AbhIIIAN (ORCPT ); Thu, 9 Sep 2021 04:00:13 -0400 Received: from mail-yb1-xb4a.google.com (mail-yb1-xb4a.google.com [IPv6:2607:f8b0:4864:20::b4a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CC5DBC061575 for ; Thu, 9 Sep 2021 00:59:02 -0700 (PDT) Received: by mail-yb1-xb4a.google.com with SMTP id 124-20020a251182000000b005a027223ed9so1392443ybr.13 for ; Thu, 09 Sep 2021 00:59:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=WcYm8uYsLLRTYU+PtwqvI4JRAdNPeq6FKx6GnHlWW0Y=; b=Nhfeljr+CRD0C+ZBC5t6I1v0SCtXvXJ7SZCY/QSwbeI2ESTKjjUjUxGVF7SuvA37vX IIQk5+R49X3/Wb6UxljXvyJJ1f/cuh31Rf1HVIgJCd4u/idE86oJA50cq5hni6ocAfTh 56ozQRae3Qu74xCY0wKs5AOCrrINxjTa3MKXxNgYybv2SAPbJdDi4u7K8xuIwjd+xk6S 67AcCv+R2fAZNZ86cllbf5aADHkYk0kWfkpPGp3y1NpPLKP0pdFXMbFefdLCxVLM2qw+ iAj2IVrPCWQKcyScZPlPIElzUZ9zv5lfZVlNVTSx1Sm7h95m0tJ7MXizJC0ndSagpOzM KBDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=WcYm8uYsLLRTYU+PtwqvI4JRAdNPeq6FKx6GnHlWW0Y=; b=uTHPjV/ej2bVrE45vsEiRN6PVlLJuKRA4we/r4gNT2QWeTJT6CTBEwt+QL8t7NpWBM mOsBqU1n1Uu++Da/7kyiECkH39buV3A6PqbDz9PPZZwhrO9QdgChu1PCEdE1cB8k43Mj QwZ+eUSoOgqu278dRXo/CPHEkajdJLKhweR0jJb4hbj9Lq4YkaaPdzLelm05jdpvP5ea 8GUOGm3dx0rO+UDbBp59x4T0udO/lcSGqkEBLYvWeQOMYenpZuuXPkDyNXuxfe5d7Ol1 FHfAVUuvgzntKSvO9r7N76it1KddMOLGlr3fDUollCsDMRwXRtsQ/miPN8Mq9V7FlJDo e33g== X-Gm-Message-State: AOAM531rgV6NkVGY2DipwptVe6v54AsXOBiIwXJLWpLeuu5UEo08Eav8 QtiEwDQDbYvV0j7iApDspLMHoEgvCWV/6wOOXvFvMOd6yMzuVQBPauM0ZytlnJ01tFSqL2mPK7r flIPs0vIoJM7p+LRxCFpgBiteiRLgomFSkwDZui9u8gXPo//gqumAErdKbSbXFMDMdhIjySRC X-Received: from uluru3.svl.corp.google.com ([2620:15c:2cd:202:f950:61f2:f1ec:ae8b]) (user=eranian job=sendgmr) by 2002:a25:4f8a:: with SMTP id d132mr2134757ybb.486.1631174341998; Thu, 09 Sep 2021 00:59:01 -0700 (PDT) Date: Thu, 9 Sep 2021 00:56:57 -0700 In-Reply-To: <20210909075700.4025355-1-eranian@google.com> Message-Id: <20210909075700.4025355-11-eranian@google.com> Mime-Version: 1.0 References: <20210909075700.4025355-1-eranian@google.com> X-Mailer: git-send-email 2.33.0.153.gba50c8fa24-goog Subject: [PATCH v1 10/13] perf tools: add branch-brs as a new event From: Stephane Eranian To: linux-kernel@vger.kernel.org Cc: peterz@infradead.org, acme@redhat.com, jolsa@redhat.com, kim.phillips@amd.com, namhyung@kernel.org, irogers@google.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Although branch-brs is specific to AMD Zen3, we provide it in the list of events recognized by perf as a convenience. It allows: $ perf stat -e branch-brs $ perf list and enable some test suite to pass. Signed-off-by: Stephane Eranian --- tools/perf/util/parse-events.l | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/perf/util/parse-events.l b/tools/perf/util/parse-events.l index 923849024b15..ae229f5c4758 100644 --- a/tools/perf/util/parse-events.l +++ b/tools/perf/util/parse-events.l @@ -361,6 +361,7 @@ mem-loads-aux | mem-stores | topdown-[a-z-]+ | tx-capacity-[a-z-]+ | +branch-brs | el-capacity-[a-z-]+ { return str(yyscanner, PE_KERNEL_PMU_EVENT); } L1-dcache|l1-d|l1d|L1-data | -- 2.33.0.153.gba50c8fa24-goog