Re: [PATCH 13/26 v5] tracing: Fix return value of ftrace_raw_output_prep()

2014-11-18 Thread Petr Mladek
On Fri 2014-11-14 23:59:00, Steven Rostedt wrote: > From: "Steven Rostedt (Red Hat)" > > If the trace_seq of ftrace_raw_output_prep() is full this function > returns TRACE_TYPE_PARTIAL_LINE, otherwise it returns zero. > > The problem is that TRACE_TYPE_PARTIAL_LINE happens to be zero! > > The

Re: [PATCH 13/26 v5] tracing: Fix return value of ftrace_raw_output_prep()

2014-11-18 Thread Petr Mladek
On Fri 2014-11-14 23:59:00, Steven Rostedt wrote: From: Steven Rostedt (Red Hat) rost...@goodmis.org If the trace_seq of ftrace_raw_output_prep() is full this function returns TRACE_TYPE_PARTIAL_LINE, otherwise it returns zero. The problem is that TRACE_TYPE_PARTIAL_LINE happens to be

[PATCH 13/26 v5] tracing: Fix return value of ftrace_raw_output_prep()

2014-11-14 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" If the trace_seq of ftrace_raw_output_prep() is full this function returns TRACE_TYPE_PARTIAL_LINE, otherwise it returns zero. The problem is that TRACE_TYPE_PARTIAL_LINE happens to be zero! The thing is, the caller of ftrace_raw_output_prep() expects a success

[PATCH 13/26 v5] tracing: Fix return value of ftrace_raw_output_prep()

2014-11-14 Thread Steven Rostedt
From: Steven Rostedt (Red Hat) rost...@goodmis.org If the trace_seq of ftrace_raw_output_prep() is full this function returns TRACE_TYPE_PARTIAL_LINE, otherwise it returns zero. The problem is that TRACE_TYPE_PARTIAL_LINE happens to be zero! The thing is, the caller of ftrace_raw_output_prep()