[haiku-development] Re: address space rwlock issue?

  • From: "Axel Dörfler" <axeld@xxxxxxxxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Mon, 16 Mar 2009 10:38:30 +0100 CET

Ingo Weinhold <ingo_weinhold@xxxxxx> wrote:
> On 2009-03-15 at 19:04:05 [+0100], Jonas Sundström <jonas@xxxxxxxxxxx
> >
> wrote:
> > Would it be possible to have a deadlocks command in
> > KDL, comparing the threads currently holding locks
> > with threads waiting on locks?
> Well, as in this case it is not always known which thread is holding
> a
> lock. If it were, analyzing the lock manually wouldn't be hard either
> --
> you'd just have to follow the lock owners until detecting a cycle.

Wouldn't it be possible to use kernel tracing for this? It could store
the lock actions in the trace log, and we could then have a command
that evaluates all this information?

Bye,
   Axel.


Other related posts: