aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace
diff options
context:
space:
mode:
authorOleg Nesterov <oleg@redhat.com>2013-03-28 13:01:04 -0400
committerOleg Nesterov <oleg@redhat.com>2013-04-13 09:31:59 -0400
commit07720b63a964851928fa5d8b00ee5270d66b94f7 (patch)
treea0f34bea6ac91b0444c48fc830b53b0139c0e746 /kernel/trace
parentdecc6bfb49d1eda6cec67d79b73a73fa3aaad6e5 (diff)
uprobes/tracing: Kill the pointless task_pt_regs() calls
uprobe_trace_func() and uprobe_perf_func() do not need task_pt_regs(), we already have "struct pt_regs *regs". Signed-off-by: Oleg Nesterov <oleg@redhat.com> Acked-by: Srikar Dronamraju <srikar@linux.vnet.ibm.com> Tested-by: Anton Arapov <anton@redhat.com>
Diffstat (limited to 'kernel/trace')
-rw-r--r--kernel/trace/trace_uprobe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/trace/trace_uprobe.c b/kernel/trace/trace_uprobe.c
index 8dad2a92dee9..af5b7735cebf 100644
--- a/kernel/trace/trace_uprobe.c
+++ b/kernel/trace/trace_uprobe.c
@@ -507,7 +507,7 @@ static int uprobe_trace_func(struct trace_uprobe *tu, struct pt_regs *regs)
507 return 0; 507 return 0;
508 508
509 entry = ring_buffer_event_data(event); 509 entry = ring_buffer_event_data(event);
510 entry->ip = instruction_pointer(task_pt_regs(current)); 510 entry->ip = instruction_pointer(regs);
511 data = (u8 *)&entry[1]; 511 data = (u8 *)&entry[1];
512 for (i = 0; i < tu->nr_args; i++) 512 for (i = 0; i < tu->nr_args; i++)
513 call_fetch(&tu->args[i].fetch, regs, data + tu->args[i].offset); 513 call_fetch(&tu->args[i].fetch, regs, data + tu->args[i].offset);
@@ -777,7 +777,7 @@ static int uprobe_perf_func(struct trace_uprobe *tu, struct pt_regs *regs)
777 if (!entry) 777 if (!entry)
778 goto out; 778 goto out;
779 779
780 entry->ip = instruction_pointer(task_pt_regs(current)); 780 entry->ip = instruction_pointer(regs);
781 data = (u8 *)&entry[1]; 781 data = (u8 *)&entry[1];
782 for (i = 0; i < tu->nr_args; i++) 782 for (i = 0; i < tu->nr_args; i++)
783 call_fetch(&tu->args[i].fetch, regs, data + tu->args[i].offset); 783 call_fetch(&tu->args[i].fetch, regs, data + tu->args[i].offset);