Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1091851ybl; Wed, 28 Aug 2019 09:30:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqyKJqX6JwSSZiv8ZmzA0k5GIGukEhaMY1Lt3Bi3I3yntjmfeQhKzECum9dfCgcbgyF3GxlK X-Received: by 2002:a17:902:8484:: with SMTP id c4mr5144345plo.223.1567009811603; Wed, 28 Aug 2019 09:30:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567009811; cv=none; d=google.com; s=arc-20160816; b=OAXgSYQT/rZ1V+B3mFtUq5Nws2UFAbEKJZGOpnr93qwa302XueAeIBx+hHyuj+2d1F Tklgxc5rXIzRfvOCoi3/tstBKbOPk3wX+UtFntCiG4ieZEMqgb7i0TlK0DjooKgFaXZv NU8t5Y+9stUK/T6D/QgGi076qU0uS0MAKTqXL1z85yl4e5EHcPUKj7YZwi+ocgmDddj6 1IeDR/vDyIXDvtBmF3Ra/JQHio2NXY5sw1KK8WP1mE+OFcVbWi4Qega4VASMBi9XbMVQ hucs5kMS4nkW+JM6CSr923kI3EYdv8poEiqEN17jrJma9CJTWiQQusLGF0EZ6iGPokvG /JIw== 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:dkim-signature; bh=znSnT974Vl4Y8YOZ/9zd4iEg86qp19ImyyCFqmd1BbA=; b=Mw+dUNMAdmjfm7sufLFinMARqeRrb450cC+2McPAjyMpXTJVlopEL/+4V0clbHGuUp sK8v3TVPxkH84WjaxR3AcZkJzFpOaBHYZCaqhAJ65pmP6bxTPsPirOU/qgb1NCb2WNEK YOUov8RX1xg1nOjGaz1hQLEEqu5JyU4DuTCOPzAiZYHjgu6FP3i4t0djY0seEUxDyNpl xyo5Hiw+DHgz6P5ymOW+n/LSi1JjYLlutujqOqUDOkb0lN+Cu95JcT7KGakBEKgQi+UB QhUiPdMPaBxyfyNIpHsxxKBf1JnFh9tDgjtQwLeZf3YyFTGNviZJ09lrSuMgU7MIiiRC jK3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=DOSB80d1; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p20si2272751plo.58.2019.08.28.09.29.54; Wed, 28 Aug 2019 09:30:11 -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; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=DOSB80d1; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726617AbfH1Q3E (ORCPT + 99 others); Wed, 28 Aug 2019 12:29:04 -0400 Received: from merlin.infradead.org ([205.233.59.134]:49412 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726440AbfH1Q3E (ORCPT ); Wed, 28 Aug 2019 12:29:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=znSnT974Vl4Y8YOZ/9zd4iEg86qp19ImyyCFqmd1BbA=; b=DOSB80d13xppS27hBHrvl2LGe VXKSlGeI0uYu7QVgeyr5PX8IaC2NTe40s1TTceDqN1HVNJTeEoMTyVhRQHTAqkvvxAcgW3DjUO0aK 1n6pm9QlBtX9AsCXmGF2JM/mSUCGRl09Az7xCAxD/pjQel/Xz1g00Pi2sec9vPurYBbB965WlYEDk ytUP37p1XyezPqwXTOnBy/W3vJ5+4KjIRIoz70DMvMK/0gssE7HjXOZVs3poeaD91/xafISQlala2 KSzTixuF1/6vF/dPef4UDuUO+3SFNB5UUD9qvbkCxYCTmUzahopr3pBoojjoOD8YULatUEGRsg7/I vYkookxeA==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.92 #3 (Red Hat Linux)) id 1i30oc-00066Y-Pm; Wed, 28 Aug 2019 16:28:59 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 1C41A300B83; Wed, 28 Aug 2019 18:28:23 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 14FAE20C3AB21; Wed, 28 Aug 2019 18:28:57 +0200 (CEST) Date: Wed, 28 Aug 2019 18:28:57 +0200 From: Peter Zijlstra To: Andi Kleen Cc: kan.liang@linux.intel.com, acme@kernel.org, mingo@redhat.com, linux-kernel@vger.kernel.org, tglx@linutronix.de, jolsa@kernel.org, eranian@google.com, alexander.shishkin@linux.intel.com Subject: Re: [RESEND PATCH V3 3/8] perf/x86/intel: Support hardware TopDown metrics Message-ID: <20190828162857.GO2332@hirez.programming.kicks-ass.net> References: <20190826144740.10163-1-kan.liang@linux.intel.com> <20190826144740.10163-4-kan.liang@linux.intel.com> <20190828151921.GD17205@worktop.programming.kicks-ass.net> <20190828161754.GP5447@tassilo.jf.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190828161754.GP5447@tassilo.jf.intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 28, 2019 at 09:17:54AM -0700, Andi Kleen wrote: > > This really doesn't make sense to me; if you set FIXED_CTR3 := 0, you'll > > never trigger the overflow there; this then seems to suggest the actual > > The 48bit counter might overflow in a few hours. Sure; the point is? Kan said it should not be too big; a full 48bit wrap around must be too big or nothing is.