kernel_optimize_test/kernel/trace
Steven Rostedt (Red Hat) 8cd709ae76 tracing: Have seq_buf use full buffer
Currently seq_buf is full when all but one byte of the buffer is
filled. Change it so that the seq_buf is full when all of the
buffer is filled.

Some of the functions would fill the buffer completely and report
everything was fine. This was inconsistent with the max of size - 1.
Changing this to be max of size makes all functions consistent.

Link: http://lkml.kernel.org/r/20141104160222.502133196@goodmis.org
Link: http://lkml.kernel.org/r/20141114011412.811957882@goodmis.org

Tested-by: Jiri Kosina <jkosina@suse.cz>
Acked-by: Jiri Kosina <jkosina@suse.cz>
Reviewed-by: Petr Mladek <pmladek@suse.cz>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
2014-11-19 22:01:17 -05:00
..
blktrace.c blktrace/tracing: Use trace_seq_has_overflowed() helper function 2014-11-19 15:25:39 -05:00
ftrace.c ftrace/x86/extable: Add is_ftrace_trampoline() function 2014-11-19 15:25:26 -05:00
Kconfig
Makefile tracing: Create seq_buf layer in trace_seq 2014-11-19 22:01:09 -05:00
power-traces.c
ring_buffer_benchmark.c
ring_buffer.c ring-buffer: Remove check of trace_seq_{puts,printf}() return values 2014-11-19 15:25:40 -05:00
rpm-traces.c
seq_buf.c tracing: Have seq_buf use full buffer 2014-11-19 22:01:17 -05:00
trace_benchmark.c
trace_benchmark.h
trace_branch.c tracing: Have branch tracer use trace_handle_return() helper function 2014-11-19 15:25:41 -05:00
trace_clock.c
trace_entries.h
trace_event_perf.c
trace_events_filter_test.h
trace_events_filter.c
trace_events_trigger.c trace: Replace single-character seq_puts with seq_putc 2014-11-14 07:55:55 -05:00
trace_events.c tracing: Use trace_seq_used() and seq_buf_used() instead of len 2014-11-19 22:01:15 -05:00
trace_export.c
trace_functions_graph.c tracing: Use trace_seq_used() and seq_buf_used() instead of len 2014-11-19 22:01:15 -05:00
trace_functions.c tracing: Fix race of function probes counting 2014-11-18 23:06:35 -05:00
trace_irqsoff.c
trace_kdb.c tracing: kdb: Fix kernel livelock with empty buffers 2014-11-13 21:27:25 -05:00
trace_kprobe.c kprobes/tracing: Use trace_seq_has_overflowed() for overflow checks 2014-11-19 15:25:43 -05:00
trace_mmiotrace.c tracing: Do not check return values of trace_seq_p*() for mmio tracer 2014-11-19 15:25:44 -05:00
trace_nop.c
trace_output.c tracing: Fix return value of ftrace_raw_output_prep() 2014-11-19 15:25:48 -05:00
trace_output.h tracing: Add trace_seq_has_overflowed() and trace_handle_return() 2014-11-19 15:25:39 -05:00
trace_printk.c trace: Replace single-character seq_puts with seq_putc 2014-11-14 07:55:55 -05:00
trace_probe.c tracing/probes: Do not use return value of trace_seq_printf() 2014-11-19 15:25:44 -05:00
trace_probe.h
trace_sched_switch.c tracing: Move tracing_sched_{switch,wakeup}() into wakeup tracer 2014-11-11 12:43:15 -05:00
trace_sched_wakeup.c tracing: Move tracing_sched_{switch,wakeup}() into wakeup tracer 2014-11-11 12:43:15 -05:00
trace_selftest_dynamic.c
trace_selftest.c
trace_seq.c tracing: Use trace_seq_used() and seq_buf_used() instead of len 2014-11-19 22:01:15 -05:00
trace_stack.c
trace_stat.c
trace_stat.h
trace_syscalls.c tracing: Do not use return values of trace_seq_printf() in syscall tracing 2014-11-19 15:25:46 -05:00
trace_uprobe.c tracing: Deletion of an unnecessary check before iput() 2014-11-19 16:28:45 -05:00
trace.c tracing: Add paranoid size check in trace_printk_seq() 2014-11-19 22:01:16 -05:00
trace.h tracing: Have function_graph use trace_seq_has_overflowed() 2014-11-19 15:25:42 -05:00