From: compudj Date: Wed, 6 Sep 2006 14:10:52 +0000 (+0000) Subject: fix usertrace and genevent for printf alignment X-Git-Tag: v0.12.20~1411 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=faac3f9485522230ca9cbd123cfb59a8a1a78838;p=lttv.git fix usertrace and genevent for printf alignment git-svn-id: http://ltt.polymtl.ca/svn@2078 04897980-b3bd-0310-b5e0-8ef037075253 --- 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"); +