Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 228947
b: refs/heads/master
c: 1dbd195
h: refs/heads/master
i:
  228945: 54f7602
  228943: 4ea96bd
v: v3
  • Loading branch information
Li Zefan authored and Steven Rostedt committed Jan 8, 2011
1 parent 89d67e2 commit a07adce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 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: bd1c8b22b7b81c6f6c4f5c19cb2387da3d02fb0f
refs/heads/master: 1dbd1951f39e13da579ffe879cce19586d0462de
6 changes: 2 additions & 4 deletions trunk/kernel/trace/trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -1313,12 +1313,10 @@ ftrace_trace_userstack(struct ring_buffer *buffer, unsigned long flags, int pc)

__this_cpu_inc(user_stack_count);



event = trace_buffer_lock_reserve(buffer, TRACE_USER_STACK,
sizeof(*entry), flags, pc);
if (!event)
return;
goto out_drop_count;
entry = ring_buffer_event_data(event);

entry->tgid = current->tgid;
Expand All @@ -1333,8 +1331,8 @@ ftrace_trace_userstack(struct ring_buffer *buffer, unsigned long flags, int pc)
if (!filter_check_discard(call, entry, buffer, event))
ring_buffer_unlock_commit(buffer, event);

out_drop_count:
__this_cpu_dec(user_stack_count);

out:
preempt_enable();
}
Expand Down

0 comments on commit a07adce

Please sign in to comment.