Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 140730
b: refs/heads/master
c: b22f485
h: refs/heads/master
v: v3
  • Loading branch information
Frederic Weisbecker authored and Ingo Molnar committed Feb 11, 2009
1 parent 7cb280f commit f4134be
Show file tree
Hide file tree
Showing 4 changed files with 6 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: 00f62f614bb713027b9296068d1879fbca511eb7
refs/heads/master: b22f4858126a6aa852ad745b94f6b25dbdea708e
1 change: 1 addition & 0 deletions trunk/kernel/trace/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ config SYSPROF_TRACER
bool "Sysprof Tracer"
depends on X86
select TRACING
select CONTEXT_SWITCH_TRACER
help
This tracer provides the trace needed by the 'Sysprof' userspace
tool.
Expand Down
2 changes: 1 addition & 1 deletion trunk/kernel/trace/ring_buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -273,8 +273,8 @@ struct ring_buffer {
unsigned pages;
unsigned flags;
int cpus;
atomic_t record_disabled;
cpumask_var_t cpumask;
atomic_t record_disabled;

struct mutex mutex;

Expand Down
3 changes: 3 additions & 0 deletions trunk/kernel/trace/trace_sysprof.c
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,8 @@ static int stack_trace_init(struct trace_array *tr)
{
sysprof_trace = tr;

tracing_start_cmdline_record();

mutex_lock(&sample_timer_lock);
start_stack_timers();
tracer_enabled = 1;
Expand All @@ -247,6 +249,7 @@ static int stack_trace_init(struct trace_array *tr)

static void stack_trace_reset(struct trace_array *tr)
{
tracing_stop_cmdline_record();
stop_stack_trace(tr);
}

Expand Down

0 comments on commit f4134be

Please sign in to comment.