From: compudj Date: Tue, 19 Aug 2008 06:29:58 +0000 (+0000) Subject: update test X-Git-Tag: v0.12.20~455 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=ca935c46fd44acf883554b4a9da04f0d2c188b61;p=lttv.git update test git-svn-id: http://ltt.polymtl.ca/svn@3034 04897980-b3bd-0310-b5e0-8ef037075253 --- diff --git a/trunk/tests/kernel/test-wbias-rwlock.c b/trunk/tests/kernel/test-wbias-rwlock.c index 511d6044..6cfac1f5 100644 --- a/trunk/tests/kernel/test-wbias-rwlock.c +++ b/trunk/tests/kernel/test-wbias-rwlock.c @@ -15,10 +15,6 @@ #include #include -#if (NR_CPUS > 64 && (BITS_PER_LONG == 32 || NR_CPUS > 32768)) -#error "writer-biased rwlock needs more bits per long to deal with so many CPUs" -#endif - /* Test with no contention duration, in seconds */ #define SINGLE_WRITER_TEST_DURATION 10 #define SINGLE_READER_TEST_DURATION 10 @@ -28,13 +24,10 @@ #define TEST_DURATION 60 #define NR_VARS 100 -//#define NR_WRITERS 2 #define NR_WRITERS 2 -//#define NR_TRYLOCK_WRITERS 2 -#define NR_TRYLOCK_WRITERS 0 +#define NR_TRYLOCK_WRITERS 1 #define NR_READERS 4 -//#define NR_TRYLOCK_READERS 2 -#define NR_TRYLOCK_READERS 0 +#define NR_TRYLOCK_READERS 1 /* * 1 : test standard rwlock @@ -674,7 +667,7 @@ int init_module(void) if (pentry) pentry->proc_fops = &my_operations; - printk("NR_CPUS : %d\n", NR_CPUS); + printk("pow2cpus : %lu\n", pow2cpus); printk("THREAD_ROFFSET : %lX\n", THREAD_ROFFSET); printk("THREAD_RMASK : %lX\n", THREAD_RMASK); printk("SOFTIRQ_ROFFSET : %lX\n", SOFTIRQ_ROFFSET);