Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp689548pxb; Wed, 11 Nov 2020 13:48:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJym5OfbunbQ4ajWmWCfmJdGtxY/YTCzzNPFYd1b+TyKaNjoPFDflbTc/WEfZJDLjwHTqlYv X-Received: by 2002:a50:de45:: with SMTP id a5mr1700189edl.91.1605131328101; Wed, 11 Nov 2020 13:48:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605131328; cv=none; d=google.com; s=arc-20160816; b=KRrGYbRFuQarW7wcy32CDUpZ4vlWwS8u4cc2L0sAGnZ96wOzu7pLvUUFZblLTFScy/ J1h7gTYFMWIVuNTvu7oCkXD3wonumCBrqEjLGya3+dh4oBrj5QAzBIiCCnnTsjR8+nzQ ZzAVAVvgcWjp+B77Y9emLVR3GCLiepe09aJrwZ5zt5XtbfoBG5ME3WW5qBSc5/2Gw37w edPixOzP+9J0mot4UH2tWH1hlyUvP0b5dNVHLJLvRV26aOs6MztT6Coqn6mX0g+zzkq5 UK97PBD/QosnhBc8nLsZTNCKN2S6ZVDZThDMb62/B4m42KuIizkUt4/4fqmQfoDDH+TL ymQg== 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:ironport-sdr :ironport-sdr; bh=THngQQWy2dvN81EvSFkQVDkewaipZR7TKj0P23x0hDU=; b=TbxA11lhSgT2JbvfBleOPvTySLotczOVhQ3E3ZnNkTDrL7fWPynkBrtf5BLCu3oqPQ ZLJZoekoDEHXvJSKysFPJ2RLwsSt8MAbVJgASUMbfVikfnjiz3Kc0Wi69rPBpn3Oc9LJ YkNDHKNY0SIzXlrs2j07bhWrTKWLmnElHIjewNGJ8s83AarxSoJkFQisvxDOm6063tZj PdMK7z/UNrGmyLM5CzvBFcGxHII+wmbPPGRNqxX45TQvAWLOSbqKAnw88vqRLLUfRVoj r+AnKt0o2F0CbR8Si9EktcN7o1QVGiiKTtK0Iptutzh5f/Q1l4Gp68uHsHhjr5LKfkDF jTUw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j18si2193850eje.47.2020.11.11.13.48.23; Wed, 11 Nov 2020 13:48:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726151AbgKKVqv (ORCPT + 99 others); Wed, 11 Nov 2020 16:46:51 -0500 Received: from mga06.intel.com ([134.134.136.31]:44753 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725933AbgKKVqu (ORCPT ); Wed, 11 Nov 2020 16:46:50 -0500 IronPort-SDR: TdcOOrJN+puDRrfGADOXqEOyRA0EifYoYes/Et/fTT93BtxbKrqDIaeD2zH52mJ0xXoeA9gizr w6F0pSgRAlWQ== X-IronPort-AV: E=McAfee;i="6000,8403,9802"; a="231844127" X-IronPort-AV: E=Sophos;i="5.77,470,1596524400"; d="scan'208";a="231844127" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Nov 2020 13:46:50 -0800 IronPort-SDR: cz5CgVbwdT157QTQboiueYidKYb0axhJb0JOK2cbV0rMamqr1eYLOXOk1HQ6IVTX5QrM9+0sgz 6dg8kYBFGceQ== X-IronPort-AV: E=Sophos;i="5.77,470,1596524400"; d="scan'208";a="354983260" Received: from tassilo.jf.intel.com ([10.54.74.11]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Nov 2020 13:46:50 -0800 Date: Wed, 11 Nov 2020 13:46:46 -0800 From: Andi Kleen To: Ian Rogers Cc: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , linux-kernel@vger.kernel.org, Jin Yao , John Garry , Paul Clarke , kajoljain , Stephane Eranian , Sandeep Dasgupta , linux-perf-users@vger.kernel.org Subject: Re: [RFC PATCH 00/12] Topdown parser Message-ID: <20201111214635.GA894261@tassilo.jf.intel.com> References: <20201110100346.2527031-1-irogers@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201110100346.2527031-1-irogers@google.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 10, 2020 at 02:03:34AM -0800, Ian Rogers wrote: > This RFC is for a new tool that reads TMA_Metrics.csv as found on > download.01.org/perfmon and generates metrics and metric groups from > it. To show the functionality the TMA_Metrics.csv is downloaded, but > an accepted change would most likely include a copy of this file from > Intel. With this tool rather than just level 1 topdown metrics, a full > set of topdown metrics to level 4 are generated. I'm not sure I understand the motivation for making the spreadsheet parsing part of the perf tool? It only needs to run once when the metrics are generated to build perf. FWIW I did something similar in python (that's how the current metrics json files were generated from the spreadsheet) and it was a lot simpler and shorter in a higher level language. One problem I see with putting the full TopDown model into perf is that to do a full job it requires a lot more infrastructure that is currently not implemented in metrics: like an event scheduler, hierarchical thresholding over different nodes, SMT mode support etc. I implemented it all in toplev, but it was a lot of work to get it all right. I'm not saying it's not doable, but it will be a lot of additional work to work out all the quirks using the metrics infrastructure. I think adding one or two more levels is probably ok, but doing all levels without these mechanisms might be difficult to use in the end. -Andi