Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935762AbdCXLlD (ORCPT ); Fri, 24 Mar 2017 07:41:03 -0400 Received: from mga03.intel.com ([134.134.136.65]:26388 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935648AbdCXLky (ORCPT ); Fri, 24 Mar 2017 07:40:54 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.36,214,1486454400"; d="scan'208";a="70277847" Date: Fri, 24 Mar 2017 04:40:51 -0700 From: Andi Kleen To: Thomas Gleixner Cc: Kan Liang , peterz@infradead.org, mingo@redhat.com, acme@kernel.org, linux-kernel@vger.kernel.org, eranian@google.com, jolsa@kernel.org Subject: Re: [PATCH 0/3]measure SMI cost Message-ID: <20170324114051.GC9371@tassilo.jf.intel.com> References: <1490293551-5552-1-git-send-email-kan.liang@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.8.0 (2017-02-23) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 564 Lines: 13 > > A new --smi-cost mode in perf stat is implemented to measure the SMI cost > > by calculating cycles and aperf results. In practice, the percentages of > > SMI cycles should be more useful than absolute value. > > That's only true for performance oriented analysis, but for analyzing the > root cause of latencies the actual cycles are definitely interesting. perf stat also prints the absolute cycles of course (unless you do --metric-only) It cannot print individual cycles (per SMI occurrence), the only way to do that would be to poll constantly. -Andi