[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20130312181246.GA19942@opensource.wolfsonmicro.com>
Date: Tue, 12 Mar 2013 18:12:47 +0000
From: Mark Brown <broonie@...nsource.wolfsonmicro.com>
To: Dimitris Papastamos <dp@...nsource.wolfsonmicro.com>
Cc: patches@...nsource.wolfsonmicro.com, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] regmap: Expose total memory consumption in the rbtree
debugfs entry
On Tue, Mar 12, 2013 at 05:26:49PM +0000, Dimitris Papastamos wrote:
> + mem_size = sizeof(*rbtree_ctx);
> +
> for (node = rb_first(&rbtree_ctx->root); node != NULL;
> node = rb_next(node)) {
> n = container_of(node, struct regcache_rbtree_node, node);
> + mem_size += sizeof(*n);
> + mem_size += (n->blklen * map->cache_word_size);
This appears to ignore the size of the node structure and only have the
root context and the data.
Download attachment "signature.asc" of type "application/pgp-signature" (837 bytes)
Powered by blists - more mailing lists