Also add .gitignore.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
--- /dev/null
+#
+# NOTE! Don't add files that are generated in specific
+# subdirectories here. Add them in the ".gitignore" file
+# in that subdirectory instead.
+#
+# NOTE! Please use 'git ls-files -i --exclude-standard'
+# command after changing this file, to see if there are
+# any tracked files which get ignored after the change.
+#
+# Normal rules
+#
+.*
+*.o
+*.o.*
+*.a
+*.s
+*.ko
+*.so
+*.so.dbg
+*.mod.c
+*.i
+*.lst
+*.symtypes
+*.order
+modules.builtin
+*.elf
+*.bin
+*.gz
+*.bz2
+*.lzma
+*.lzo
+*.patch
+*.gcno
+
+#
+# Top-level generic files
+#
+/tags
+/TAGS
+/linux
+/vmlinux
+/vmlinuz
+/System.map
+/Module.markers
+/Module.symvers
+
+#
+# git files that we don't want to ignore even it they are dot-files
+#
+!.gitignore
+!.mailmap
+
+#
+# Generated include files
+#
+include/config
+include/linux/version.h
+include/generated
+
+# stgit generated dirs
+patches-*
+
+# quilt's files
+patches
+series
+
+# cscope files
+cscope.*
+ncscope.*
+
+# gnu global files
+GPATH
+GRTAGS
+GSYMS
+GTAGS
+
+*.orig
+*~
+\#*#
obj-m += ltt-relay.o
ltt-relay-objs := ltt-relay-lockless.o ltt-relay-alloc.o ltt-relay-splice.o \
- ltt-relay-vfs.o ltt-event-header.o
+ ltt-relay-vfs.o ltt-event-header.o ltt-ascii.o \
+ ltt-serialize.o ltt-type-serializer.o
-obj-m += ltt-serialize.o
obj-m += ltt-statedump.o
-obj-m += ltt-type-serializer.o
obj-m += ltt-trace-control.o
obj-m += ltt-userspace-event.o
obj-m += ltt-filter.o
obj-m += ltt-kprobes.o
obj-m += probes/
-obj-m += ltt-ascii.o
endif
}
EXPORT_SYMBOL_GPL(ltt_ascii_remove_dir);
-static __init int ltt_ascii_init(void)
+__init int ltt_ascii_init(void)
{
ltt_ascii_dir_dentry = debugfs_create_dir(LTT_ASCII, get_ltt_root());
put_ltt_root();
return ltt_ascii_dir_dentry ? 0 : -EFAULT;
}
-static __exit void ltt_ascii_exit(void)
+__exit void ltt_ascii_exit(void)
{
debugfs_remove(ltt_ascii_dir_dentry);
}
-module_init(ltt_ascii_init);
-module_exit(ltt_ascii_exit);
-
MODULE_LICENSE("GPL and additional rights");
MODULE_AUTHOR("Lai Jiangshan@FNST and Mathieu Desnoyers");
MODULE_DESCRIPTION("Linux Trace Toolkit Next Generation Ascii Converter");
{
hotcpu_notifier(ltt_relay_hotcpu_callback, 5);
ltt_relay_init();
+ ltt_ascii_init();
return 0;
}
static void __exit ltt_relay_alloc_exit(void)
{
+ ltt_ascii_exit();
ltt_relay_exit();
}
unsigned int flags);
loff_t ltt_relay_no_llseek(struct file *file, loff_t offset, int origin);
+extern int ltt_ascii_init(void);
+extern void ltt_ascii_exit(void);
+
#endif /* _LINUX_LTT_RELAY_H */