From faac3f9485522230ca9cbd123cfb59a8a1a78838 Mon Sep 17 00:00:00 2001 From: compudj Date: Wed, 6 Sep 2006 14:10:52 +0000 Subject: [PATCH] fix usertrace and genevent for printf alignment git-svn-id: http://ltt.polymtl.ca/svn@2078 04897980-b3bd-0310-b5e0-8ef037075253 --- tests/kernel/test-irqdis.c | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 tests/kernel/test-irqdis.c diff --git a/tests/kernel/test-irqdis.c b/tests/kernel/test-irqdis.c new file mode 100644 index 00000000..02de4989 --- /dev/null +++ b/tests/kernel/test-irqdis.c @@ -0,0 +1,35 @@ +/* test-time-probe.c + * + * Test multiple kmallocs. + */ + + +#include +#include +#include +#include + +static int ltt_test_init(void) +{ + unsigned long flags; + + printk(KERN_ALERT "test init\n"); + + local_irq_save(flags); + msleep(1000); + local_irq_restore(flags); + return -1; +} + +static void ltt_test_exit(void) +{ + printk(KERN_ALERT "test end\n"); +} + +module_init(ltt_test_init) +module_exit(ltt_test_exit) + +MODULE_LICENSE("GPL"); +MODULE_AUTHOR("Mathieu Desnoyers"); +MODULE_DESCRIPTION("Linux Trace Toolkit Test"); + -- 2.34.1