Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 158487
b: refs/heads/master
c: 76f0d07
h: refs/heads/master
i:
  158485: 3f4bb83
  158483: 40c63cf
  158479: f303db6
v: v3
  • Loading branch information
Steven Rostedt authored and Steven Rostedt committed Sep 4, 2009
1 parent f96b54a commit 7fd2640
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 15 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: 621968cdb2563b667d6ecb484ba91ef4c3a797b3
refs/heads/master: 76f0d07376388f32698ba51b6090a26b90c1342f
4 changes: 1 addition & 3 deletions trunk/kernel/trace/kmemtrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -183,11 +183,9 @@ static void kmemtrace_stop_probes(void)

static int kmem_trace_init(struct trace_array *tr)
{
int cpu;
kmemtrace_array = tr;

for_each_cpu(cpu, cpu_possible_mask)
tracing_reset(tr, cpu);
tracing_reset_online_cpus(tr);

kmemtrace_start_probes();

Expand Down
7 changes: 2 additions & 5 deletions trunk/kernel/trace/trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,6 @@ __acquires(kernel_lock)
if (type->selftest && !tracing_selftest_disabled) {
struct tracer *saved_tracer = current_trace;
struct trace_array *tr = &global_trace;
int i;

/*
* Run a selftest on this tracer.
Expand All @@ -559,8 +558,7 @@ __acquires(kernel_lock)
* internal tracing to verify that everything is in order.
* If we fail, we do not register this tracer.
*/
for_each_tracing_cpu(i)
tracing_reset(tr, i);
tracing_reset_online_cpus(tr);

current_trace = type;
/* the test is responsible for initializing and enabling */
Expand All @@ -573,8 +571,7 @@ __acquires(kernel_lock)
goto out;
}
/* Only reset on passing, to avoid touching corrupted buffers */
for_each_tracing_cpu(i)
tracing_reset(tr, i);
tracing_reset_online_cpus(tr);

printk(KERN_CONT "PASSED\n");
}
Expand Down
4 changes: 1 addition & 3 deletions trunk/kernel/trace/trace_boot.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,12 @@ void disable_boot_trace(void)

static int boot_trace_init(struct trace_array *tr)
{
int cpu;
boot_trace = tr;

if (!tr)
return 0;

for_each_cpu(cpu, cpu_possible_mask)
tracing_reset(tr, cpu);
tracing_reset_online_cpus(tr);

tracing_sched_switch_assign_trace(tr);
return 0;
Expand Down
4 changes: 1 addition & 3 deletions trunk/kernel/trace/trace_power.c
Original file line number Diff line number Diff line change
Expand Up @@ -144,14 +144,12 @@ static void power_trace_reset(struct trace_array *tr)

static int power_trace_init(struct trace_array *tr)
{
int cpu;
power_trace = tr;

trace_power_enabled = 1;
tracing_power_register();

for_each_cpu(cpu, cpu_possible_mask)
tracing_reset(tr, cpu);
tracing_reset_online_cpus(tr);
return 0;
}

Expand Down

0 comments on commit 7fd2640

Please sign in to comment.