Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp333778rwb; Thu, 27 Jul 2023 13:32:44 -0700 (PDT) X-Google-Smtp-Source: APBJJlE7qkNZhEG+33yh3ZDwS2+ioirUxV6oVXhA6R0lOnqfkbbYumy0X6vDmUrvzAwOE24kF3GK X-Received: by 2002:a17:90b:f96:b0:268:1b7f:257b with SMTP id ft22-20020a17090b0f9600b002681b7f257bmr320345pjb.24.1690489963753; Thu, 27 Jul 2023 13:32:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690489963; cv=none; d=google.com; s=arc-20160816; b=LirnLxABrOqCLugj2QJyOTt0Go9Qa8m+c8+5rQhj+jcXRDm7RPgaRmwqD+gOYtFs2S 5iEgtI7CR1orRu/19iGpJKDL9mWu53UaioZ6+CF1a4JNAcVQXnkI/1yEXWyinbbU9oml J3mHOIyrP75+j/UMtNdO1MmsHptd9/X6679CQ1UPOkzi7N5f4+CuM4J4b2FnWuLMO1Z3 nJncE8ersmK5OdsFwFrTs+gVu/kTTQNqp5ju0kDOxewpAaGVDI5gyYZjUWb4iazo4EEY qEZ6noPa7BYa13OlAyvbfEHr6RercE1fBtw6gh+Y+fiS34J6c2sq7RxmTFieJVmjN/q3 we3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=IMpt5J8JKGGjDXtqQ0gCHSHySuCpjBa6YRevu3MfXLk=; fh=/dGlAsNdbQX7d1GTQw2IiDZFdKh3iDgAIkFZ4wPVgR4=; b=dCHBDDVwkPxuP+ZDyiM9n4Muaq6bRb4M/jKdDAsMyRnC8dexV+RZlViDykLqez5TgF xaS2nejblaM/DQTPFmhq5Ly7M6OhacDEDIcFddNwFEfYPpwp2THVKAaj+UfJMX6N+0nI Z+zmJokGd7wXXuKnQlXE+6FyY2aCw6oQ/XrdT7tUE4d9t4V5+1bVY4gP7J/XtCnvecsC vu+6c+ui6lsQWup5fttlaLo5zIr6R/2MayL/9ckI75MdqX+972qZwJz1uxG47UwhFcBv CFXQL1L/TKgT8lkN2JbsYvX6ZYP3fgzMfEX56Bqvl7/1cRsW4V3abq+HxmGtbvV7OCd9 ALRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Tk6poIR7; 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 g12-20020a17090a714c00b00262ca5c4c12si1792627pjs.178.2023.07.27.13.32.31; Thu, 27 Jul 2023 13:32:43 -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=Tk6poIR7; 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 S231174AbjG0UGI (ORCPT + 99 others); Thu, 27 Jul 2023 16:06:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43024 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232569AbjG0UGF (ORCPT ); Thu, 27 Jul 2023 16:06:05 -0400 Received: from mgamail.intel.com (unknown [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E6E3C2D7D; Thu, 27 Jul 2023 13:05:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1690488357; x=1722024357; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=Msn3P7XhihBuXIiP755PoG7r2oz2s+xBr5H2iJd5InA=; b=Tk6poIR7i+qalq+p0aRuMFmPpBlTQH98Osu9Wfuui4aI9zsK/isczqhg bpjyOQ9uoHfT61Tvw4UJ/RIWnZIUWTCHyyUw8OM4bpVPK0lr4wnGC3/Rg iPYNEupQgGLVF5OU4hlduyB9OGDXjYwHrT3W7O325ApyUxSa0R9PjAas9 S1XpLuLIx2W4bikGzIAZktRBRnQFBEoTio+d6B0mR3QXMMoxlfSWbb2cA SNrsZ7onWpHNTLLZHpZw6/Ch5dGZVJuz6IG40t6O3mI2XQb9PTPWWiZmS 5I09L+8fD2s0yZXPpdfVW8m5kTGBkJaq3upBA4F+i0L5RHjW9XBEGxekQ A==; X-IronPort-AV: E=McAfee;i="6600,9927,10784"; a="365879766" X-IronPort-AV: E=Sophos;i="6.01,235,1684825200"; d="scan'208";a="365879766" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jul 2023 13:05:57 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10784"; a="727147160" X-IronPort-AV: E=Sophos;i="6.01,235,1684825200"; d="scan'208";a="727147160" Received: from tassilo.jf.intel.com (HELO tassilo) ([10.54.38.190]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jul 2023 13:05:57 -0700 Date: Thu, 27 Jul 2023 13:05:56 -0700 From: Andi Kleen To: Arnaldo Carvalho de Melo Cc: Ian Rogers , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Adrian Hunter , Kan Liang , Zhengjun Xing , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1 0/3] Parse event sort/regroup fixes Message-ID: References: <20230719001836.198363-1-irogers@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE 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 Wed, Jul 19, 2023 at 11:49:47AM -0300, Arnaldo Carvalho de Melo wrote: > Em Tue, Jul 18, 2023 at 05:18:33PM -0700, Ian Rogers escreveu: > > Patch 1, fix: > > perf stat -e cycles,slots,topdown-fe-bound > > so that cycles isn't made a group leader (failure caused by PMUs > > matching). Previously this event list would fail so not necessarily a > > regression over previous perf release. > > > > Patch 2, when regrouping events the leader needs to be updated due to > > sorting. This fix causes larger event groups that then regress at > > least the tigerlake metric test as the kernel PMU driver fails to > > break the weak groups. This is a fix for a bug but the consequence of > > fixing the bug is to make a passing test fail due to the kernel PMU > > driver. > > > > Patch 3, don't alter the list position of events without a group if > > they don't need forcing into a group. Analysis showed this was the > > cause of the issue reported by Andi Kleen: > > https://lore.kernel.org/linux-perf-users/ZLBgbHkbrfGygM%2Fu@tassilo/ > > Andi, > > Can you please check these patches and provide a Tested-by? Tested-by: Andi Kleen -Andi