Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp2129863rwi; Tue, 11 Oct 2022 05:18:53 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5PRrXRbeAKtFq4X2IM/fYZylen/xnVDiLRsbdPRXHHkWKqlPbCqrZ4bBpYitr0XtMgc9C0 X-Received: by 2002:a05:6402:4029:b0:45b:d50c:b9b0 with SMTP id d41-20020a056402402900b0045bd50cb9b0mr14725645eda.126.1665490733319; Tue, 11 Oct 2022 05:18:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665490733; cv=none; d=google.com; s=arc-20160816; b=nJJvrdpKqLfeBB+6tD1EKthtMOQO6vwua/lQ7ToNiiAZmxULyBzvqFuY/jPOM9IiFO DtA4dXpKS8dcamZovi1dkvAFXEE4rdT0bxVcmY+XM1CkEQF7jlH8S2+iyk9lVJE8b+Oj z7cRCNSXX+ehJurBptpl//uRFuhKc1z5zVSUHqmisV7zdpUDTaXFg6KK4Xd7iRuCj8s4 LwhA7zb3FYqKLC3AmcJJEDMHnUpW6lGIzlGkJ0oX8cdVlP4zHCY0u6XQt7kvezGaCQi/ zr7rEjGL8pqlQADenhkWHIoJCoYsMb59k4c7KIaCN1+y+nMUwQsmMi+4v5fvoMj2uGav gDjA== 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 :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=HgZujX3j+808MX2a5YpM3WNdTu2u+W8fqGzaD9n6Xl4=; b=eHi9Y2Qw0Q9j0yu1XPmRssOdJBdKcCFE463KWHTwdTgKICFA83scF6/DCcy3+cMCy5 Y+SMAwANcTLJn4LqzxtCHq3QNYHVoAkZnSKhsB/01Wx2mPJH4Eww0GCeZdV8R1FlY0ZT +IV8iyyrY2wNWYv38/5RjzdexFldiz8dGXTct993jga9IRoq39H3NJoOsSZNc73Vv/Rq bT4I33xZfaDDRoaIYAoJgoB9CkR90e9+XrQFt4sTMcFdnINwRyH5uTIc4ZuWdfMwOfWn uiD4Zgxn48mbFiriZXQgN+ta4uKiZFGCqJU8ZQt5Y3toeWv+9+0jl1OWoO8WXv0YnrJg neWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=L+Np3Qi7; 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 a60-20020a509ec2000000b00445f660de5asi10772244edf.141.2022.10.11.05.18.26; Tue, 11 Oct 2022 05:18:53 -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=L+Np3Qi7; 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 S229546AbiJKL5V (ORCPT + 99 others); Tue, 11 Oct 2022 07:57:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229475AbiJKL5U (ORCPT ); Tue, 11 Oct 2022 07:57:20 -0400 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 628A77F26F; Tue, 11 Oct 2022 04:57:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1665489439; x=1697025439; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=XzJyJLhn3OWIM+SDzpoP33h7icTAUN97RR03Oxsgpeo=; b=L+Np3Qi7RoB0r7xMZZ0OmhXBJ4m7wr0VBvEyUnReDUSsRauWLhus6I1v TwGaOIvoH3wFeK67bVI2EKUlrOtd3Vy0mKDTV7PcXW4pzDiLJFAmTlZNb 0Rx5PdRITNcoQzwR4blkBF+/rwHteqDEE4/+fFCEjaWf7hqGkstYxDWKz SkzbXFv7N35RDCGC6gWTwZ0851tgL2bS8gIiehWCdQn23vz/qIMzE0JI/ rY8WA7Jf47VcDTWQvTI93wJmRTRoWTMSGj+aatUfw8c9zYnLbKMfNcQNH zg3dlQ/pDlwc4s5gOx29bUzh4zjlBbUygx0Xn0CsjUww9JwwXw5JXc0iV w==; X-IronPort-AV: E=McAfee;i="6500,9779,10496"; a="284864448" X-IronPort-AV: E=Sophos;i="5.95,176,1661842800"; d="scan'208";a="284864448" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Oct 2022 04:57:17 -0700 X-IronPort-AV: E=McAfee;i="6500,9779,10496"; a="751708546" X-IronPort-AV: E=Sophos;i="5.95,176,1661842800"; d="scan'208";a="751708546" Received: from akleen-mobl1.amr.corp.intel.com (HELO [10.213.187.182]) ([10.213.187.182]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Oct 2022 04:57:12 -0700 Message-ID: Date: Tue, 11 Oct 2022 07:57:11 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.3.2 Subject: Re: [RFC/PATCHSET 00/19] perf stat: Cleanup counter aggregation (v1) Content-Language: en-US To: Namhyung Kim Cc: Arnaldo Carvalho de Melo , Jiri Olsa , Ingo Molnar , Peter Zijlstra , LKML , Ian Rogers , Adrian Hunter , linux-perf-users@vger.kernel.org, Kan Liang , Leo Yan , Athira Rajeev , James Clark , Xing Zhengjun References: <20221010053600.272854-1-namhyung@kernel.org> From: Andi Kleen In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.2 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 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 >> My main concern would be subtle regressions since there are so many >> different combinations and way to travel through the code, and a lot of >> things are not covered by unit tests. When I worked on the code it was >> difficult to keep it all working. I assume you have some way to >> enumerate them all and tested that the output is identical? > Right, that's my concern too. > > I have tested many combinations manually and checked if they > produced similar results. I had a script to test many combinations, but had to check the output manually > But the problem is that I cannot test > all hardwares and more importantly it's hard to check > programmatically if the output is the same or not. Can use "dummy" or some software event (e.g. a probe on some syscall) to get stable numbers. I don't think we need to cover all hardware for the output options, the different events should be similar, but need some coverage for the different aggregation. Or we could add some more tool events just for testing purposes, that would allow covering different core scopes etc. and would easily allow generating known counts. -Andi