Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756102Ab0DWGwL (ORCPT ); Fri, 23 Apr 2010 02:52:11 -0400 Received: from casper.infradead.org ([85.118.1.10]:60757 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756049Ab0DWGwJ (ORCPT ); Fri, 23 Apr 2010 02:52:09 -0400 Subject: Re: [PATCH] lockdep: Add nr_save_trace_invocations counter From: Peter Zijlstra To: Yong Zhang Cc: John Kacur , LKML , linux-rt-users , Sven-Thorsten Dietrich , Clark Williams , "Luis Claudio R. Goncalves" , Ingo Molnar , Thomas Gleixner , Gregory Haskins In-Reply-To: <20100423025850.GA21328@windriver.com> References: <20100423025850.GA21328@windriver.com> Content-Type: text/plain; charset="UTF-8" Date: Fri, 23 Apr 2010 08:52:05 +0200 Message-ID: <1272005525.1646.23.camel@laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 656 Lines: 17 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. -- 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/