static void rperftest(int nreaders, int duration) { int i; perftestinit(); for (i = 0; i < nreaders; i++) { create_thread(rcu_read_perf_test); } perftestrun(i, duration, nreaders, 0); }
static void uperftest(int nupdaters, int duration) { int i; perftestinit(); for (i = 0; i < nupdaters; i++) { create_thread(rcu_update_perf_test); } perftestrun(i, duration, 0, nupdaters); }
static void perftest(int nreaders, int duration) { int i; perftestinit(); for (i = 0; i < nreaders; i++) { create_thread(rcu_read_perf_test); } create_thread(rcu_update_perf_test); perftestrun(i + 1, duration, nreaders, 1); }
void perftest(int nreaders, int nwriters, int cpustride) { int i; long arg; perftestinit(nreaders + nwriters + 1); for (i = 0; i < nreaders; i++) { arg = (long)(i * cpustride); create_thread(seqlock_read_test, (void *)arg); } for (; i < nreaders + nwriters; i++) { arg = (long)(i * cpustride); create_thread(seqlock_write_test, (void *)arg); } perftestrun(i, nreaders, nwriters); }