1 /* test-micro-loop-marker.c
3 * Execute a marker in a loop
6 #include <linux/marker.h>
7 #include <linux/module.h>
8 #include <linux/proc_fs.h>
9 #include <linux/sched.h>
10 #include <asm/ptrace.h>
11 #include <linux/timex.h>
12 #include <linux/string.h>
14 #define NR_LOOPS 10000
19 char src
[COPYLEN
] = "aaaaaaaaaaaa";
21 struct proc_dir_entry
*pentry
= NULL
;
23 static int my_open(struct inode
*inode
, struct file
*file
)
25 MARK(subsys_mark1
, "%d %p", 1, NULL
);
31 static struct file_operations my_operations
= {
37 pentry
= create_proc_entry("testmark", 0444, NULL
);
39 pentry
->proc_fops
= &my_operations
;
44 void cleanup_module(void)
46 remove_proc_entry("testmark", NULL
);
49 MODULE_LICENSE("GPL");
50 MODULE_AUTHOR("Mathieu Desnoyers");
51 MODULE_DESCRIPTION("Marker Test");