On Wed, Feb 24, 2010 at 06:02:46PM +0900, Hitoshi Mitake wrote:
Instead of having one different event for each type of locks,
I would rather suggest to add a "lock type" field in the (future)
lock_init_class class. This requires we implement event injection
properly before.
So if we store the lock type in the lockdep_map, we can just dump
the type on lock class initialization:
- on register_lock_class
- on event injection to catchup with lock that have already registered
That's what does my tree perf/inject (minus the lock type), but this
all require a redesign, in both ftrace and perf sides.
Thanks.
--