Re: [PATCH v2 4/4] ftrace: Add an option for tracing console latencies

From: Steven Rostedt
Date: Thu May 02 2019 - 17:13:25 EST


On Thu, 2 May 2019 20:37:31 +0200
Viktor Rosendahl <viktor.rosendahl@xxxxxxxxx> wrote:

> > Instead of this being turned into a nop, don't have a kconfig option
> > but instead have this call into the trace_irqsoff.c code, and depending
> > on what the options are, it should stop it. Of course, this would need
> > to be smart enough to pair it. Perhaps return the result of
> > console_stop_critical_timings() and have that passed to
> > console_start_critical_timings(), and only have start do something if
> > stop did something. This way the option only needs to disable the stop
> > part.
>
> Something like this?
>
> I have only compile tested it so far.
>

Yeah, something like that.

-- Steve