From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Zijlstra Subject: Re: [PATCH] lockdep: Add nr_save_trace_invocations counter Date: Fri, 23 Apr 2010 08:52:05 +0200 Message-ID: <1272005525.1646.23.camel@laptop> References: <20100423025850.GA21328@windriver.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: John Kacur , LKML , linux-rt-users , Sven-Thorsten Dietrich , Clark Williams , "Luis Claudio R. Goncalves" , Ingo Molnar , Thomas Gleixner , Gregory Haskins To: Yong Zhang Return-path: Received: from casper.infradead.org ([85.118.1.10]:60759 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756062Ab0DWGwJ (ORCPT ); Fri, 23 Apr 2010 02:52:09 -0400 Received: from f199130.upc-f.chello.nl ([80.56.199.130] helo=dyad.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.69 #1 (Red Hat Linux)) id 1O5CkC-00047P-Dh for linux-rt-users@vger.kernel.org; Fri, 23 Apr 2010 06:52:08 +0000 In-Reply-To: <20100423025850.GA21328@windriver.com> Sender: linux-rt-users-owner@vger.kernel.org List-ID: 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.