Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756616Ab0DWIFa (ORCPT ); Fri, 23 Apr 2010 04:05:30 -0400 Received: from bombadil.infradead.org ([18.85.46.34]:53255 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756527Ab0DWIFZ (ORCPT ); Fri, 23 Apr 2010 04:05:25 -0400 Subject: Re: [PATCH] lockdep: Add nr_save_trace_invocations counter From: Peter Zijlstra To: John Kacur Cc: Yong Zhang , LKML , linux-rt-users , Sven-Thorsten Dietrich , Clark Williams , "Luis Claudio R. Goncalves" , Ingo Molnar , Thomas Gleixner , Gregory Haskins In-Reply-To: References: <20100423025850.GA21328@windriver.com> Content-Type: text/plain; charset="UTF-8" Date: Fri, 23 Apr 2010 10:05:15 +0200 Message-ID: <1272009915.1646.25.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: 1348 Lines: 40 On Fri, 2010-04-23 at 09:24 +0200, John Kacur wrote: > direct dependencies: 8752 [max: 16384] > I have > stack-trace invocations: 10888 > from the same run. > > Still trying to figure out what the meaning is of that though to be > honest. > > Here is a portion of the lockdep_stats, with all of the new fields and the > redundant ones. > > stack-trace invocations: 10888 > LOCK_USED_IN_HARDIRQ: 15 > LOCK_USED_IN_HARDIRQ_READ: 0 > LOCK_ENABLED_HARDIRQ: 543 > LOCK_ENABLED_HARDIRQ_READ: 28 > LOCK_USED_IN_SOFTIRQ: 0 > LOCK_USED_IN_SOFTIRQ_READ: 0 > LOCK_ENABLED_SOFTIRQ: 543 > LOCK_ENABLED_SOFTIRQ_READ: 28 > LOCK_USED_IN_RECLAIM_FS: 5 > LOCK_USED_IN_RECLAIM_FS_READ: 0 > LOCK_ENABLED_RECLAIM_FS: 95 > LOCK_ENABLED_RECLAIM_FS_READ: 8 > LOCK_USED: 871 8752+871+8+95+5+28+543+28+543+15=10888 So you get a stack-trace for each direct-dependency, and you get a stack-trace for each LOCK_state, the sum seems to match the total invocations. Non of these numbers look strange.. -- 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/