diff options
author | Xiao Guangrong <xiaoguangrong@cn.fujitsu.com> | 2009-07-09 04:22:22 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-07-10 05:55:28 -0400 |
commit | dc82ec98a4727fd51b77e92d05fe7d2db3dcc11c (patch) | |
tree | c66955e01458db480185c963304a60b6fd77c72c /kernel/trace/trace.h | |
parent | c5cb183608167c744cb28bbd85884be5a4ce875d (diff) |
tracing/filter: Remove empty subsystem and its directory
Remove empty subsystem and its directory when module unload.
Before patch:
# rmmod trace-events-sample.ko
# ls sample
enable filter
After patch:
# rmmod trace-events-sample.ko
# ls sample
ls: cannot access sample: No such file or directory
Signed-off-by: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Acked-by: Tom Zanussi <tzanussi@gmail.com>
Reviewed-by: Li Zefan <lizf@cn.fujitsu.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
LKML-Reference: <4A55A8BE.9010707@cn.fujitsu.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/trace/trace.h')
-rw-r--r-- | kernel/trace/trace.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h index 52eb0d8dcd75..94305c7bc11c 100644 --- a/kernel/trace/trace.h +++ b/kernel/trace/trace.h | |||
@@ -757,6 +757,7 @@ struct event_subsystem { | |||
757 | const char *name; | 757 | const char *name; |
758 | struct dentry *entry; | 758 | struct dentry *entry; |
759 | void *filter; | 759 | void *filter; |
760 | int nr_events; | ||
760 | }; | 761 | }; |
761 | 762 | ||
762 | struct filter_pred; | 763 | struct filter_pred; |