Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2250727ybl; Sat, 31 Aug 2019 10:54:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqysxkv3t7dKtKyjy5VQeUbDQkvfGkEypEGHFzwJvyAIxhJSHpluVK5x2sYbK0wr8uPCr2R0 X-Received: by 2002:a17:902:223:: with SMTP id 32mr22349092plc.220.1567274079480; Sat, 31 Aug 2019 10:54:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567274079; cv=none; d=google.com; s=arc-20160816; b=n678eSbjCltj6uvY9tzqvkHUEPNMgxJKrY2utXV9LwfHekBqOMf03CJOwLwzf7RfKx E+J2nZqNoGyuLHMDQa4ts0lGJBQXNsnE4O0fp/PFiu+mbDboFUYfY5YMDpUsxaT3kZhH 8VYbFtbQZiUp8hOT+oZoAKZk66JobIeiqE+wrgYCYlZI0UVgfvjweUgUAQMzJc/hpJuS xuqUmGvN0zzlWR2fiOzwWMhdwX7zKqwG4P1cRDVmh9qz/Ljprzzt3HQ35kM2KnhhY9ZF 5pmmA9kT1ozQx3Ll0kYn4FthZOrjXxwxCp+NAAd9bxBqv5DBO/2IldR05UgJXr3ricMa mnGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=aYJm3STNsqR34k7vlIYATl9BWVqV5WhSQuNGk0Rb4x4=; b=zzRBymNVy2BSQlZSfROmVh0JURRO0TiRHH4Qf0/HBlysY+ADCd7/I3RTlkQca6nzHM scOqc/fsGwtAPgqsR2p7p4T0r8vXIJMTsx/GpA5AAWBpZ3kmyfu8fhlz3x5bZjwdptoG ALYpUcNq25r/jguT7WU/LG5ex1ZM9DUJMq2cIiop6del73CIj1iiEGRDqhud4iJXt0S9 W+5CPvd1y5InmtWHM4sEdxKXGmqurIszpXLeuUdCLkAFVEOD6tV65DQwpzZ5EY8K2gCI 2Mldj/miWBksWsXtthiFNzVbzyk28B2gL8AyDnfBA2bjDfC2NvH7rCPf3jDWmjPioTyC 5LeA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id w19si9510043pfi.248.2019.08.31.10.54.24; Sat, 31 Aug 2019 10:54:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1728468AbfHaRxj (ORCPT + 99 others); Sat, 31 Aug 2019 13:53:39 -0400 Received: from mga18.intel.com ([134.134.136.126]:17103 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728456AbfHaRxi (ORCPT ); Sat, 31 Aug 2019 13:53:38 -0400 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 31 Aug 2019 10:53:38 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,451,1559545200"; d="scan'208";a="206420548" Received: from tassilo.jf.intel.com (HELO tassilo.localdomain) ([10.7.201.137]) by fmsmga004.fm.intel.com with ESMTP; 31 Aug 2019 10:53:36 -0700 Received: by tassilo.localdomain (Postfix, from userid 1000) id B5D0F301247; Sat, 31 Aug 2019 10:53:37 -0700 (PDT) Date: Sat, 31 Aug 2019 10:53:37 -0700 From: Andi Kleen To: Stephane Eranian Cc: "Liang, Kan" , Peter Zijlstra , Arnaldo Carvalho de Melo , Ingo Molnar , LKML , Thomas Gleixner , Jiri Olsa , Alexander Shishkin Subject: Re: [RESEND PATCH V3 3/8] perf/x86/intel: Support hardware TopDown metrics Message-ID: <20190831175337.GB5447@tassilo.jf.intel.com> References: <20190826144740.10163-1-kan.liang@linux.intel.com> <20190826144740.10163-4-kan.liang@linux.intel.com> <20190831003110.GA5447@tassilo.jf.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.12.0 (2019-05-25) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Aug 31, 2019 at 02:13:05AM -0700, Stephane Eranian wrote: > Andi, > > On Fri, Aug 30, 2019 at 5:31 PM Andi Kleen wrote: > > > > > the same manner. It would greatly simplify the kernel implementation. > > > > I tried that originally. It was actually more complicated. > > > > You can't really do deltas on raw metrics, and a lot of the perf > > infrastructure is built around deltas. > > > How is RAPL handled? No deltas there either. It uses the snapshot model. RAPL doesn't support any context switch or CPU context. Also it has no concept of "accumulate with clear on read" -Andi