aboutsummaryrefslogtreecommitdiff
path: root/kernel/trace/trace.h
diff options
context:
space:
mode:
authorGravatar Oleg Nesterov <oleg@redhat.com> 2013-03-29 18:26:51 +0100
committerGravatar Oleg Nesterov <oleg@redhat.com> 2013-04-13 15:32:01 +0200
commit457d1772f1c1bcf37b2ae7fc8f1d6f303d1d5cf9 (patch)
tree49da165c316ec7086272994ede7ac96e334d6850 /kernel/trace/trace.h
parentuprobes/tracing: Kill the pointless local_save_flags/preempt_count calls (diff)
downloadlinux-457d1772f1c1bcf37b2ae7fc8f1d6f303d1d5cf9.tar.gz
linux-457d1772f1c1bcf37b2ae7fc8f1d6f303d1d5cf9.tar.bz2
linux-457d1772f1c1bcf37b2ae7fc8f1d6f303d1d5cf9.zip
uprobes/tracing: Generalize struct uprobe_trace_entry_head
struct uprobe_trace_entry_head has a single member for reporting, "unsigned long ip". If we want to support uretprobes we need to create another struct which has "func" and "ret_ip" and duplicate a lot of functions, like trace_kprobe.c does. To avoid this copy-and-paste horror we turn ->ip into ->vaddr[] and add couple of trivial helpers to calculate sizeof/data. This uglifies the code a bit, but this allows us to avoid a lot more complications later, when we add the support for ret-probes. 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/trace.h')
-rw-r--r--kernel/trace/trace.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h
index 2081971367ea..8bed1dfcb938 100644
--- a/kernel/trace/trace.h
+++ b/kernel/trace/trace.h
@@ -103,11 +103,6 @@ struct kretprobe_trace_entry_head {
unsigned long ret_ip;
};
-struct uprobe_trace_entry_head {
- struct trace_entry ent;
- unsigned long ip;
-};
-
/*
* trace_flag_type is an enumeration that holds different
* states when a trace occurs. These are: