Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755754AbZGCMDA (ORCPT ); Fri, 3 Jul 2009 08:03:00 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752880AbZGCMCx (ORCPT ); Fri, 3 Jul 2009 08:02:53 -0400 Received: from hera.kernel.org ([140.211.167.34]:38680 "EHLO hera.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752389AbZGCMCx (ORCPT ); Fri, 3 Jul 2009 08:02:53 -0400 Subject: Re: [PATCH 4/6 -tip] perf_counter: Add Generalized Hardware interrupt support for AMD From: Jaswinder Singh Rajput To: Ingo Molnar Cc: Peter Zijlstra , Arjan van de Ven , =?ISO-8859-1?Q?Fr=E9d=E9ric?= Weisbecker , Arnaldo Carvalho de Melo , Paul Mackerras , Anton Blanchard , Thomas Gleixner , Peter Zijlstra , x86 maintainers , LKML , Alan Cox In-Reply-To: <20090701112406.GE15958@elte.hu> References: <1246440815.3403.3.camel@hpdv5.satnam> <1246440909.3403.5.camel@hpdv5.satnam> <1246440977.3403.7.camel@hpdv5.satnam> <1246441043.3403.9.camel@hpdv5.satnam> <1246441094.3403.10.camel@hpdv5.satnam> <20090701112406.GE15958@elte.hu> Content-Type: text/plain Date: Fri, 03 Jul 2009 17:31:55 +0530 Message-Id: <1246622515.2322.30.camel@jaswinder.satnam> Mime-Version: 1.0 X-Mailer: Evolution 2.26.1 (2.26.1-2.fc11) Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1256 Lines: 38 On Wed, 2009-07-01 at 13:24 +0200, Ingo Molnar wrote: > * Jaswinder Singh Rajput wrote: > > > > > $ ./perf stat -e interrupts -e masked -e int-pending-mask-cycles -- ls -lR /usr/include/ > /dev/null > > > > Performance counter stats for 'ls -lR /usr/include/': > > > > 377 interrupts > > 53429936 int-mask-cycles > > 1119 int-pending-mask-cycles > > > > 0.371457539 seconds time elapsed > > Agreed, this is another useful generalization - and the 'cycles > pending' metrics are not retrievable via any software means. > > We could and should probably add a software counter for hardirqs as > wel. That would allow the vector/irqnr information to be passed in, > and it would allow architectures without irq metrics in the PMU to > have this counter too. > Please let me know that addition of software counter will be in this patch or we can do it incrementally after this patch. Thanks, -- JSR http://userweb.kernel.org/~jaswinder/ -- 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/