Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp21345622rwd; Thu, 29 Jun 2023 14:51:56 -0700 (PDT) X-Google-Smtp-Source: APBJJlGykHJQC7Go09m5UftMIsDpnbzN4yI4il0z4HEnDVu4XrLsJcuSZvgyTyXxyunf2EipPdiE X-Received: by 2002:a05:6870:f5a1:b0:1b0:18e8:9535 with SMTP id eh33-20020a056870f5a100b001b018e89535mr1033439oab.56.1688075516615; Thu, 29 Jun 2023 14:51:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688075516; cv=none; d=google.com; s=arc-20160816; b=iwru++TrhdjY25FMAeScO4A7r5mscTzUlYcPNxuzjZa6RZxEqeGuZriYD2YEPF8wF5 BP0jKDDmxr0UKZT6iUMLKw4hRvOrBap+KWRwcRIxDv+qbpo/RJT5LKuw5NWp0xfJ/bsY mXDQemxWQQVHZMHeEZGSaB9W8oZTD45y2jyxDXVtA76BXTWR0YlG95xqZYmjfLi/EYkz KlIxz8Yr9s0dYrTYXuJ/7HaJplRLErMrLE7i8LHeTz8s8IwWLealfb1/TyDthQYPO/oY 0zZav/O4zUYmkzNXpsvlUxfN/WwFs6/Gt5nHDLhHZ6BQV4uw1JRw715tprvmP+VOVBlp hR8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=QtYdkGtAo4k0a2f4Rqq2s1hrKFU5VpJPl5u4aiHyEpA=; fh=hPFVq+dby6dscbXfLxJmNsVY6Qqej8Qi5vW2UoxplFA=; b=EtjJlgr0wJoUq+KSAf27KUKIHhbBCZ/r+WuRJxF65mnV8zvDn8MB1098aJhBr6oNof 594c6sdbj0vtnTXjIVJMUBfdSDUfFheoMZ+JA+JoJnq+V0spoonFr6gl/wx3Ie6BYYGM Cxu3XB2xc97pAOR4VgJj3H1qcCZI+NbfpOGx/uZ5xTlWnsmg6K8TNI0O/pP3OS5PHX8d /o3jwXiCbEJa3HsbHzzUYW97Y+N32FKtTfcvjrP1fq6NxgWYQVQ0KC2tKpCZrFAsmxxX hxrs4e0F6Id6sB0BhXO8Au4adQ6QzNb72Mi0QnIfkK4S9ap38DPDwF93ngR954k78hdN +oLg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p21-20020a63e655000000b0053439c1712esi10799271pgj.713.2023.06.29.14.51.35; Thu, 29 Jun 2023 14:51:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231961AbjF2Vby convert rfc822-to-8bit (ORCPT + 99 others); Thu, 29 Jun 2023 17:31:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56340 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230410AbjF2Vbt (ORCPT ); Thu, 29 Jun 2023 17:31:49 -0400 Received: from mail-yw1-f177.google.com (mail-yw1-f177.google.com [209.85.128.177]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 30013F5; Thu, 29 Jun 2023 14:31:47 -0700 (PDT) Received: by mail-yw1-f177.google.com with SMTP id 00721157ae682-5773f41c1dcso2132707b3.1; Thu, 29 Jun 2023 14:31:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688074306; x=1690666306; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=GoENgYvXFLite5/xMgXTrtXiVpAbaDQ9fsoEG3w0OLA=; b=Lp4EkjHxJNUEmrX9VtFdA6xnngVpiCjlAM6ml9fl1IH1aUP3b7oY5SbgEdfIDrVJvJ BgBrqCAsKZe95OcecnhsaEbPfA++F9RvpJmDCb4O83AmayvMpstT1wgYL/XCAfERgAEB Ag9E9TfVxr73LhKJHzAYwWnF08jMJ1cH8+wD9DmGkElam0QxtlIfWRyfi+6KzwvnuT1y Fjt/M127qvfJok7rss/1dAfC7eHNLW9jIP1sfY84xZN3q60Bo4mqPLGUkAD51NjWQ5hz Q+4/M45usIZ/rvB5NgvM17T1DPhXtwyNG3vIgJNx+c5fUubQZQTFf9w5kU8e9G8YtkTt DBlA== X-Gm-Message-State: ABy/qLah7vaZa4Kmb3OiRzRsiQgBkTki6m3uJ4VZnYPzFyw8OpekO1YX OOFM+Gglzz108vaOLidNKc6lJDYV2v9/CCsApRY= X-Received: by 2002:a25:19c1:0:b0:c00:92c8:542f with SMTP id 184-20020a2519c1000000b00c0092c8542fmr779020ybz.60.1688074306279; Thu, 29 Jun 2023 14:31:46 -0700 (PDT) MIME-Version: 1.0 References: <20230623151016.4193660-1-irogers@google.com> In-Reply-To: <20230623151016.4193660-1-irogers@google.com> From: Namhyung Kim Date: Thu, 29 Jun 2023 14:31:34 -0700 Message-ID: Subject: Re: [PATCH v2 00/12] Add metric has_event, update intel vendor events To: Ian Rogers Cc: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Adrian Hunter , Kan Liang , Zhengjun Xing , Kajol Jain , John Garry , Andrii Nakryiko , Eduard Zingerman , Jing Zhang , Sohom Datta , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Perry Taylor , Samantha Alt , Caleb Biggers , Weilin Wang , Edward Baker Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Ian, On Fri, Jun 23, 2023 at 8:10 AM Ian Rogers wrote: > > Add a new has_event function for metrics so that events that can be > disabled by the kernel/firmware don't cause metrics to fail. Use this > function for Intel transaction metrics fixing "perf all metrics test" > on systems with TSX disabled. The update conversion script is posted in: > https://github.com/intel/perfmon/pull/90 > > Re-generate Intel vendor events using: > https://github.com/intel/perfmon/blob/main/scripts/create_perf_json.py > Adding rocketlake support, uncore and many core events for meteorlake, > and smaller updates for cascakelakex, icelake, icelakex, > sapphirerapids, skylake, skylakex and tigerlake. > > v2. Handle failed memory allocated for evlist, John Garry. > > Ian Rogers (12): > perf expr: Add has_event function > perf jevents: Support for has_event function > perf vendor metrics intel: Make transaction metrics conditional > perf vendor events intel: Add rocketlake events/metrics > perf vendor events intel: Update meteorlake to 1.03 > perf vendor events intel: Update cascadelakex to 1.19 > perf vendor events intel: Update icelake to 1.19 > perf vendor events intel: Update icelakex to 1.21 > perf vendor events intel: Update sapphirerapids to 1.14 > perf vendor events intel: Update skylake to 57 > perf vendor events intel: Update skylakex to 1.31 > perf vendor events intel: Update tigerlake to 1.13 My tigerlake laptop now passes the all metrics test with this. It used to fail like below: event syntax error: '{cpu/cycles-t,metric-id=cpu!3cycles!1t!3/,cpu/tx-start,m..' \___ unknown term 'cycles-t' for pmu 'cpu' Tested-by: Namhyung Kim Thanks, Namhyung