aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace.h
diff options
context:
space:
mode:
authorSteven Rostedt (VMware) <rostedt@goodmis.org>2017-04-10 22:30:05 -0400
committerSteven Rostedt (VMware) <rostedt@goodmis.org>2017-04-20 22:06:45 -0400
commitb5f081b563a6cdcb85a543df8c851951a8978275 (patch)
treeb9ab66a67e30d9f63fef8cb33da1d0e8893b1b15 /kernel/trace/trace.h
parent04ec7bb642b77374b53731b795b5654b5aff1c00 (diff)
tracing: Pass the trace_array into ftrace_probe_ops functions
Pass the trace_array associated to a ftrace_probe_ops into the probe_ops func(), init() and free() functions. The trace_array is the descriptor that describes a tracing instance. This will help create the infrastructure that will allow having function probes unique to tracing instances. Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/trace.h')
-rw-r--r--kernel/trace/trace.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h
index 68ff25e4cb19..390761804886 100644
--- a/kernel/trace/trace.h
+++ b/kernel/trace/trace.h
@@ -943,11 +943,14 @@ struct ftrace_probe_ops {
943 struct list_head list; 943 struct list_head list;
944 void (*func)(unsigned long ip, 944 void (*func)(unsigned long ip,
945 unsigned long parent_ip, 945 unsigned long parent_ip,
946 struct trace_array *tr,
946 struct ftrace_probe_ops *ops, 947 struct ftrace_probe_ops *ops,
947 void **data); 948 void **data);
948 int (*init)(struct ftrace_probe_ops *ops, 949 int (*init)(struct ftrace_probe_ops *ops,
950 struct trace_array *tr,
949 unsigned long ip, void *data); 951 unsigned long ip, void *data);
950 void (*free)(struct ftrace_probe_ops *ops, 952 void (*free)(struct ftrace_probe_ops *ops,
953 struct trace_array *tr,
951 unsigned long ip, void **data); 954 unsigned long ip, void **data);
952 int (*print)(struct seq_file *m, 955 int (*print)(struct seq_file *m,
953 unsigned long ip, 956 unsigned long ip,