Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 182293
b: refs/heads/master
c: d931369
h: refs/heads/master
i:
  182291: 4ad6621
v: v3
  • Loading branch information
Steven Rostedt authored and Steven Rostedt committed Jan 6, 2010
1 parent 1ee09fe commit fd4798c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 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: dfaa9e2c5707b2c217c0121aac796e0fa3051482
refs/heads/master: d931369b74b3d6f2044f595af6f3dd074f65d9cf
8 changes: 6 additions & 2 deletions trunk/kernel/trace/trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -1392,8 +1392,10 @@ int trace_vbprintk(unsigned long ip, const char *fmt, va_list args)
entry->fmt = fmt;

memcpy(entry->buf, trace_buf, sizeof(u32) * len);
if (!filter_check_discard(call, entry, buffer, event))
if (!filter_check_discard(call, entry, buffer, event)) {
ring_buffer_unlock_commit(buffer, event);
ftrace_trace_stack(buffer, flags, 6, pc);
}

out_unlock:
arch_spin_unlock(&trace_buf_lock);
Expand Down Expand Up @@ -1466,8 +1468,10 @@ int trace_array_vprintk(struct trace_array *tr,

memcpy(&entry->buf, trace_buf, len);
entry->buf[len] = '\0';
if (!filter_check_discard(call, entry, buffer, event))
if (!filter_check_discard(call, entry, buffer, event)) {
ring_buffer_unlock_commit(buffer, event);
ftrace_trace_stack(buffer, irq_flags, 6, pc);
}

out_unlock:
arch_spin_unlock(&trace_buf_lock);
Expand Down

0 comments on commit fd4798c

Please sign in to comment.