X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=tests%2Frcutorture.h;h=5ba3d2b0e85312318a3e849a1d98c6050faedbf4;hb=4967f00583bf6700651649ef08cd6d4afe6c3b29;hp=66fdd7fe4c2b21d8c170f1acd7f3ecce5b9e93a6;hpb=7106ddf86905188b9e92ee7000165c1af22f793e;p=urcu.git diff --git a/tests/rcutorture.h b/tests/rcutorture.h index 66fdd7f..5ba3d2b 100644 --- a/tests/rcutorture.h +++ b/tests/rcutorture.h @@ -66,7 +66,6 @@ */ #include -#include "../urcu-call-rcu.h" DEFINE_PER_THREAD(long long, n_reads_pt); DEFINE_PER_THREAD(long long, n_updates_pt); @@ -80,7 +79,8 @@ char argsbuf[64]; #define GOFLAG_RUN 1 #define GOFLAG_STOP 2 -int goflag __attribute__((__aligned__(CAA_CACHE_LINE_SIZE))) = GOFLAG_INIT; +volatile int goflag __attribute__((__aligned__(CAA_CACHE_LINE_SIZE))) + = GOFLAG_INIT; #define RCU_READ_RUN 1000 @@ -157,7 +157,7 @@ void *rcu_update_perf_test(void *arg) if ((random() & 0xf00) == 0) { struct call_rcu_data *crdp; - crdp = create_call_rcu_data(0); + crdp = create_call_rcu_data(0, -1); if (crdp != NULL) { fprintf(stderr, "Using per-thread call_rcu() worker.\n"); @@ -386,7 +386,7 @@ void *rcu_fake_update_stress_test(void *arg) if ((random() & 0xf00) == 0) { struct call_rcu_data *crdp; - crdp = create_call_rcu_data(0); + crdp = create_call_rcu_data(0, -1); if (crdp != NULL) { fprintf(stderr, "Using per-thread call_rcu() worker.\n");