[ltt-dev] [PATCH v2 2/3] Export ltt_root_dentry for ltt_channel_control and other
Zhaolei
zhaolei at cn.fujitsu.com
Mon Nov 10 07:38:54 EST 2008
ltt_channel_control and other controls in future need to create
subdir in ltt's debugfs dir.
Signed-off-by: Zhao Lei <zhaolei at cn.fujitsu.com>
---
include/linux/ltt-relay.h | 5 +++++
ltt/ltt-relay-locked.c | 4 +++-
ltt/ltt-relay.c | 4 +++-
3 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/include/linux/ltt-relay.h b/include/linux/ltt-relay.h
index 1225a6a..7f29eb1 100644
--- a/include/linux/ltt-relay.h
+++ b/include/linux/ltt-relay.h
@@ -175,5 +175,10 @@ extern void ltt_relay_close(struct rchan *chan);
*/
extern const struct file_operations ltt_relay_file_operations;
+/*
+ * exported ltt's debugfs dir for other control interface module
+ */
+extern struct dentry *ltt_root_dentry;
+
#endif /* _LINUX_LTT_RELAY_H */
diff --git a/ltt/ltt-relay-locked.c b/ltt/ltt-relay-locked.c
index c40bdb2..0d9919a 100644
--- a/ltt/ltt-relay-locked.c
+++ b/ltt/ltt-relay-locked.c
@@ -122,7 +122,9 @@ static inline int last_tsc_overflow(struct ltt_channel_buf_struct *ltt_buf,
}
#endif
-static struct dentry *ltt_root_dentry;
+struct dentry *ltt_root_dentry;
+EXPORT_SYMBOL_GPL(ltt_root_dentry);
+
static struct file_operations ltt_file_operations;
/*
diff --git a/ltt/ltt-relay.c b/ltt/ltt-relay.c
index c6e1d52..358374f 100644
--- a/ltt/ltt-relay.c
+++ b/ltt/ltt-relay.c
@@ -131,7 +131,9 @@ static inline int last_tsc_overflow(struct ltt_channel_buf_struct *ltt_buf,
}
#endif
-static struct dentry *ltt_root_dentry;
+struct dentry *ltt_root_dentry;
+EXPORT_SYMBOL_GPL(ltt_root_dentry);
+
static struct file_operations ltt_file_operations;
/*
--
1.5.5.3
More information about the lttng-dev
mailing list