5 #include <linux/marker.h>
6 #include <linux/module.h>
7 #include <linux/proc_fs.h>
8 #include <linux/sched.h>
12 struct proc_dir_entry
*pentry
= NULL
;
14 static int my_open(struct inode
*inode
, struct file
*file
)
19 MARK(subsys_mark1
, "%d", 1);
23 MARK(subsys_mark2
, "%d %s", 2, "blah2");
24 MARK(subsys_mark3
, "%d %s %s", x
, "blah3", "blah5");
30 static struct file_operations my_operations
= {
36 pentry
= create_proc_entry("testmark", 0444, NULL
);
38 pentry
->proc_fops
= &my_operations
;
42 void cleanup_module(void)
44 remove_proc_entry("testmark", NULL
);
47 MODULE_LICENSE("GPL");
48 MODULE_AUTHOR("Mathieu Desnoyers");
49 MODULE_DESCRIPTION("Marker Test");