From: Catalin Marinas <catalin.marinas@arm.com>
To: Hiroshi DOYU <Hiroshi.DOYU@nokia.com>
Cc: linux-kernel@vger.kernel.org, ext-phil.2.carmody@nokia.com,
linux-omap@vger.kernel.org
Subject: Re: [PATCH v2 0/3] kmemleak: Fix false positive with special scan
Date: Wed, 02 Jun 2010 15:12:29 +0100 [thread overview]
Message-ID: <1275487949.23442.9.camel@e102109-lin.cambridge.arm.com> (raw)
In-Reply-To: <20100602.143458.232754971.Hiroshi.DOYU@nokia.com>
On Wed, 2010-06-02 at 12:34 +0100, Hiroshi DOYU wrote:
> From: ext Catalin Marinas <catalin.marinas@arm.com>
> > Can we not add a new prio tree (or just use the existing one) for
> > pointer aliases? The advantage is that you only have a single function
> > to call, something like kmemleak_add_alias() and you do it at the point
> > the value was converted.
>
> Actually I considered the above aliasing a little bit but I gave up
> soon.
>
> I was afraid that this method might consume way more memory since this
> just adds another member for "struct kmemleak_object", but adding a
> single member for all objects. The number of kmemleak_object is
> usually numerous.
We could use a different tree with a "struct kmemleak_alias" structure
which is much smaller. Something like below:
struct kmemleak_alias {
struct list_head alias_list;
struct prio_tree_node tree_node;
struct kmemleak_object *object;
}
And an alias_list member would be added to kmemleak_object as well.
Would the alias tree need to allow overlapping? Like different IOMMU
mappings with the same address (but pointing to different physical
memory).
--
Catalin
next prev parent reply other threads:[~2010-06-02 14:12 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1273821401-26578-2-git-send-email-Hiroshi.DOYU@nokia.com>
2010-06-01 10:25 ` [PATCH v2 0/3] kmemleak: Fix false positive with special scan Hiroshi DOYU
2010-06-02 10:01 ` Catalin Marinas
2010-06-02 11:34 ` Hiroshi DOYU
2010-06-02 12:28 ` Hiroshi DOYU
2010-06-02 14:12 ` Catalin Marinas [this message]
2010-06-03 9:54 ` Hiroshi DOYU
2010-06-18 6:04 ` [RFC][PATCH 0/1] kmemleak: Fix false positive with alias Hiroshi DOYU
2010-06-22 15:36 ` Phil Carmody
2010-06-28 14:46 ` Catalin Marinas
2010-06-29 4:44 ` Hiroshi DOYU
2010-08-10 15:49 ` Hiroshi DOYU
2010-08-27 6:12 ` Hiroshi DOYU
2010-08-30 20:30 ` Paul E. McKenney
2010-09-17 13:14 ` Catalin Marinas
2010-09-17 16:18 ` Catalin Marinas
2010-09-17 17:06 ` Hiroshi DOYU
2010-09-17 17:28 ` Phil Carmody
2010-06-18 6:04 ` [PATCH 1/1] " Hiroshi DOYU
2010-06-01 10:25 ` [PATCH v2 1/3] kmemleak: Fix false positives with special scan Hiroshi DOYU
2010-06-01 10:25 ` [PATCH v2 2/3] kmemleak: Add special scan test case Hiroshi DOYU
2010-06-01 10:25 ` [PATCH v2 3/3] omap iommu: kmemleak: Fix false positive with special scan Hiroshi DOYU
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1275487949.23442.9.camel@e102109-lin.cambridge.arm.com \
--to=catalin.marinas@arm.com \
--cc=Hiroshi.DOYU@nokia.com \
--cc=ext-phil.2.carmody@nokia.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).