diff options
author | Rasmus Villemoes <linux@rasmusvillemoes.dk> | 2014-11-08 15:42:11 -0500 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2014-11-13 21:33:34 -0500 |
commit | d79ac28fde9c245473ba5f337341eb5823c7ebfc (patch) | |
tree | 305d1499669f1f9b1f6dc1f7624249bdd124f231 /kernel/trace/trace_branch.c | |
parent | fa6f0cc751d377af3f4f1484bceb47dc10163753 (diff) |
tracing: Merge consecutive seq_puts calls
Consecutive seq_puts calls with literal strings can be merged to a
single call. This reduces the size of the generated code, and can also
lead to slight .rodata reduction (because of fewer nul and padding
bytes). It should also shave a off a few clock cycles.
Link: http://lkml.kernel.org/r/1415479332-25944-3-git-send-email-linux@rasmusvillemoes.dk
Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/trace_branch.c')
-rw-r--r-- | kernel/trace/trace_branch.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/kernel/trace/trace_branch.c b/kernel/trace/trace_branch.c index 126c622e4f42..a3916f68a1c7 100644 --- a/kernel/trace/trace_branch.c +++ b/kernel/trace/trace_branch.c | |||
@@ -164,9 +164,9 @@ static enum print_line_t trace_branch_print(struct trace_iterator *iter, | |||
164 | static void branch_print_header(struct seq_file *s) | 164 | static void branch_print_header(struct seq_file *s) |
165 | { | 165 | { |
166 | seq_puts(s, "# TASK-PID CPU# TIMESTAMP CORRECT" | 166 | seq_puts(s, "# TASK-PID CPU# TIMESTAMP CORRECT" |
167 | " FUNC:FILE:LINE\n"); | 167 | " FUNC:FILE:LINE\n" |
168 | seq_puts(s, "# | | | | | " | 168 | "# | | | | | " |
169 | " |\n"); | 169 | " |\n"); |
170 | } | 170 | } |
171 | 171 | ||
172 | static struct trace_event_functions trace_branch_funcs = { | 172 | static struct trace_event_functions trace_branch_funcs = { |
@@ -233,8 +233,8 @@ extern unsigned long __stop_annotated_branch_profile[]; | |||
233 | 233 | ||
234 | static int annotated_branch_stat_headers(struct seq_file *m) | 234 | static int annotated_branch_stat_headers(struct seq_file *m) |
235 | { | 235 | { |
236 | seq_puts(m, " correct incorrect % "); | 236 | seq_puts(m, " correct incorrect % " |
237 | seq_puts(m, " Function " | 237 | " Function " |
238 | " File Line\n" | 238 | " File Line\n" |
239 | " ------- --------- - " | 239 | " ------- --------- - " |
240 | " -------- " | 240 | " -------- " |
@@ -362,8 +362,8 @@ extern unsigned long __stop_branch_profile[]; | |||
362 | 362 | ||
363 | static int all_branch_stat_headers(struct seq_file *m) | 363 | static int all_branch_stat_headers(struct seq_file *m) |
364 | { | 364 | { |
365 | seq_puts(m, " miss hit % "); | 365 | seq_puts(m, " miss hit % " |
366 | seq_puts(m, " Function " | 366 | " Function " |
367 | " File Line\n" | 367 | " File Line\n" |
368 | " ------- --------- - " | 368 | " ------- --------- - " |
369 | " -------- " | 369 | " -------- " |