[PATCH v2 0/3] trace: Use simpler seq_file functions

From: Rasmus Villemoes
Date: Sat Nov 08 2014 - 15:45:17 EST


Using printf to print a simple string or puts to print a single
character is more expensive than it needs to be. Also, consecutive
puts calls can be replaced by a single call. These patches do this to
kernel/trace/, saving ~256 bytes of .text.

v2: Keep the original splitting of strings across lines.

Rasmus Villemoes (3):
trace: Replace seq_printf by simpler equivalents
trace: Merge consecutive seq_puts calls
trace: Replace single-character seq_puts with seq_putc

kernel/trace/ftrace.c | 30 +++++++-------
kernel/trace/trace.c | 78 ++++++++++++++++++------------------
kernel/trace/trace_branch.c | 32 +++++++--------
kernel/trace/trace_events.c | 4 +-
kernel/trace/trace_events_trigger.c | 6 +--
kernel/trace/trace_functions.c | 2 +-
kernel/trace/trace_functions_graph.c | 28 ++++++-------
kernel/trace/trace_kprobe.c | 12 +++---
kernel/trace/trace_printk.c | 2 +-
kernel/trace/trace_uprobe.c | 4 +-
10 files changed, 99 insertions(+), 99 deletions(-)

--
2.0.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/