Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 141037
b: refs/heads/master
c: e6f4890
h: refs/heads/master
i:
  141035: 354373e
v: v3
  • Loading branch information
Lai Jiangshan authored and Ingo Molnar committed Mar 25, 2009
1 parent c794f9d commit d5cef83
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 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: ee000b7f9fe429d2470c674ccec8d344f6789e0d
refs/heads/master: e6f489013b985b58d096a3091ece0ed579367232
8 changes: 7 additions & 1 deletion trunk/kernel/trace/trace_stat.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ static void *stat_seq_start(struct seq_file *s, loff_t *pos)

/* If we are in the beginning of the file, print the headers */
if (!*pos && session->ts->stat_headers)
session->ts->stat_headers(s);
return SEQ_START_TOKEN;

return seq_list_start(&session->stat_list, *pos);
}
Expand All @@ -172,6 +172,9 @@ static void *stat_seq_next(struct seq_file *s, void *p, loff_t *pos)
{
struct tracer_stat_session *session = s->private;

if (p == SEQ_START_TOKEN)
return seq_list_start(&session->stat_list, *pos);

return seq_list_next(p, &session->stat_list, pos);
}

Expand All @@ -186,6 +189,9 @@ static int stat_seq_show(struct seq_file *s, void *v)
struct tracer_stat_session *session = s->private;
struct trace_stat_list *l = list_entry(v, struct trace_stat_list, list);

if (v == SEQ_START_TOKEN)
return session->ts->stat_headers(s);

return session->ts->stat_show(s, l->stat);
}

Expand Down

0 comments on commit d5cef83

Please sign in to comment.