Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755217AbbGQV1m (ORCPT ); Fri, 17 Jul 2015 17:27:42 -0400 Received: from mga03.intel.com ([134.134.136.65]:2174 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752754AbbGQV1l (ORCPT ); Fri, 17 Jul 2015 17:27:41 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.15,497,1432623600"; d="scan'208";a="749584063" Date: Fri, 17 Jul 2015 14:27:40 -0700 From: Andi Kleen To: "Liang, Kan" Cc: "a.p.zijlstra@chello.nl" , "mingo@redhat.com" , "acme@kernel.org" , "eranian@google.com" , "mark.rutland@arm.com" , "Hunter, Adrian" , "dsahern@gmail.com" , "jolsa@kernel.org" , "namhyung@kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH 8/9] perf,tools: caculate and save tsc/avg/bzy freq in he_stat Message-ID: <20150717212740.GL7380@tassilo.jf.intel.com> References: <1437078831-10152-1-git-send-email-kan.liang@intel.com> <1437078831-10152-9-git-send-email-kan.liang@intel.com> <20150717202553.GG7380@tassilo.jf.intel.com> <37D7C6CF3E00A74B8858931C1DB2F0770188E169@SHSMSX103.ccr.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <37D7C6CF3E00A74B8858931C1DB2F0770188E169@SHSMSX103.ccr.corp.intel.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 668 Lines: 19 > The concept of tsc, avg and bzy are from turbostat. > Here is the definition from turbostat readme. turbostat can do this because it is model specific, but perf user code is not. It has to be architectural definitions only. And the architectural definition of ASTATE MSTATE in the SDM is that it is only valid as a ratio. Please use the formulas I described. -Andi -- ak@linux.intel.com -- Speaking for myself only -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/