From: Peter Zijlstra <peterz@infradead.org>
To: Hitoshi Mitake <mitake@dcl.info.waseda.ac.jp>
Cc: Ingo Molnar <mingo@elte.hu>,
linux-kernel@vger.kernel.org, Paul Mackerras <paulus@samba.org>,
Frederic Weisbecker <fweisbec@gmail.com>
Subject: Re: [PATCH] perf lock: Implement basic sorting function of perf lock
Date: Mon, 28 Dec 2009 12:01:04 +0100 [thread overview]
Message-ID: <1261998064.7135.74.camel@laptop> (raw)
In-Reply-To: <1261277805-27023-1-git-send-email-mitake@dcl.info.waseda.ac.jp>
On Sun, 2009-12-20 at 11:56 +0900, Hitoshi Mitake wrote:
> +static struct lock_stat *lock_stat_findnew(void *addr, const char *name)
> +{
> + struct list_head *entry = lockhashentry(addr);
> + struct lock_stat *ret, *new;
Right, so you use a hash table to match lock instances, I suppose that's
faster than an rb-tree?
Do you also remove instances after a match to keep the hash relatively
small?
next prev parent reply other threads:[~2009-12-28 11:01 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-20 2:56 [PATCH] perf lock: Implement basic sorting function of perf lock Hitoshi Mitake
2009-12-28 10:17 ` Peter Zijlstra
2010-01-08 8:02 ` Hitoshi Mitake
2009-12-28 10:58 ` Peter Zijlstra
2010-01-08 8:04 ` Hitoshi Mitake
2009-12-28 11:01 ` Peter Zijlstra [this message]
2010-01-08 8:33 ` Hitoshi Mitake
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=1261998064.7135.74.camel@laptop \
--to=peterz@infradead.org \
--cc=fweisbec@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=mitake@dcl.info.waseda.ac.jp \
--cc=paulus@samba.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