Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756632Ab0DWIEU (ORCPT ); Fri, 23 Apr 2010 04:04:20 -0400 Received: from mail.windriver.com ([147.11.1.11]:48372 "EHLO mail.windriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756424Ab0DWIEN (ORCPT ); Fri, 23 Apr 2010 04:04:13 -0400 Date: Fri, 23 Apr 2010 16:03:35 +0800 From: Yong Zhang To: Peter Zijlstra Cc: John Kacur , LKML , linux-rt-users , Sven-Thorsten Dietrich , Clark Williams , "Luis Claudio R. Goncalves" , Ingo Molnar , Thomas Gleixner , Gregory Haskins Subject: Re: [PATCH] lockdep: Add nr_save_trace_invocations counter Message-ID: <20100423080335.GC21328@windriver.com> Reply-To: Yong Zhang References: <20100423025850.GA21328@windriver.com> <1272005525.1646.23.camel@laptop> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1272005525.1646.23.camel@laptop> User-Agent: Mutt/1.5.20 (2009-06-14) X-OriginalArrivalTime: 23 Apr 2010 08:03:37.0138 (UTC) FILETIME=[7A41E120:01CAE2BB] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 824 Lines: 20 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 -- 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/