Re: [PATCH][RFC] Measuring term of acquiring spinlock

From: Ingo Molnar
Date: Thu Nov 12 2009 - 02:39:36 EST



* Hitoshi Mitake <mitake@xxxxxxxxxxxxxxxxxxxxx> wrote:

> * Description
>
> This patch makes the file spinlock_stats on top of the debugfs.
> When user reads this file, some statistical data related to
> spinlocks are printed.

hm, are you aware of the lockstat tracepoints? They do something like
this - and it utilizes perf events to report these events. See
include/trace/events/lockdep.h. Needs CONFIG_LOCK_STAT enabled.

Might make sense to put it into 'perf lock' kind of tool. I think
Frederic had such plans.

Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/