[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20180710093245.4e326156@gandalf.local.home>
Date: Tue, 10 Jul 2018 09:32:45 -0400
From: Steven Rostedt <rostedt@...dmis.org>
To: Peter Zijlstra <peterz@...radead.org>
Cc: Sebastian Andrzej Siewior <bigeasy@...utronix.de>,
tglx@...utronix.de, Clark Williams <williams@...hat.com>,
linux-rt-users@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: cgroup trace events acquire sleeping locks
On Tue, 10 Jul 2018 11:26:35 +0200
Peter Zijlstra <peterz@...radead.org> wrote:
> > Hmm, good question. I could possibly make all the tracepoint code into
> > its own section. And then look to see if any spin locks exist in them.
> > That wouldn't be too trivial to implement though.
>
> pick a bit from the preempt_count (say right above NMI_MASK) and set it
> inside a trace-event and add in_trace().
>
> Then make lockdep explode when in_trace().
>
> Or something along those lines.
Sure. We have current->trace for special tracing flags. That could
easily be used.
-- Steve
Powered by blists - more mailing lists