Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp560550lqg; Fri, 1 Mar 2024 13:34:13 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXLHi3x1O8oD6F1VJ4+uJi9xdZj4jxUcw83PSRYf6yQKZfhHTXoUo8JE3F5BSd6gPMFqIo/r7TN1Dxn9X9DI5pE4nKVx3MSRxogAtKaYw== X-Google-Smtp-Source: AGHT+IEoeY73lsbtSeVCKvsYETtjUERZ6fCfitnyhG02pYJWu8ma/2CWlWA44E+kqD8CSB0xnfMH X-Received: by 2002:a17:906:4a18:b0:a3e:d2ea:ff5e with SMTP id w24-20020a1709064a1800b00a3ed2eaff5emr2035511eju.58.1709328853773; Fri, 01 Mar 2024 13:34:13 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709328853; cv=pass; d=google.com; s=arc-20160816; b=QYgqJGGUXS/xUD75M6/6QmvguwL4vWpTNExf2x75GiBms0lOoARFtWzRDbMhMPVRaT whoVSyAzia+iPQrURNPUZ4S/Mv9bYH3Q83vshxKAen6y3oNA56YmXFcx8kfSmkRMsKpH UuV1i3DlCmLqj0fXFmI2PNIUyk24Bqh1vDLRIX5noQFXq3iO+f8Nd3TTTZbv232NUAA2 em1AdFRA22F9XeF3f78IQTV2t3ey0LPXhAd6Q5R04kj11HV656Wi42hctBGc7QlUBwCu CvCgex3sm+R6WFTQhfWLQa1ifebZTBocvjeLSqwRHirrIpmtPP2KqV9Y6hBNMomzqdR+ XF7A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=BC/GNNsaDIKtnNTu1btfReIBd1XFoDsi+snyqXKksy4=; fh=Kl8AKtbEbUbPt232piqkqGAOdCxfwncSqeNEStJfT0A=; b=O/sR9qmo2+ZwquLe1cCZ8rTWT+GMqezrYKbKylV6ANYvOubalVyZ/QOEs/yMGrS98j 0rQu6Tr15bRXDIZ+yd7insZhWMHuUv/mpVsG7Hp4u4BGIU30U0K9OaUAkn9EARG5idSs q8eCFfedxLuHOF9xnj6C4WAMSLqB8H/TUkgYUROO48YCGKySwRLTI/MCVVce0mnqcgdZ BDfvjWaR0k0kQLwJDIqdsQlHCpD360xMFmblkNr8Al+OpVTzrt6BirirmJ34MdtOGsQI hO5jlGvWZ5e6fyO5GzSH4B3JRIYlKBBlQeHW4BFsdC8BdCuVU+BqKRrqsK4uohvTDj9D ja+A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="MADJW/jh"; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-89152-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89152-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id jr23-20020a170906a99700b00a3ec1c8752esi1823484ejb.1015.2024.03.01.13.34.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 13:34:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-89152-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="MADJW/jh"; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-89152-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89152-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 5668B1F2348E for ; Fri, 1 Mar 2024 21:34:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0F88B5823D; Fri, 1 Mar 2024 21:34:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="MADJW/jh" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 589BC5810A; Fri, 1 Mar 2024 21:34:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709328845; cv=none; b=iEJT9BTIxGNPLMojCFuM7764u/4GjbNxdiH0PEZIcNePPeak1bBgFllty8kofxMNnLh362f6DtEH2nNG3GvGS1GNRdSkPleVwV1t42C30Y/bd1I/yOaLhL5hjkiDR2+3N1v4JG6Xger0A6b+0KaZl+KZ6TDdt7hcuOldqX8ZPJc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709328845; c=relaxed/simple; bh=fmzH+mIOkDmds9+eATlKSe8d+juA8+VlJyocy1nJWyA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=krkW/kPsAxBJlZ2/IwMioC48aqDiL384vNRZ+dIMC7lbAyH16ErRijjx+dzbz/8tzy+7LrwzIDStfb2vqdR4dFcBLRk1XjtSwTDGU8MhHfY27TMdvpNf0wKfq/qClbn8nMoO9wKDeO0F5S7566uY7BVvvlELlFczTigqWcVqp74= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=MADJW/jh; arc=none smtp.client-ip=192.198.163.18 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1709328843; x=1740864843; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=fmzH+mIOkDmds9+eATlKSe8d+juA8+VlJyocy1nJWyA=; b=MADJW/jh6Sgjh7ljNQvFzvS5VY8hu4p1WAZUGE4TLTZApHC3859P17Gz PWrIGV89EjAqk9QP9B1RqdxRS2zQp7qY6FPqjTTxPymPqrIcyMmO5Q2Rt Q2AalUTE/QqCJ891ogLZZ1XSCtmdRSNrKI6sIJnTvf8HR2heX1b3Pi3qE zvzR8BvTI/bzMDXvV45273wYd8nQsiIB0FP6PXTWbAHA6rY1DZTqaGFEd ydTVqJDI6cQ5hqpzUhahNCjojp1k7qQAL+2Ajf0/ZqG/GgabE+g7K1ARc 3sSncHITGifd6ggHCPgWypeXtPFwJNeusNgT207E/DMq6GnOww6kNMYUz Q==; X-IronPort-AV: E=McAfee;i="6600,9927,11000"; a="3751066" X-IronPort-AV: E=Sophos;i="6.06,197,1705392000"; d="scan'208";a="3751066" Received: from fmviesa008.fm.intel.com ([10.60.135.148]) by fmvoesa112.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Mar 2024 13:34:02 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.06,197,1705392000"; d="scan'208";a="8459173" Received: from tassilo.jf.intel.com (HELO tassilo) ([10.54.38.190]) by fmviesa008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Mar 2024 13:34:02 -0800 Date: Fri, 1 Mar 2024 13:34:00 -0800 From: Andi Kleen To: Ian Rogers Cc: Perry Taylor , Samantha Alt , Caleb Biggers , Weilin Wang , Edward Baker , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Mark Rutland , Alexander Shishkin , Jiri Olsa , Adrian Hunter , John Garry , Kan Liang , Jing Zhang , Thomas Richter , James Clark , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Stephane Eranian Subject: Re: [PATCH v1 02/20] perf jevents: Add idle metric for Intel models Message-ID: References: <20240229001806.4158429-1-irogers@google.com> <20240229001806.4158429-3-irogers@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: > > I see some of the gains as: > - metrics that are human intelligible, > - metrics for models that are no longer being updated, > - removing copy-paste of metrics like tsx and smi across each model's > metric json (less lines-of-code), > - validation of events in a metric expression being in the event json > for a model, > - removal of forward porting metrics to a new model if the event > names of the new model line up with those of previous, > - in this patch kit there are metrics added that don't currently > exist (more metrics should be better for users - yes there can always > be bugs). But then we have two ways to do things, and we already have a lot of problems with regressions from complexity and a growing bug backlog that nobody fixes. Multiple ways to do basic operations seems just a recipe for more and more fragmentation and similar problems. The JSON format is certainly not perfect and has its share of issues, but at least it's a standard now that is supported by many vendors and creating new standards just because you don't like some minor aspects doesn't seem like a good approach. I'm sure the next person will come around why wants Ruby metrics and the third would prefer to write them in Rust. Who knows where it will stop. Also in my experience this python stuff is unreliable because half the people who build perf forget to install the python libraries. Json at least works always. Incrementional improvements are usually the way to do these things. -Andi