Steven Rostedt (Red Hat)
74f06bb723
tracing: Clean up tracing_fill_pipe_page()
...
The function tracing_fill_pipe_page() logic is a little confusing with the
use of count saving the seq.len and reusing it.
Instead of subtracting a number that is calculated from the saved
value of the seq.len from seq.len, just save the seq.len at the start
and if we need to reset it, just assign it again.
When the seq_buf overflow is len == size + 1, the current logic will
break. Changing it to use a saved length for resetting back to the
original value is more robust and will work when we change the way
seq_buf sets the overflow.
Link: http://lkml.kernel.org/r/20141118161546.GJ23958@pathway.suse.cz
Reviewed-by: Petr Mladek <pmladek@suse.cz>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
2014-11-19 22:01:14 -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.c
ring-buffer: Remove check of trace_seq_{puts,printf}() return values
2014-11-19 15:25:40 -05:00
ring_buffer_benchmark.c
rpm-traces.c
seq_buf.c
seq_buf: Create seq_buf_used() to find out how much was written
2014-11-19 22:01:13 -05:00
trace.c
tracing: Clean up tracing_fill_pipe_page()
2014-11-19 22:01:14 -05:00
trace.h
tracing: Have function_graph use trace_seq_has_overflowed()
2014-11-19 15:25:42 -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.c
tracing: Create seq_buf layer in trace_seq
2014-11-19 22:01:09 -05:00
trace_events_filter.c
trace_events_filter_test.h
trace_events_trigger.c
trace: Replace single-character seq_puts with seq_putc
2014-11-14 07:55:55 -05:00
trace_export.c
trace_functions.c
tracing: Fix race of function probes counting
2014-11-18 23:06:35 -05:00
trace_functions_graph.c
tracing: Create seq_buf layer in trace_seq
2014-11-19 22:01:09 -05:00
trace_irqsoff.c
trace_kdb.c
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
trace_sched_wakeup.c
trace_selftest.c
trace_selftest_dynamic.c
trace_seq.c
tracing: Convert seq_buf_path() to be like seq_path()
2014-11-19 22:01:10 -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