LTTng : Linux Trace Toolkit Next Generation 0.5.95, kernel 2.6.17
Subsystems (4)
PATCH 3/16 LTTng : Linux Trace Toolkit Next Generation 0.5.95, kernel 2.6.17
3- RelayFS modifications to apply some enhancements (may eventually be merged and/or partially fulfilled by debugfs) patch-2.6.17-lttng-0.5.95-relayfs.diff
OpenPGP public key: http://krystal.dyndns.org:8080/key/compudj.gpg Key fingerprint: 8CD5 52C3 8E3C 4140 715F BA06 3F25 A8FE 3BAE 9A68
Documentation/ioctl-number.txt +3 -0
@@ -190,3 +190,6 @@ Code Seq# Include File Comments <mailto:[email protected]> 0xF3 00-3F video/sisfb.h sisfb (in development) <mailto:[email protected]> +0xF4 00-3F linux/relayfs_fs.h RelayFS + <mailto:[email protected]> +
include/linux/relay.h +67 -1
138 lines not on this page · raw message
fs/relayfs/Makefile new file +4 -0
@@ -0,0 +1,4 @@ +obj-$(CONFIG_RELAY) += relayfs.o + +relayfs-y := relay.o inode.o buffers.o +
fs/relayfs/inode.c new file +591 -0
591 lines not on this page · raw message
fs/relayfs/relay.c new file +560 -0
560 lines not on this page · raw message
fs/relayfs/buffers.c new file +190 -0
190 lines not on this page · raw message
fs/relayfs/buffers.h new file +9 -0
@@ -0,0 +1,9 @@ +#ifndef _BUFFERS_H +#define _BUFFERS_H + +extern int relay_mmap_buf (struct rchan_buf *buf,struct vm_area_struct *vma); +extern struct rchan_buf *relay_create_buf (struct rchan *chan); +extern void relay_destroy_buf (struct rchan_buf *buf); +extern void relay_remove_buf (struct kref *kref); + +#endif /* _BUFFERS_H */
fs/relayfs/relay.h new file +12 -0
@@ -0,0 +1,12 @@ +#ifndef _RELAY_H +#define _RELAY_H + +extern int relayfs_remove (struct dentry *dentry); +extern int relay_buf_empty (struct rchan_buf *buf); +extern int relay_buf_full (struct rchan_buf *buf); +extern void relay_destroy_channel (struct kref *kref); +extern void setup_fileops (struct rchan *chan, +struct file_operations *fops, +struct module *client_module); + +#endif /* _RELAY_H */
fs/Makefile +1 -0
@@ -102,3 +102,4 @@ obj-$(CONFIG_HOSTFS) += hostfs/ obj-$(CONFIG_HPPFS) += hppfs/ obj-$(CONFIG_DEBUG_FS) += debugfs/ obj-$(CONFIG_OCFS2_FS) += ocfs2/ +obj-$(CONFIG_RELAY) += relayfs/
block/blktrace.c +1 -1
@@ -330,7 +330,7 @@ static int blk_trace_setup(request_queueif (!bt->dropped_file) goto err; - bt->rchan =relay_open ("trace" , dir, buts.buf_size, buts.buf_nr, &blk_relay_callbacks); + bt->rchan =relay_open ("trace" , dir, buts.buf_size, buts.buf_nr,0 ,THIS_MODULE , &blk_relay_callbacks,NULL ,NULL ,NULL );if (!bt->rchan) goto err; bt->rchan->private_data = bt;
fs/Makefile +0 -0