Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 167095
b: refs/heads/master
c: 8f6e8a3
h: refs/heads/master
i:
  167093: 5f5365c
  167091: b96d1f9
  167087: 78b948b
v: v3
  • Loading branch information
Steven Rostedt authored and Steven Rostedt committed Oct 8, 2009
1 parent 77eb747 commit 5af20af
Show file tree
Hide file tree
Showing 2 changed files with 6 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: c8647b28726b09b087155417bb698e7b3789f8a0
refs/heads/master: 8f6e8a314ab37cadd72da5ace9027f2d04aba854
8 changes: 5 additions & 3 deletions trunk/kernel/trace/trace_branch.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ probe_likely_condition(struct ftrace_branch_data *f, int val, int expect)
struct trace_array *tr = branch_tracer;
struct ring_buffer_event *event;
struct trace_branch *entry;
struct ring_buffer *buffer;
unsigned long flags;
int cpu, pc;
const char *p;
Expand All @@ -54,7 +55,8 @@ probe_likely_condition(struct ftrace_branch_data *f, int val, int expect)
goto out;

pc = preempt_count();
event = trace_buffer_lock_reserve(tr->buffer, TRACE_BRANCH,
buffer = tr->buffer;
event = trace_buffer_lock_reserve(buffer, TRACE_BRANCH,
sizeof(*entry), flags, pc);
if (!event)
goto out;
Expand All @@ -74,8 +76,8 @@ probe_likely_condition(struct ftrace_branch_data *f, int val, int expect)
entry->line = f->line;
entry->correct = val == expect;

if (!filter_check_discard(call, entry, tr->buffer, event))
ring_buffer_unlock_commit(tr->buffer, event);
if (!filter_check_discard(call, entry, buffer, event))
ring_buffer_unlock_commit(buffer, event);

out:
atomic_dec(&tr->data[cpu]->disabled);
Expand Down

0 comments on commit 5af20af

Please sign in to comment.