Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 349847
b: refs/heads/master
c: a541641
h: refs/heads/master
i:
  349845: 5f110c0
  349843: cb17c00
  349839: 0a82a0c
v: v3
  • Loading branch information
Hiraku Toyooka authored and Steven Rostedt committed Jan 21, 2013
1 parent 9cb1b38 commit 8459346
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: 6aea49cb5f3001a8275bf9c9f586ec3eb39af194
refs/heads/master: a54164114b96b4693b42cdb553260eec41ea4393
6 changes: 6 additions & 0 deletions trunk/kernel/trace/trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -922,6 +922,9 @@ void tracing_reset(struct trace_array *tr, int cpu)
{
struct ring_buffer *buffer = tr->buffer;

if (!buffer)
return;

ring_buffer_record_disable(buffer);

/* Make sure all commits have finished */
Expand All @@ -936,6 +939,9 @@ void tracing_reset_online_cpus(struct trace_array *tr)
struct ring_buffer *buffer = tr->buffer;
int cpu;

if (!buffer)
return;

ring_buffer_record_disable(buffer);

/* Make sure all commits have finished */
Expand Down

0 comments on commit 8459346

Please sign in to comment.