Re: [for-next][PATCH 2/2] tracing: Use temp buffer when filtering events

From: Steven Rostedt
Date: Thu May 05 2016 - 11:32:59 EST


On Thu, 5 May 2016 08:20:57 -0700
Alexei Starovoitov <alexei.starovoitov@xxxxxxxxx> wrote:


> tricky :)

Thanks ;-)

> so the buffer is used only for non-recursive events.
> If the 2nd event on the same cpu also needs filtering it will
> be going through normal trace_buffer_lock_reserve() path,
> but then it means such events will be out of order if both
> are accepted, right?
> Is that a concern or not?

Well, what is the order?

Think about it, what's the difference if the interrupt came in just
before the trace or just after? It still came in the same location with
respect to the normal flow of the code. The only difference is, where
we recorded it.

-- Steve