From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yong Zhang Subject: Re: [PATCH] lockdep: Add nr_save_trace_invocations counter Date: Fri, 23 Apr 2010 16:03:35 +0800 Message-ID: <20100423080335.GC21328@windriver.com> References: <20100423025850.GA21328@windriver.com> <1272005525.1646.23.camel@laptop> Reply-To: Yong Zhang Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Cc: John Kacur , LKML , linux-rt-users , Sven-Thorsten Dietrich , Clark Williams , "Luis Claudio R. Goncalves" , Ingo Molnar , Thomas Gleixner , Gregory Haskins To: Peter Zijlstra Return-path: Content-Disposition: inline In-Reply-To: <1272005525.1646.23.camel@laptop> Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-rt-users.vger.kernel.org On Fri, Apr 23, 2010 at 08:52:05AM +0200, Peter Zijlstra wrote: > On Fri, 2010-04-23 at 10:58 +0800, Yong Zhang wrote: > > > > > +unsigned long nr_save_trace_invocations_type[LOCK_USAGE_STATES]; > > > > And each item in this array will equal to nr_hardirq_[un]safe, > > nr_softirq_[un]safe and such things under lockdep_stats_show(). Right? > > Well, the stats for RECLAIM_FS as missing, so at the very least we need > to re-write lockdep_stats_show() to use the lockdep_states.h magic. Yeah, it's a good start point and will keep thing unifying in the future. Thanks, Yong