diff options
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/trace/trace_uprobe.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/kernel/trace/trace_uprobe.c b/kernel/trace/trace_uprobe.c index 2d08bea638a4..37ccb72f0f3b 100644 --- a/kernel/trace/trace_uprobe.c +++ b/kernel/trace/trace_uprobe.c | |||
@@ -811,7 +811,6 @@ static void uprobe_perf_print(struct trace_uprobe *tu, | |||
811 | struct ftrace_event_call *call = &tu->call; | 811 | struct ftrace_event_call *call = &tu->call; |
812 | struct uprobe_trace_entry_head *entry; | 812 | struct uprobe_trace_entry_head *entry; |
813 | struct hlist_head *head; | 813 | struct hlist_head *head; |
814 | unsigned long ip; | ||
815 | void *data; | 814 | void *data; |
816 | int size, rctx, i; | 815 | int size, rctx, i; |
817 | 816 | ||
@@ -825,13 +824,12 @@ static void uprobe_perf_print(struct trace_uprobe *tu, | |||
825 | if (!entry) | 824 | if (!entry) |
826 | goto out; | 825 | goto out; |
827 | 826 | ||
828 | ip = instruction_pointer(regs); | ||
829 | if (is_ret_probe(tu)) { | 827 | if (is_ret_probe(tu)) { |
830 | entry->vaddr[0] = func; | 828 | entry->vaddr[0] = func; |
831 | entry->vaddr[1] = ip; | 829 | entry->vaddr[1] = instruction_pointer(regs); |
832 | data = DATAOF_TRACE_ENTRY(entry, true); | 830 | data = DATAOF_TRACE_ENTRY(entry, true); |
833 | } else { | 831 | } else { |
834 | entry->vaddr[0] = ip; | 832 | entry->vaddr[0] = instruction_pointer(regs); |
835 | data = DATAOF_TRACE_ENTRY(entry, false); | 833 | data = DATAOF_TRACE_ENTRY(entry, false); |
836 | } | 834 | } |
837 | 835 | ||
@@ -839,7 +837,7 @@ static void uprobe_perf_print(struct trace_uprobe *tu, | |||
839 | call_fetch(&tu->args[i].fetch, regs, data + tu->args[i].offset); | 837 | call_fetch(&tu->args[i].fetch, regs, data + tu->args[i].offset); |
840 | 838 | ||
841 | head = this_cpu_ptr(call->perf_events); | 839 | head = this_cpu_ptr(call->perf_events); |
842 | perf_trace_buf_submit(entry, size, rctx, ip, 1, regs, head, NULL); | 840 | perf_trace_buf_submit(entry, size, rctx, 0, 1, regs, head, NULL); |
843 | out: | 841 | out: |
844 | preempt_enable(); | 842 | preempt_enable(); |
845 | } | 843 | } |