From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755004Ab1ELDNa (ORCPT ); Wed, 11 May 2011 23:13:30 -0400 Received: from mail-pv0-f174.google.com ([74.125.83.174]:43116 "EHLO mail-pv0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751850Ab1ELDN2 convert rfc822-to-8bit (ORCPT ); Wed, 11 May 2011 23:13:28 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=j0Zwq2GARdpFuHtY7tj79MJBKILFN/VwXlg6rPejgvM/2mkfifx7GK4c5x7zTAMPP8 8/seIOwUJOfEraQRyw6iYjv2jDqK98uMtkWMV8Yhz0WU2plTurBjsC86mpPUhTBdd6yp /D7ShTIjphlWLLciCaS5V3yFi6eJD7kYyKLP8= MIME-Version: 1.0 In-Reply-To: References: Date: Thu, 12 May 2011 11:13:28 +0800 Message-ID: Subject: Re: problem with kmemleak From: ttlxzz ccc To: linux-kernel@vger.kernel.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org help~~~:) please !thx!! On Thu, May 12, 2011 at 10:06 AM, ttlxzz ccc wrote: > Hi, all: > > > > I just want to use kmemleak, so I make the CONFIG_DEBUG_KMEMLEAK and > CONFIG_DEBUG_FS on, mount the debugfs. > > But when I insmod mm/kmemleak-test.ko, echo scan > > /sys/kernel/debug/kmemleak and cat /sys/kernel/debug/kmemleak. I just > see this: > > unreferenced object 0xffffc90012d21000 (size 64): > >  comm "insmod", pid 13092, jiffies 4298369684 > >  hex dump (first 32 bytes): > >    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................ > >    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................ > >  backtrace: > >    [] 0xffffffffffffffff > > unreferenced object 0xffffc90012d24000 (size 64): > >  comm "insmod", pid 13092, jiffies 4298369684 > >  hex dump (first 32 bytes): > >    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................ > >    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................ > >  backtrace: > >    [] 0xffffffffffffffff > > unreferenced object 0xffffc90012d27000 (size 64): > >  comm "insmod", pid 13092, jiffies 4298369684 > >  hex dump (first 32 bytes): > >    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................ > >    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................ > >  backtrace: > >    [] 0xffffffffffffffff > > There is no other backtrace except [] > 0xffffffffffffffff. Then I read the mm/kmemleak.c. In > kmemleak_seq_show(), I find that the object->trace_len is 1. > > > > How can I get the full backtrace? >