Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 146215
b: refs/heads/master
c: 56d8bd3
h: refs/heads/master
i:
  146213: 22ced6e
  146211: b14c0f2
  146207: 8d60fc4
v: v3
  • Loading branch information
Steven Whitehouse authored and Steven Rostedt committed Jun 3, 2009
1 parent 972a3d0 commit 7e0da96
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 048dc50c5e7eada19ebabbad70b7966d14283d41
refs/heads/master: 56d8bd3f0b98972312cad683947ec90b21011199
2 changes: 2 additions & 0 deletions trunk/include/trace/ftrace.h
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@
* field = (typeof(field))entry;
*
* p = get_cpu_var(ftrace_event_seq);
* trace_seq_init(p);
* ret = trace_seq_printf(s, <TP_printk> "\n");
* put_cpu();
* if (!ret)
Expand Down Expand Up @@ -167,6 +168,7 @@ ftrace_raw_output_##call(struct trace_iterator *iter, int flags) \
field = (typeof(field))entry; \
\
p = &get_cpu_var(ftrace_event_seq); \
trace_seq_init(p); \
ret = trace_seq_printf(s, #call ": " print); \
put_cpu(); \
if (!ret) \
Expand Down
10 changes: 4 additions & 6 deletions trunk/kernel/trace/trace_output.c
Original file line number Diff line number Diff line change
Expand Up @@ -223,10 +223,9 @@ ftrace_print_flags_seq(struct trace_seq *p, const char *delim,
{
unsigned long mask;
const char *str;
const char *ret = p->buffer + p->len;
int i;

trace_seq_init(p);

for (i = 0; flag_array[i].name && flags; i++) {

mask = flag_array[i].mask;
Expand All @@ -249,7 +248,7 @@ ftrace_print_flags_seq(struct trace_seq *p, const char *delim,

trace_seq_putc(p, 0);

return p->buffer;
return ret;
}
EXPORT_SYMBOL(ftrace_print_flags_seq);

Expand All @@ -258,8 +257,7 @@ ftrace_print_symbols_seq(struct trace_seq *p, unsigned long val,
const struct trace_print_flags *symbol_array)
{
int i;

trace_seq_init(p);
const char *ret = p->buffer + p->len;

for (i = 0; symbol_array[i].name; i++) {

Expand All @@ -275,7 +273,7 @@ ftrace_print_symbols_seq(struct trace_seq *p, unsigned long val,

trace_seq_putc(p, 0);

return p->buffer;
return ret;
}
EXPORT_SYMBOL(ftrace_print_symbols_seq);

Expand Down

0 comments on commit 7e0da96

Please sign in to comment.