Re: [PATCH] Separate lock events with types

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Frederic Weisbecker
Date: Friday, March 26, 2010 - 4:33 pm

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.

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 2/2] perf lock: Fix output of tracing lock events, Hitoshi Mitake, (Tue Dec 15, 8:28 pm)
[tip:perf/lock] perf: Add util/include/linuxhash.h to incl ..., tip-bot for Hitoshi ..., (Wed Dec 16, 1:18 am)
[tip:perf/lock] perf lock: Fix output of tracing lock events, tip-bot for Hitoshi ..., (Wed Dec 16, 1:19 am)
[PATCH] Add type of locks to lock trace events, Hitoshi Mitake, (Mon Jan 25, 10:56 pm)
Re: [PATCH] Add type of locks to lock trace events, Peter Zijlstra, (Thu Jan 28, 3:21 am)
Re: [PATCH] Add type of locks to lock trace events, Frederic Weisbecker, (Fri Jan 29, 10:29 am)
Re: [PATCH] Add type of locks to lock trace events, Peter Zijlstra, (Fri Jan 29, 10:41 am)
Re: [PATCH] Add type of locks to lock trace events, Frederic Weisbecker, (Fri Jan 29, 3:12 pm)
[PATCH] Separate lock events with types, Hitoshi Mitake, (Wed Feb 24, 2:02 am)
Re: [PATCH] Separate lock events with types, Frederic Weisbecker, (Fri Mar 26, 4:33 pm)
Re: [PATCH] Separate lock events with types, Hitoshi Mitake, (Mon Apr 5, 3:37 am)
Re: [PATCH] Separate lock events with types, Peter Zijlstra, (Tue Apr 6, 1:26 am)
Re: [PATCH] Separate lock events with types, Frederic Weisbecker, (Tue Apr 6, 2:44 am)