Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752499AbWLQMFc (ORCPT ); Sun, 17 Dec 2006 07:05:32 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752501AbWLQMFc (ORCPT ); Sun, 17 Dec 2006 07:05:32 -0500 Received: from py-out-1112.google.com ([64.233.166.183]:54853 "EHLO py-out-1112.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752499AbWLQMFb (ORCPT ); Sun, 17 Dec 2006 07:05:31 -0500 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=OdqpgMMyDPHtuJdOzlnJPZAfwpg3Uf51s4Q0m3fCpF9tpLKMi6lOVc1lwFXeudh3VH56lUdmLLTaUYS2YwPSs5lG6fWvES+mGHaPvSpQ7+yBbpudo4OC1N3rbUlcT4Az/Bh+q3+vofJ2uwZZfMs2NgCIW5QXBZAgj8gon5NRZ+Y= Message-ID: Date: Sun, 17 Dec 2006 12:05:30 +0000 From: "Catalin Marinas" To: "Ingo Molnar" Subject: Re: [PATCH 2.6.20-rc1 00/10] Kernel memory leak detector 0.13 Cc: linux-kernel@vger.kernel.org In-Reply-To: <20061217094143.GA15372@elte.hu> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20061216153346.18200.51408.stgit@localhost.localdomain> <20061216165738.GA5165@elte.hu> <20061217085859.GB2938@elte.hu> <20061217090943.GA9246@elte.hu> <20061217092828.GA14181@elte.hu> <20061217094143.GA15372@elte.hu> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1417 Lines: 39 On 17/12/06, Ingo Molnar wrote: > > it would also be nice to have more information than this: > > unreferenced object 0xf76f5af8 (size 512): > [] memleak_alloc > [] kmem_cache_zalloc > [] probe_hwif > [] probe_hwif_init_with_fixup > [] ide_setup_pci_device > [] amd74xx_probe > [] ide_scan_pcidev > [] ide_scan_pcibus > [] ide_init > [] init > [] kernel_thread_helper > [] BTW, I think there is a call to kzalloc in probe_hwif and it is optimised to do a kmem_cache_zalloc in include/linux/slab_def.h. The latest kmemleak-0.13 ifdef's out this optimisation because the size information gets lost otherwise. The slab.h file was already patched for this in 2.6.19 but its content was moved to slab_def.h in 2.6.20-rc1. > it would be nice to record 1) the jiffies value at the time of > allocation, 2) the PID and the comm of the task that did the allocation. > The jiffies timestamp would be useful to see the age of the allocation, > and the PID/comm is useful for context. I'll add them. Thanks. -- Catalin - 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/