X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=tests%2Fmarkers%2Ftest-asm.c;fp=tests%2Fmarkers%2Ftest-asm.c;h=0000000000000000000000000000000000000000;hb=a219d12930979a81f43a3a3f5499b2bd00141a84;hp=a086135fafd894c299d7a5a2e524880d7f0cf588;hpb=31efe1f8304f09a4f4139c387a98d3215cd423c9;p=lttv.git diff --git a/tests/markers/test-asm.c b/tests/markers/test-asm.c deleted file mode 100644 index a086135f..00000000 --- a/tests/markers/test-asm.c +++ /dev/null @@ -1,52 +0,0 @@ -/* test-micro-loop-marker.c - * - * Execute a marker in a loop - */ - -#include -#include -#include -#include -#include -#include -#include - -#define NR_LOOPS 10000 - - -#define COPYLEN 4096 -char test[COPYLEN]; -char src[COPYLEN] = "aaaaaaaaaaaa"; - -struct proc_dir_entry *pentry = NULL; - -static int my_open(struct inode *inode, struct file *file) -{ - MARK(subsys_mark1, "%d %p", 1, NULL); - - return -EPERM; -} - - -static struct file_operations my_operations = { - .open = my_open, -}; - -int init_module(void) -{ - pentry = create_proc_entry("testmark", 0444, NULL); - if (pentry) - pentry->proc_fops = &my_operations; - - return 0; -} - -void cleanup_module(void) -{ - remove_proc_entry("testmark", NULL); -} - -MODULE_LICENSE("GPL"); -MODULE_AUTHOR("Mathieu Desnoyers"); -MODULE_DESCRIPTION("Marker Test"); -