Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935923AbdCXMIE (ORCPT ); Fri, 24 Mar 2017 08:08:04 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:37302 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934762AbdCXMHy (ORCPT ); Fri, 24 Mar 2017 08:07:54 -0400 Date: Fri, 24 Mar 2017 13:07:42 +0100 (CET) From: Thomas Gleixner To: Andi Kleen 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 In-Reply-To: <20170324114051.GC9371@tassilo.jf.intel.com> Message-ID: References: <1490293551-5552-1-git-send-email-kan.liang@intel.com> <20170324114051.GC9371@tassilo.jf.intel.com> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 800 Lines: 24 On Fri, 24 Mar 2017, Andi Kleen wrote: > > > 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) So much for the theory. From the patch: + if (!force_metric_only) + metric_only = true; > It cannot print individual cycles (per SMI occurrence), the only > way to do that would be to poll constantly. I'm well aware of that. Thanks, tglx