Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 146065
b: refs/heads/master
c: cd891ae
h: refs/heads/master
i:
  146063: 6558792
v: v3
  • Loading branch information
Steven Rostedt authored and Steven Rostedt committed Apr 28, 2009
1 parent 13e2818 commit 6d6b53b
Show file tree
Hide file tree
Showing 2 changed files with 7 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: 701970b3a83cc639c1ec8fc6f40a7871cb99426f
refs/heads/master: cd891ae0305601bdb4d2e7e85282961c4ff256cd
9 changes: 6 additions & 3 deletions trunk/kernel/trace/trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -4114,7 +4114,8 @@ trace_printk_seq(struct trace_seq *s)

static void __ftrace_dump(bool disable_tracing)
{
static DEFINE_SPINLOCK(ftrace_dump_lock);
static raw_spinlock_t ftrace_dump_lock =
(raw_spinlock_t)__RAW_SPIN_LOCK_UNLOCKED;
/* use static because iter can be a bit big for the stack */
static struct trace_iterator iter;
unsigned int old_userobj;
Expand All @@ -4123,7 +4124,8 @@ static void __ftrace_dump(bool disable_tracing)
int cnt = 0, cpu;

/* only one dump */
spin_lock_irqsave(&ftrace_dump_lock, flags);
local_irq_save(flags);
__raw_spin_lock(&ftrace_dump_lock);
if (dump_ran)
goto out;

Expand Down Expand Up @@ -4195,7 +4197,8 @@ static void __ftrace_dump(bool disable_tracing)
}

out:
spin_unlock_irqrestore(&ftrace_dump_lock, flags);
__raw_spin_unlock(&ftrace_dump_lock);
local_irq_restore(flags);
}

/* By default: disable tracing after the dump */
Expand Down

0 comments on commit 6d6b53b

Please sign in to comment.