5 #include <linux/marker.h>
6 #include <linux/module.h>
7 #include <linux/proc_fs.h>
8 #include <linux/sched.h>
9 #include <asm/ptrace.h>
13 struct proc_dir_entry
*pentry
= NULL
;
15 static inline void test(struct pt_regs
* regs
)
17 MARK(kernel_debug_test
, "%d %ld %p", 2, regs
->eip
, regs
);
20 static int my_open(struct inode
*inode
, struct file
*file
)
25 MARK(subsys_mark1
, "%d", 1);
29 MARK(subsys_mark2
, "%d %s", 2, "blah2");
30 MARK(subsys_mark3
, "%d %s %s", x
, "blah3", "blah5");
38 static struct file_operations my_operations
= {
46 pentry
= create_proc_entry("testmark", 0444, NULL
);
48 pentry
->proc_fops
= &my_operations
;
50 marker_list_probe(NULL
);
55 void cleanup_module(void)
57 remove_proc_entry("testmark", NULL
);
60 MODULE_LICENSE("GPL");
61 MODULE_AUTHOR("Mathieu Desnoyers");
62 MODULE_DESCRIPTION("Marker Test");