Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1429838rwr; Wed, 26 Apr 2023 15:09:25 -0700 (PDT) X-Google-Smtp-Source: AKy350b2IKMk01DNVrF4zyA+FgZ7PhV0fqDHgt8o2bbPYHITKQcMXT5ePpApXyEUAezPLxqkSpLn X-Received: by 2002:a05:6a20:4281:b0:f0:7ac1:ea61 with SMTP id o1-20020a056a20428100b000f07ac1ea61mr28644762pzj.6.1682546964874; Wed, 26 Apr 2023 15:09:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682546964; cv=none; d=google.com; s=arc-20160816; b=TjTsUxaVXT5phcU9CnvdTIAzxfA4pbpMV57ykCkA930GTZixIQCXl4BfQ1f/Z7c2Wj gtBMV8WJu8AUFqGKHCJ9sMC71DDzzDEI3DJs0bh3gl42UVfud9cr412/CRpbx1dCpKg7 6zPRI+uDKhTUgGbjVme/0dfQsbZQo0FPMGDfj//Yjr9rVYyilfsyCBIWtwsk0ZROdK2p isJbaaynUUoRzn2n7bt3TczJuoaKsF8GMVxyvXVgp8tAaaslHrVJwm0tmW2jdUSll/hV zUM3UDu7gRV/1G4kTZimk5F/icTJuYqm7zArsKaFy2xf2k0mFqFTsKBtCW1eExBPe/vJ JFXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=LU2NBNCZUe+ows3EBM3xWC2XlKLc2E9i4AFdei2mvLw=; b=rbdXYBzmarLKHvu4htvs1pZ5xtZ8cPNgVPa4yYYFJA7wfxBUfCwxg59CluCD9j+f3S E1FaTdS7xRnC2r5IJ/dJCheP64FZgFiPCUVFedbZQQMbvjYDydilx7yfWTH5RtG0Km4w k6keeA4Vt0UIRgshXX+VhKYbzGfdpXYad2jHTlZqnvPxuJX74sam9vQr7OO6RECdwRbi djnKwsGBgvhcXUQttFisZahb5knYOYrGS5++IF7XHiYhZ55Xm/MuoSkWA1ovZiEDTPQ1 9Gp7tHjLOe2Cj/vRZEoASInkrBJeo8duBBPJIHasIZYvd0dIXgwuQ4jMiHou3OcurTgw F42g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=CuPcsleP; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 68-20020a630547000000b0050bc7aa2dc5si16343061pgf.649.2023.04.26.15.09.13; Wed, 26 Apr 2023 15:09:24 -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; dkim=pass header.i=@intel.com header.s=Intel header.b=CuPcsleP; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234109AbjDZWHo (ORCPT + 99 others); Wed, 26 Apr 2023 18:07:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39550 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239759AbjDZWHm (ORCPT ); Wed, 26 Apr 2023 18:07:42 -0400 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 489D530C2; Wed, 26 Apr 2023 15:07:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1682546859; x=1714082859; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=F8xnRKcvkulOCXR731N/Cj9LCIQ/8Q2g3riEynMCITM=; b=CuPcslePIIkpJLMqGKmTZFaT712dtNnSbrS8b0GaGv/NiHXALJ2BK9qq O0zuQCLsPSpm/LcC9RMgHP+7Wr3Q0Hw9FlcwHBRpa5ayKhol/26bykzXX eQU5pOEDvhHoPA8DZgE+wYKnW22F3x66I8M5UK8b8jGUKZhZQEUpQwYco q2xBMByQ79k5sQBxlaWkhHEFiV0owAfG7wUzi3DBezJa+DocLtIn2BsZS khY72xgcMBZFUCAbkzXIov7pYIcEPyJi+6f/jajSeSnysK8l/diwp4GLw uVmbEPtE+EdyYKEb614rioFquwo6fW0JHNiLFjDwBq/i8ieV988EuHUyq g==; X-IronPort-AV: E=McAfee;i="6600,9927,10692"; a="344698743" X-IronPort-AV: E=Sophos;i="5.99,229,1677571200"; d="scan'208";a="344698743" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Apr 2023 15:07:38 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10692"; a="783486249" X-IronPort-AV: E=Sophos;i="5.99,229,1677571200"; d="scan'208";a="783486249" Received: from linux.intel.com ([10.54.29.200]) by FMSMGA003.fm.intel.com with ESMTP; 26 Apr 2023 15:07:37 -0700 Received: from [10.209.103.254] (kliang2-mobl1.ccr.corp.intel.com [10.209.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by linux.intel.com (Postfix) with ESMTPS id 22711580C9A; Wed, 26 Apr 2023 15:07:34 -0700 (PDT) Message-ID: <44b8d51d-c4a3-3774-6b87-b853a5a7dec0@linux.intel.com> Date: Wed, 26 Apr 2023 18:07:32 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH v1 00/40] Fix perf on Intel hybrid CPUs To: Arnaldo Carvalho de Melo , Ian Rogers Cc: Ahmad Yasin , Peter Zijlstra , Ingo Molnar , Stephane Eranian , Andi Kleen , Perry Taylor , Samantha Alt , Caleb Biggers , Weilin Wang , Edward Baker , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Adrian Hunter , Florian Fischer , Rob Herring , Zhengjun Xing , John Garry , Kajol Jain , Sumanth Korikkar , Thomas Richter , Tiezhu Yang , Ravi Bangoria , Leo Yan , Yang Jihong , James Clark , Suzuki Poulouse , Kang Minchul , Athira Rajeev , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230426070050.1315519-1-irogers@google.com> Content-Language: en-US From: "Liang, Kan" In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham 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 On 2023-04-26 5:33 p.m., Arnaldo Carvalho de Melo wrote: > Em Wed, Apr 26, 2023 at 06:09:36PM -0300, Arnaldo Carvalho de Melo escreveu: >> Em Wed, Apr 26, 2023 at 12:00:10AM -0700, Ian Rogers escreveu: >>> TL;DR: hybrid doesn't crash, json metrics work on hybrid on both PMUs >>> or individually, event parsing doesn't always scan all PMUs, more and >>> new tests that also run without hybrid, less code. >>> >>> The first patches were previously posted to improve metrics here: >>> "perf stat: Introduce skippable evsels" >>> https://lore.kernel.org/all/20230414051922.3625666-1-irogers@google.com/ >>> "perf vendor events intel: Add xxx metric constraints" >>> https://lore.kernel.org/all/20230419005423.343862-1-irogers@google.com/ >>> >>> Next are some general test improvements. >> >> Kan, >> >> Have you looked at this? I'm doing a test build on it now. > > And just to make clear, this is for v6.5. > I'm looking at the patch series, but I cannot finish all the reviews today. I will try to finish it tomorrow. But there is one obvious bug with this series. The topdown events of atom are duplicated. The below is just an example. Almost all the atom Topdown events in the examples have such issue. > $ perf stat --cputype=atom -M TopdownL1 -a sleep 1 > > Performance counter stats for 'system wide': > > 645,836 cpu_atom/TOPDOWN_RETIRING.ALL/ # 26.4 % tma_bad_speculation > 2,404,468 cpu_atom/TOPDOWN_FE_BOUND.ALL/ # 38.9 % tma_frontend_bound > 1,455,604 cpu_atom/TOPDOWN_BE_BOUND.ALL/ # 23.6 % tma_backend_bound > # 23.6 % tma_backend_bound_aux > 1,235,109 cpu_atom/CPU_CLK_UNHALTED.CORE/ # 10.4 % tma_retiring > 642,124 cpu_atom/TOPDOWN_RETIRING.ALL/ > 2,398,892 cpu_atom/TOPDOWN_FE_BOUND.ALL/ > 1,503,157 cpu_atom/TOPDOWN_BE_BOUND.ALL/ Thanks, Kan