Re: [PATCH 1/2] tracing: kdb: Fix ftdump to not sleep

2019-03-05 Thread Steven Rostedt
On Tue, 5 Mar 2019 15:31:49 -0800 Douglas Anderson wrote: > diff --git a/include/linux/ring_buffer.h b/include/linux/ring_buffer.h > index 5b9ae62272bb..0c8ab8bf4cfb 100644 > --- a/include/linux/ring_buffer.h > +++ b/include/linux/ring_buffer.h > @@ -127,6 +127,8 @@ struct ring_buffer_event * >

[PATCH 1/2] tracing: kdb: Fix ftdump to not sleep

2019-03-05 Thread Douglas Anderson
As reported back in 2016-11 [1], the "ftdump" kdb command triggers a BUG for "sleeping function called from invalid context". kdb's "ftdump" command wants to call ring_buffer_read_prepare() in atomic context. A very simple solution for this is to just provide a variant of