convert from svn repository: remove tags directory
[lttv.git] / trunk / tests / kernel / test-showval.c
CommitLineData
f211bc6c 1/* test-slub.c
2 *
3 * Compare local cmpxchg with irq disable / enable with cmpxchg_local for slub.
4 */
5
6
7#include <linux/jiffies.h>
8#include <linux/compiler.h>
9#include <linux/init.h>
10#include <linux/module.h>
11#include <linux/calc64.h>
12#include <asm/timex.h>
13#include <asm/system.h>
14
15extern atomic_t slub_fast_count;
16extern atomic_t slub_slow_count;
17
18static int slub_test_init(void)
19{
20 printk("Fast slub free: %u\n", atomic_read(&slub_fast_count));
21 printk("Slow slub free: %u\n", atomic_read(&slub_slow_count));
22 return -EAGAIN; /* Fail will directly unload the module */
23}
24
25static void slub_test_exit(void)
26{
27 printk(KERN_ALERT "test exit\n");
28}
29
30module_init(slub_test_init)
31module_exit(slub_test_exit)
32
33MODULE_LICENSE("GPL");
34MODULE_AUTHOR("Mathieu Desnoyers");
35MODULE_DESCRIPTION("SLUB test");
This page took 0.02935 seconds and 4 git commands to generate.