Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754916AbZKMIvb (ORCPT ); Fri, 13 Nov 2009 03:51:31 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754571AbZKMIv1 (ORCPT ); Fri, 13 Nov 2009 03:51:27 -0500 Received: from mx2.mail.elte.hu ([157.181.151.9]:51631 "EHLO mx2.mail.elte.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754168AbZKMIv0 (ORCPT ); Fri, 13 Nov 2009 03:51:26 -0500 Date: Fri, 13 Nov 2009 09:51:23 +0100 From: Ingo Molnar To: Frederic Weisbecker Cc: Hitoshi Mitake , a.p.zijlstra@chello.nl, tglx@linutronix.de, linux-kernel@vger.kernel.org Subject: Re: [PATCH][RFC] Measuring term of acquiring spinlock Message-ID: <20091113085123.GA1318@elte.hu> References: <20091112.154353.680961628170545165.mitake@dcl.info.waseda.ac.jp> <20091112073909.GB31719@elte.hu> <20091113.132125.468378199533086916.mitake@dcl.info.waseda.ac.jp> <20091113081722.GA14009@elte.hu> <20091113084030.GA5243@nowhere> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20091113084030.GA5243@nowhere> User-Agent: Mutt/1.5.20 (2009-08-17) X-ELTE-SpamScore: -2.0 X-ELTE-SpamLevel: X-ELTE-SpamCheck: no X-ELTE-SpamVersion: ELTE 2.0 X-ELTE-SpamCheck-Details: score=-2.0 required=5.9 tests=BAYES_00 autolearn=no SpamAssassin version=3.2.5 -2.0 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1491 Lines: 44 * Frederic Weisbecker wrote: > On Fri, Nov 13, 2009 at 09:17:22AM +0100, Ingo Molnar wrote: > > > > * Hitoshi Mitake wrote: > > > > > From: Ingo Molnar > > > Subject: Re: [PATCH][RFC] Measuring term of acquiring spinlock > > > Date: Thu, 12 Nov 2009 08:39:09 +0100 > > > > > > > > > > > * Hitoshi Mitake wrote: > > > > > > > > > * Description > > > > > > > > > > This patch makes the file spinlock_stats on top of the debugfs. > > > > > When user reads this file, some statistical data related to > > > > > spinlocks are printed. > > > > > > > > hm, are you aware of the lockstat tracepoints? They do something > > > > like this - and it utilizes perf events to report these events. See > > > > include/trace/events/lockdep.h. Needs CONFIG_LOCK_STAT enabled. > > > > > > > > > > Wow, I didn't know that. I'll try it. > > > > Btw., i think we should rename that tracepoint category from 'lockdep' > > to 'lock'. It's possible to enable them without CONFIG_PROVE_LOCKING, > > and they arent high-overhead in that case. > > > > Ingo > > > I have a pending patch for that somewhere. I can send it right away. Cool - thanks! Ingo -- 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/