Re: [PATCH v3 2/2] dynamic debug: allow printing to trace event

2020-09-02 Thread Vincent Whitchurch
On Wed, Aug 26, 2020 at 09:53:57PM +0200, Joe Perches wrote: > On Wed, 2020-08-26 at 15:32 -0400, Steven Rostedt wrote: > > On Tue, 25 Aug 2020 08:53:25 -0700 > > Joe Perches wrote: > > > > > > The print buffer is statically allocated and managed using code borrowed > > > > from

Re: [PATCH v3 2/2] dynamic debug: allow printing to trace event

2020-08-26 Thread Joe Perches
On Wed, 2020-08-26 at 15:32 -0400, Steven Rostedt wrote: > On Tue, 25 Aug 2020 08:53:25 -0700 > Joe Perches wrote: > > > > The print buffer is statically allocated and managed using code borrowed > > > from __ftrace_trace_stack() and is limited to 256 bytes (four of these > > > are allocated per

Re: [PATCH v3 2/2] dynamic debug: allow printing to trace event

2020-08-26 Thread Steven Rostedt
On Tue, 25 Aug 2020 08:53:25 -0700 Joe Perches wrote: > > The print buffer is statically allocated and managed using code borrowed > > from __ftrace_trace_stack() and is limited to 256 bytes (four of these > > are allocated per CPU to handle the various contexts); anything larger > > will be

Re: [PATCH v3 2/2] dynamic debug: allow printing to trace event

2020-08-25 Thread Joe Perches
On Tue, 2020-08-25 at 17:33 +0200, Vincent Whitchurch wrote: > When debugging device drivers, I've found it very useful to be able to > redirect existing pr_debug()/dev_dbg() prints to the trace buffer > instead of dmesg. Among the many advantages of the trace buffer is that > it can be

[PATCH v3 2/2] dynamic debug: allow printing to trace event

2020-08-25 Thread Vincent Whitchurch
When debugging device drivers, I've found it very useful to be able to redirect existing pr_debug()/dev_dbg() prints to the trace buffer instead of dmesg. Among the many advantages of the trace buffer is that it can be dynamically resized, allows these prints to combined with other trace events,