summaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace.h
diff options
context:
space:
mode:
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>2013-11-07 20:08:58 -0500
committerSteven Rostedt <rostedt@goodmis.org>2014-02-20 12:13:18 -0500
commitf20a580627f43e73e4e57cb37e3864080ca06088 (patch)
tree1cfdeae65fd8c3d8f94a6923fcc5716f70178400 /kernel/trace/trace.h
parent50512ab576e1ce29953c9259e1f36ce16f350f20 (diff)
downloadop-kernel-dev-f20a580627f43e73e4e57cb37e3864080ca06088.zip
op-kernel-dev-f20a580627f43e73e4e57cb37e3864080ca06088.tar.gz
ftrace: Allow instances to use function tracing
Allow instances (sub-buffers) to enable function tracing. Each instance will have its own function tracing capability. For now, instances will not have function stack tracing, or will they be able to pick and choose what functions they can trace. Picking and choosing their own functions will come later. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/trace.h')
-rw-r--r--kernel/trace/trace.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h
index 86915b2..35cca05 100644
--- a/kernel/trace/trace.h
+++ b/kernel/trace/trace.h
@@ -210,6 +210,11 @@ struct trace_array {
struct list_head events;
cpumask_var_t tracing_cpumask; /* only trace on set CPUs */
int ref;
+#ifdef CONFIG_FUNCTION_TRACER
+ struct ftrace_ops *ops;
+ /* function tracing enabled */
+ int function_enabled;
+#endif
};
enum {
OpenPOWER on IntegriCloud