Re: [PATCH RFC 00/11] lock monitor: Separate features related to lock

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Hitoshi Mitake
Date: Wednesday, March 17, 2010 - 10:59 pm

On 03/17/10 18:52, Ingo Molnar wrote:
 >
 > * Frederic Weisbecker<fweisbec@gmail.com>  wrote:
 >
 >>> You add chained indirect calls into all lock ops, that's got to hurt.
 >>
 >> Well, the idea was not bad at the first glance. It was separating 
lockdep
 >> and lock events codes.
 >>
 >> But indeed, the indirect calls plus the locking are not good for 
such a fast
 >> path.
 >
 > What would be nice to have is some sort of dynamic patching approach 
to enable
 > _both_ lockdep, lockstat and perf lock.
 >
 > If TRACE_EVENT() tracepoints were patchable we could use them. (but 
they arent
 > right now)

I'll try it!

And I have a question related to this dynamic patching approach for lockdep.
If dynamic proving turning on/off is provided,
lockdep will be confused by inconsistency of lock acquiring log.

Will the sequence,

lock_acquire(l) -> turning off -> lock_release(l) -> turning on -> 
lock_acquire(l)

detected as double acquiring?

Should turning on/off lockdep be done in the time
when every processes have no lock?

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

Messages in current thread:
[PATCH RFC 02/11] Adopt lockdep to lock monitor, Hitoshi Mitake, (Sun Mar 14, 3:38 am)
[PATCH RFC 03/11] Adopt spinlock to lock monitor, Hitoshi Mitake, (Sun Mar 14, 3:38 am)
[PATCH RFC 04/11] Adopt rwlock to lock monitor, Hitoshi Mitake, (Sun Mar 14, 3:38 am)
[PATCH RFC 06/11] Adopt rwsem of x86 to lock monitor, Hitoshi Mitake, (Sun Mar 14, 3:38 am)
[PATCH RFC 08/11] Adopt mutex to lock monitor, Hitoshi Mitake, (Sun Mar 14, 3:38 am)
[PATCH RFC 09/11] Adopt rcu_read_lock() to lock monitor, Hitoshi Mitake, (Sun Mar 14, 3:38 am)
[PATCH RFC 10/11] Adopt kernel/sched.c to lock monitor, Hitoshi Mitake, (Sun Mar 14, 3:38 am)
Re: [PATCH RFC 00/11] lock monitor: Separate features rela ..., Frederic Weisbecker, (Tue Mar 16, 6:32 pm)
Re: [PATCH RFC 00/11] lock monitor: Separate features rela ..., Frederic Weisbecker, (Tue Mar 16, 6:47 pm)
Re: [PATCH RFC 00/11] lock monitor: Separate features rela ..., Frederic Weisbecker, (Wed Mar 17, 8:39 am)
Re: [PATCH RFC 00/11] lock monitor: Separate features rela ..., Hitoshi Mitake, (Wed Mar 17, 10:59 pm)
Re: [PATCH RFC 00/11] lock monitor: Separate features rela ..., Frederic Weisbecker, (Thu Mar 18, 1:30 pm)
Re: [PATCH RFC 00/11] lock monitor: Separate features rela ..., Frederic Weisbecker, (Thu Mar 18, 2:16 pm)
Re: [PATCH RFC 00/11] lock monitor: Separate features rela ..., Mathieu Desnoyers, (Thu Mar 18, 6:08 pm)
Re: [PATCH RFC 00/11] lock monitor: Separate features rela ..., Frederic Weisbecker, (Thu Mar 18, 6:23 pm)
Re: [PATCH RFC 00/11] lock monitor: Separate features rela ..., Mathieu Desnoyers, (Thu Mar 18, 6:36 pm)
Re: [PATCH RFC 00/11] lock monitor: Separate features rela ..., Frederic Weisbecker, (Thu Mar 18, 7:27 pm)
Re: [PATCH RFC 00/11] lock monitor: Separate features rela ..., Mathieu Desnoyers, (Thu Mar 18, 7:40 pm)
Re: [PATCH RFC 00/11] lock monitor: Separate features rela ..., Frederic Weisbecker, (Thu Mar 18, 8:06 pm)
Re: [PATCH RFC 00/11] lock monitor: Separate features rela ..., Mathieu Desnoyers, (Fri Mar 19, 5:56 am)
Re: [PATCH RFC 00/11] lock monitor: Separate features rela ..., Frederic Weisbecker, (Fri Mar 19, 9:46 pm)
Re: [PATCH RFC 00/11] lock monitor: Separate features rela ..., Frederic Weisbecker, (Fri Mar 19, 9:51 pm)