Files
linux/kernel
Daniel Thompson 8520dedbbf tracing: kdb: Fix kernel livelock with empty buffers
Currently kdb's ftdump command will livelock by constantly printk'ing
the empty string at KERN_EMERG level if it run when the ftrace system is
not in use. This occurs because trace_empty() never returns false when
the ring buffers are left at the start of a non-consuming read [launched
by ring_buffer_read_start()].

This patch changes the loop exit condition to use the result of
trace_find_next_entry_inc(). Effectively this switches the non-consuming
kdb dumper to follow the approach of the non-consuming userspace
interface [s_next()] rather than the consuming ftrace_dump().

Link: http://lkml.kernel.org/r/[email protected]

Cc: Ingo Molnar <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: John Stultz <[email protected]>
Cc: Sumit Semwal <[email protected]>
Cc: Jason Wessel <[email protected]>
Signed-off-by: Daniel Thompson <[email protected]>
Signed-off-by: Steven Rostedt <[email protected]>
2014-11-13 21:27:25 -05:00
..
2014-10-07 01:18:12 +02:00
2014-10-09 22:26:04 -04:00
2014-10-09 22:26:04 -04:00
2014-09-23 16:37:51 -04:00
2014-08-08 15:57:18 -07:00
…
…
…
…
…
…
…
…
2014-09-10 15:42:12 -07:00
…
2014-08-08 15:57:32 -07:00
…
2014-08-08 15:57:24 -07:00
…
…
…
…
…
…
…
2014-08-08 15:57:22 -07:00