Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 116660
b: refs/heads/master
c: 9e9efff
h: refs/heads/master
v: v3
  • Loading branch information
Frederic Weisbecker authored and Ingo Molnar committed Oct 14, 2008
1 parent b39ba3e commit 3bbf48b
Show file tree
Hide file tree
Showing 2 changed files with 10 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: 07f4e4f790895d55f46aaf89e7437da4a585989c
refs/heads/master: 9e9efffb7848fe53c334996819139b431b983ac2
15 changes: 9 additions & 6 deletions trunk/kernel/trace/trace_boot.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,22 +45,25 @@ static void boot_trace_ctrl_update(struct trace_array *tr)
stop_boot_trace(tr);
}

static int initcall_print_line(struct trace_iterator *iter)
static enum print_line_t initcall_print_line(struct trace_iterator *iter)
{
int ret = 0;
int ret;
struct trace_entry *entry = iter->ent;
struct trace_boot *field = (struct trace_boot *)entry;
struct boot_trace *it = &field->initcall;
struct trace_seq *s = &iter->seq;

if (entry->type == TRACE_BOOT)
if (entry->type == TRACE_BOOT) {
ret = trace_seq_printf(s, "%pF called from %i "
"returned %d after %lld msecs\n",
it->func, it->caller, it->result,
it->duration);
if (ret)
return 1;
return 0;
if (ret)
return TRACE_TYPE_HANDLED;
else
return TRACE_TYPE_PARTIAL_LINE;
}
return TRACE_TYPE_UNHANDLED;
}

struct tracer boot_tracer __read_mostly =
Expand Down

0 comments on commit 3bbf48b

Please sign in to comment.