diff options
author | Xiao Guangrong <xiaoguangrong@cn.fujitsu.com> | 2009-07-09 16:22:22 +0800 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-07-10 11:55:28 +0200 |
commit | dc82ec98a4727fd51b77e92d05fe7d2db3dcc11c (patch) | |
tree | c66955e01458db480185c963304a60b6fd77c72c /kernel/trace/trace.h | |
parent | c5cb183608167c744cb28bbd85884be5a4ce875d (diff) | |
download | op-kernel-dev-dc82ec98a4727fd51b77e92d05fe7d2db3dcc11c.zip op-kernel-dev-dc82ec98a4727fd51b77e92d05fe7d2db3dcc11c.tar.gz |
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 52eb0d8..94305c7 100644 --- a/kernel/trace/trace.h +++ b/kernel/trace/trace.h @@ -757,6 +757,7 @@ struct event_subsystem { const char *name; struct dentry *entry; void *filter; + int nr_events; }; struct filter_pred; |