Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 366054
b: refs/heads/master
c: 515619f
h: refs/heads/master
v: v3
  • Loading branch information
Oleg Nesterov committed Apr 15, 2013
1 parent 853e05a commit 574f6f9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 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: 32520b2c695b23221751eb09360a6a3dd3105b52
refs/heads/master: 515619f209114697fabd21eed1623bfa69746815
5 changes: 4 additions & 1 deletion trunk/kernel/trace/trace_uprobe.c
Original file line number Diff line number Diff line change
Expand Up @@ -820,6 +820,10 @@ static void uprobe_perf_print(struct trace_uprobe *tu,
return;

preempt_disable();
head = this_cpu_ptr(call->perf_events);
if (hlist_empty(head))
goto out;

entry = perf_trace_buf_prepare(size, call->event.type, regs, &rctx);
if (!entry)
goto out;
Expand All @@ -836,7 +840,6 @@ static void uprobe_perf_print(struct trace_uprobe *tu,
for (i = 0; i < tu->nr_args; i++)
call_fetch(&tu->args[i].fetch, regs, data + tu->args[i].offset);

head = this_cpu_ptr(call->perf_events);
perf_trace_buf_submit(entry, size, rctx, 0, 1, regs, head, NULL);
out:
preempt_enable();
Expand Down

0 comments on commit 574f6f9

Please sign in to comment.