From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751687Ab0CTF4T (ORCPT ); Sat, 20 Mar 2010 01:56:19 -0400 Received: from ns.dcl.info.waseda.ac.jp ([133.9.216.194]:51895 "EHLO ns.dcl.info.waseda.ac.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751349Ab0CTF4S (ORCPT ); Sat, 20 Mar 2010 01:56:18 -0400 Message-ID: <4BA4638C.40307@dcl.info.waseda.ac.jp> Date: Sat, 20 Mar 2010 14:56:28 +0900 From: Hitoshi Mitake User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.5) Gecko/20091211 Shredder/3.0 MIME-Version: 1.0 To: Frederic Weisbecker CC: Jason Baron , Steven Rostedt , Mathieu Desnoyers , Ingo Molnar , Peter Zijlstra , linux-kernel@vger.kernel.org, h.mitake@gmail.com, Paul Mackerras , Arnaldo Carvalho de Melo , Jens Axboe Subject: Re: [PATCH RFC 00/11] lock monitor: Separate features related to lock References: <1268563128-6486-1-git-send-email-mitake@dcl.info.waseda.ac.jp> <1268590435.9440.8.camel@laptop> <20100317013236.GB5258@nowhere> <20100317095230.GD17146@elte.hu> <4BA1C141.8050409@dcl.info.waseda.ac.jp> <20100318211633.GG5103@nowhere> In-Reply-To: <20100318211633.GG5103@nowhere> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/19/10 06:16, Frederic Weisbecker wrote: >> 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? > > > There is almost always a process with a lock somewhere ;-) Yeah :) > > This is not a big deal, it's very similar to unfinished scenarios > due to the end of the tracing that can happen anytime and you miss > a lock_release or whatever. We can also begin the tracing anytime, > and you may receive orphan lock_release in the very beginning > because you missed the lock_acquire that happened before the tracing. > > Any locking scenario that doesn't fit into the state machine > or is incomplete must be considered as broken and then ignored. > > I see, thanks. I have to fix state machine of perf lock. Now it doesn't consider read, try and orphan events, it is very incompletely..