diff options
author | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2017-04-10 22:30:05 -0400 |
---|---|---|
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2017-04-20 22:06:45 -0400 |
commit | b5f081b563a6cdcb85a543df8c851951a8978275 (patch) | |
tree | b9ab66a67e30d9f63fef8cb33da1d0e8893b1b15 /kernel/trace/trace.h | |
parent | 04ec7bb642b77374b53731b795b5654b5aff1c00 (diff) | |
download | op-kernel-dev-b5f081b563a6cdcb85a543df8c851951a8978275.zip op-kernel-dev-b5f081b563a6cdcb85a543df8c851951a8978275.tar.gz |
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.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h index 68ff25e..3907618 100644 --- a/kernel/trace/trace.h +++ b/kernel/trace/trace.h @@ -943,11 +943,14 @@ struct ftrace_probe_ops { struct list_head list; void (*func)(unsigned long ip, unsigned long parent_ip, + struct trace_array *tr, struct ftrace_probe_ops *ops, void **data); int (*init)(struct ftrace_probe_ops *ops, + struct trace_array *tr, unsigned long ip, void *data); void (*free)(struct ftrace_probe_ops *ops, + struct trace_array *tr, unsigned long ip, void **data); int (*print)(struct seq_file *m, unsigned long ip, |