Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 366053
b: refs/heads/master
c: 32520b2
h: refs/heads/master
i:
  366051: 047e837
v: v3
  • Loading branch information
Oleg Nesterov committed Apr 13, 2013
1 parent caeaac6 commit 853e05a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 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: 4ee5a52ed6301d0afa56cc995ef2c3795f45e801
refs/heads/master: 32520b2c695b23221751eb09360a6a3dd3105b52
8 changes: 3 additions & 5 deletions trunk/kernel/trace/trace_uprobe.c
Original file line number Diff line number Diff line change
Expand Up @@ -811,7 +811,6 @@ static void uprobe_perf_print(struct trace_uprobe *tu,
struct ftrace_event_call *call = &tu->call;
struct uprobe_trace_entry_head *entry;
struct hlist_head *head;
unsigned long ip;
void *data;
int size, rctx, i;

Expand All @@ -825,21 +824,20 @@ static void uprobe_perf_print(struct trace_uprobe *tu,
if (!entry)
goto out;

ip = instruction_pointer(regs);
if (is_ret_probe(tu)) {
entry->vaddr[0] = func;
entry->vaddr[1] = ip;
entry->vaddr[1] = instruction_pointer(regs);
data = DATAOF_TRACE_ENTRY(entry, true);
} else {
entry->vaddr[0] = ip;
entry->vaddr[0] = instruction_pointer(regs);
data = DATAOF_TRACE_ENTRY(entry, false);
}

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, ip, 1, regs, head, NULL);
perf_trace_buf_submit(entry, size, rctx, 0, 1, regs, head, NULL);
out:
preempt_enable();
}
Expand Down

0 comments on commit 853e05a

Please sign in to comment.