linux-stable-rt/kernel/trace
Arnaldo Carvalho de Melo d9793bd801 trace: judicious error checking of trace_seq results
Impact: bugfix and cleanup

Some callsites were returning either TRACE_ITER_PARTIAL_LINE if the
trace_seq routines (trace_seq_printf, etc) returned 0 meaning its buffer
was full, or zero otherwise.

But...

/* Return values for print_line callback */
enum print_line_t {
        TRACE_TYPE_PARTIAL_LINE = 0,    /* Retry after flushing the seq */
        TRACE_TYPE_HANDLED      = 1,
        TRACE_TYPE_UNHANDLED    = 2     /* Relay to other output functions */
};

In other cases the return value was not being relayed at all.

Most of the time it didn't hurt because the page wasn't get filled, but
for correctness sake, handle the return values everywhere.

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Acked-by: Frederic Weisbecker <fweisbec@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2009-02-04 20:48:30 +01:00
..
Kconfig trace: let boot trace be chosen by command line 2009-02-03 06:26:12 +01:00
Makefile tracing: add a new workqueue tracer 2009-01-14 12:11:43 +01:00
ftrace.c Merge branches 'tracing/blktrace', 'tracing/ftrace', 'tracing/urgent' and 'linus' into tracing/core 2009-02-04 20:45:41 +01:00
kmemtrace.c kmemtrace: fix printk formats, fix 2009-01-30 16:12:33 +01:00
ring_buffer.c Merge branches 'tracing/blktrace', 'tracing/kmemtrace' and 'tracing/urgent' into tracing/core 2009-01-27 14:30:57 +01:00
trace.c trace: judicious error checking of trace_seq results 2009-02-04 20:48:30 +01:00
trace.h trace: better manage the context info for events 2009-02-03 14:03:52 +01:00
trace_boot.c trace: let boot trace be chosen by command line 2009-02-03 06:26:12 +01:00
trace_branch.c trace: judicious error checking of trace_seq results 2009-02-04 20:48:30 +01:00
trace_functions.c ftrace: remove static from function tracer functions 2009-01-16 12:17:58 +01:00
trace_functions_graph.c trace: Use tracing_reset_online_cpus in more places 2009-01-29 14:28:31 +01:00
trace_hw_branches.c x86, ftrace, hw-branch-tracer: change trace format 2009-01-20 13:04:16 +01:00
trace_irqsoff.c trace: remove internal irqsoff disabling for trace output 2009-01-23 11:10:36 +01:00
trace_mmiotrace.c trace: clean up format errors in calls to trace_seq_printf 2009-01-16 12:17:38 +01:00
trace_nop.c trace: Use tracing_reset_online_cpus in more places 2009-01-29 14:28:31 +01:00
trace_output.c trace: judicious error checking of trace_seq results 2009-02-04 20:48:30 +01:00
trace_output.h trace: Change struct trace_event callbacks parameter list 2009-02-03 14:03:52 +01:00
trace_power.c Merge branches 'tracing/kmemtrace2' and 'tracing/ftrace' into tracing/urgent 2009-01-06 10:18:43 +01:00
trace_sched_switch.c sched, trace: update trace_sched_wakeup() 2008-12-25 13:10:21 +01:00
trace_sched_wakeup.c trace_sched_wakeup: Remove unused variable 2009-01-29 14:31:03 +01:00
trace_selftest.c tracing/selftest: remove TRACE_CONT reference 2008-12-29 15:07:47 +01:00
trace_selftest_dynamic.c
trace_stack.c trace: better use of stack_trace_enabled for boot up code 2008-12-18 12:56:56 +01:00
trace_stat.c tracing: trace_stat.c cleanup 2009-01-15 11:31:21 +01:00
trace_stat.h tracing/ftrace: separate events tracing and stats tracing engine 2009-01-14 12:11:37 +01:00
trace_sysprof.c cpumask: convert kernel trace functions 2009-01-01 10:12:22 +10:30
trace_workqueue.c trace_workqueue: use percpu data for workqueue stat 2009-01-20 13:06:59 +01:00