Re: WARNING in set_restore_sigmask

From: Steven Rostedt
Date: Fri Jan 29 2016 - 09:32:44 EST


On Fri, 29 Jan 2016 15:10:18 +0100 (CET)
Thomas Gleixner <tglx@xxxxxxxxxxxxx> wrote:


> The time depends on the serial speed and the trace buffer size and the number
> of cpus. Don't worry about the uptime. The buffer is a ringbuffer with limited
> capacity, so the dump time is constant.
>
> If you want that /proc/sys/kernel/ftrace_dump_on_oops spills out on warnings
> as well, you need to enable
>
> /proc/sys/kernel/traceoff_on_warning
> /proc/sys/kernel/ftrace_dump_on_oops
>
> and
>
> /proc/sys/kernel/panic_on_warn
>
> because we do not dump on warnings.

To save time in the wait, you may also want to do:

# echo 50 > /sys/kernel/debug/tracing/buffer_size_kb

which will make each per cpu buffer 50 kb, instead of the default of a
meg each. That will cut down the time to spit out the ftrace buffer to
serial console, but it wont have as much data. 50 kb should be enough
to trace back to the problem point though.

-- Steve