From mboxrd@z Thu Jan 1 00:00:00 1970 From: catalin.marinas@arm.com (Catalin Marinas) Date: Thu, 20 Jan 2011 12:45:52 +0000 Subject: Running kmemleak without sysfs support In-Reply-To: References: <1295520732.28273.4.camel@e102109-lin.cambridge.arm.com> Message-ID: <1295527552.28273.11.camel@e102109-lin.cambridge.arm.com> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org On Thu, 2011-01-20 at 12:33 +0000, Daniel Baluta wrote: > On Thu, Jan 20, 2011 at 12:52 PM, Catalin Marinas > wrote: > > On Thu, 2011-01-20 at 10:41 +0000, Daniel Baluta wrote: > >> Can I make any use of kmemcheck if I don't have sysfs > >> kernel support enabled? > > > > Kmemleak can scan output the memory and report the number of leaked > > objects but if you need to get additional information about the leaked > > objects (like backtrace), you need debugfs enabled. > > How is this reporting done? It will appear in dmesg output? Yes. > > DEBUG_FS doesn't seem to be dependent on SYSFS but I never tried to > > enable one without the other (you might be able to mount the DEBUG_FS > > somewhere other than /sys/kernel/debug/). > > I see. I was using 2.6.32 where it seems that debugfs depended on sysfs. > Decoupling was done some time later [1]. Ah, I missed that. I'll change DEBUG_KMEMLEAK to always select DEBUG_FS (currently only if SYSFS). Thanks / multumesc :). -- Catalin