Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 121292
b: refs/heads/master
c: e05a43b
h: refs/heads/master
v: v3
  • Loading branch information
Steven Rostedt authored and Ingo Molnar committed Dec 18, 2008
1 parent 26f0828 commit a2ac381
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 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: f38f1d2aa5a3520cf05da7cd6bd12fe2b0c509b7
refs/heads/master: e05a43b744fb9518cbf8539a7ef33164ac60a70f
11 changes: 4 additions & 7 deletions trunk/kernel/trace/trace_stack.c
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ stack_trace_sysctl(struct ctl_table *table, int write,

mutex_lock(&stack_sysctl_mutex);

ret = proc_dointvec(table, write, file, buffer, lenp, ppos);
ret = proc_dointvec(table, write, file, buffer, lenp, ppos);

if (ret || !write ||
(last_stack_tracer_enabled == stack_tracer_enabled))
Expand All @@ -326,11 +326,10 @@ stack_trace_sysctl(struct ctl_table *table, int write,
return ret;
}

static int start_stack_trace __initdata;

static __init int enable_stacktrace(char *str)
{
start_stack_trace = 1;
stack_tracer_enabled = 1;
last_stack_tracer_enabled = 1;
return 1;
}
__setup("stacktrace", enable_stacktrace);
Expand All @@ -352,10 +351,8 @@ static __init int stack_trace_init(void)
if (!entry)
pr_warning("Could not create debugfs 'stack_trace' entry\n");

if (start_stack_trace) {
if (stack_tracer_enabled)
register_ftrace_function(&trace_ops);
stack_tracer_enabled = 1;
}

return 0;
}
Expand Down

0 comments on commit a2ac381

Please sign in to comment.