Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 116674
b: refs/heads/master
c: 097d036
h: refs/heads/master
v: v3
  • Loading branch information
Frederic Weisbecker authored and Ingo Molnar committed Oct 14, 2008
1 parent 0a5d972 commit 996de36
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 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: 6450c1d3213e27b0dcbf34cce7ad1ae74244c520
refs/heads/master: 097d036a2f25eecc42435c57e010aaf4a2eed2d9
2 changes: 2 additions & 0 deletions trunk/include/linux/ftrace.h
Original file line number Diff line number Diff line change
Expand Up @@ -225,9 +225,11 @@ struct boot_trace {
#ifdef CONFIG_BOOT_TRACER
extern void trace_boot(struct boot_trace *it, initcall_t fn);
extern void start_boot_trace(void);
extern void stop_boot_trace(void);
#else
static inline void trace_boot(struct boot_trace *it, initcall_t fn) { }
static inline void start_boot_trace(void) { }
static inline void stop_boot_trace(void) { }
#endif


Expand Down
1 change: 1 addition & 0 deletions trunk/init/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -886,6 +886,7 @@ static int __init kernel_init(void * unused)
* we're essentially up and running. Get rid of the
* initmem segments and start the user-mode stuff..
*/
stop_boot_trace();
init_post();
return 0;
}
11 changes: 8 additions & 3 deletions trunk/kernel/trace/trace_boot.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,16 @@ void start_boot_trace(void)
trace_boot_enabled = 1;
}

void stop_boot_trace(struct trace_array *tr)
void stop_boot_trace(void)
{
trace_boot_enabled = 0;
}

void reset_boot_trace(struct trace_array *tr)
{
stop_boot_trace();
}

static void boot_trace_init(struct trace_array *tr)
{
int cpu;
Expand All @@ -43,7 +48,7 @@ static void boot_trace_ctrl_update(struct trace_array *tr)
if (tr->ctrl)
start_boot_trace();
else
stop_boot_trace(tr);
stop_boot_trace();
}

static enum print_line_t initcall_print_line(struct trace_iterator *iter)
Expand Down Expand Up @@ -81,7 +86,7 @@ struct tracer boot_tracer __read_mostly =
{
.name = "initcall",
.init = boot_trace_init,
.reset = stop_boot_trace,
.reset = reset_boot_trace,
.ctrl_update = boot_trace_ctrl_update,
.print_line = initcall_print_line,
};
Expand Down

0 comments on commit 996de36

Please sign in to comment.