From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933156Ab0FQRgL (ORCPT ); Thu, 17 Jun 2010 13:36:11 -0400 Received: from mail.atheros.com ([12.36.123.2]:53955 "EHLO mail.atheros.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933146Ab0FQRgI (ORCPT ); Thu, 17 Jun 2010 13:36:08 -0400 Date: Thu, 17 Jun 2010 10:36:04 -0700 From: "Luis R. Rodriguez" To: Sankar P CC: "rnagarajan@novell.com" , "teheo@novell.com" , Catalin Marinas , Pekka Enberg , Luis Rodriguez , "linux-kernel@vger.kernel.org" , "linux-mm@kvack.org" Subject: Re: Probable Bug (or configuration error) in kmemleak Message-ID: <20100617173604.GB28055@tux> References: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 17, 2010 at 02:21:56AM -0700, Sankar P wrote: > Hi, > > I wanted to detect memory leaks in one of my kernel modules. So I > built Linus' tree with the following config options enabled (on top > of make defconfig) > > CONFIG_DEBUG_KMEMLEAK=y > CONFIG_DEBUG_KMEMLEAK_EARLY_LOG_SIZE=400 > CONFIG_DEBUG_KMEMLEAK_TEST=y > > If I boot with this kernel, debugfs is automatically mounted. But I do > not have the file: > > /sys/kernel/debug/kmemleak > > created at all. There are other files like kprobes in the mounted > /sys/kernel/debug directory btw. So I am not able to detect any of the > memory leaks. Is there anything I am doing wrong or missing (or) is > this a bug in kmemleak ? > > Please let me know your suggestions to fix this and get memory leaks > reporting working. Thanks. > > The full .config file is also attached with this mail. Sorry for the > attachment, I did not want to paste 5k lines in the mail. Sorry if it > is wrong. This is odd.. Do you see this message on your kernel ring buffer? Failed to create the debugfs kmemleak file Luis