Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 100467
b: refs/heads/master
c: 2577046
h: refs/heads/master
i:
  100465: 5eeacdd
  100463: 373352e
v: v3
  • Loading branch information
Ingo Molnar authored and Thomas Gleixner committed May 23, 2008
1 parent fc651f3 commit fb1970f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5e3ca0ec76fce92daa4eed0d02de9c79b1fe3920
refs/heads/master: 2577046740fe6d77864128c6187c11125c2449ea
6 changes: 6 additions & 0 deletions trunk/kernel/trace/trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -1965,7 +1965,9 @@ tracing_read_pipe(struct file *filp, char __user *ubuf,
static cpumask_t mask;
static int start;
unsigned long flags;
#ifdef CONFIG_FTRACE
int ftrace_save;
#endif
int read = 0;
int cpu;
int len;
Expand Down Expand Up @@ -2044,8 +2046,10 @@ tracing_read_pipe(struct file *filp, char __user *ubuf,

cpus_clear(mask);
local_irq_save(flags);
#ifdef CONFIG_FTRACE
ftrace_save = ftrace_enabled;
ftrace_enabled = 0;
#endif
smp_wmb();
for_each_possible_cpu(cpu) {
data = iter->tr->data[cpu];
Expand Down Expand Up @@ -2087,7 +2091,9 @@ tracing_read_pipe(struct file *filp, char __user *ubuf,
data = iter->tr->data[cpu];
atomic_dec(&data->disabled);
}
#ifdef CONFIG_FTRACE
ftrace_enabled = ftrace_save;
#endif
local_irq_restore(flags);

/* Now copy what we have to the user */
Expand Down

0 comments on commit fb1970f

Please sign in to comment.