Re: [PATCH V7 8/9] trace/osnoise: Remove STACKTRACE ifdefs from inside functions

From: Steven Rostedt
Date: Fri Oct 29 2021 - 09:01:54 EST


On Fri, 29 Oct 2021 14:31:27 +0200
Daniel Bristot de Oliveira <bristot@xxxxxxxxxx> wrote:

> > + /*
> > + * 0 is disabled, so it will never be > than latency.
> > + */
> > + if (osnoise_data.print_stack > latency)
> > + return;
>
> Oops, I placed the comment, but forgot to place the check. This if should be:
>
> if (!osnoise_data.print_stack || osnoise_data.print_stack > latency)
> return;

Or I could've had a V8!

https://www.youtube.com/watch?v=qYo0lVVH2wU

-- Steve