summaryrefslogtreecommitdiff
path: root/kernel/trace/trace.h
diff options
context:
space:
mode:
authorSteven Rostedt (Red Hat) <srostedt@redhat.com>2013-03-06 20:27:24 (GMT)
committerSteven Rostedt <rostedt@goodmis.org>2013-03-15 04:35:51 (GMT)
commita695cb5816228f86576f5f5c6809fdf8ed382ece (patch)
tree922f12a1a2fab1efa16f74216d6883deeefd1b74 /kernel/trace/trace.h
parent121aaee7b0a82605d33af200c7e9ebab6fd6e444 (diff)
downloadlinux-a695cb5816228f86576f5f5c6809fdf8ed382ece.tar.xz
tracing: Prevent deleting instances when they are being read
Add a ref count to the trace_array structure and prevent removal of instances that have open descriptors. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/trace.h')
-rw-r--r--kernel/trace/trace.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h
index 1a456c2..f493182 100644
--- a/kernel/trace/trace.h
+++ b/kernel/trace/trace.h
@@ -219,6 +219,7 @@ struct trace_array {
struct list_head systems;
struct list_head events;
struct task_struct *waiter;
+ int ref;
};
enum {