projects
/
urcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
urcu.c: declare noop urcu_init() function non-static
[urcu.git]
/
rcutorture.h
diff --git
a/rcutorture.h
b/rcutorture.h
index 8ba67637ae8927ee6b64487941ef7ba743287a92..00b0b316b736c181aa3270d45a78b5403637db87 100644
(file)
--- a/
rcutorture.h
+++ b/
rcutorture.h
@@
-114,9
+114,9
@@
void *rcu_read_perf_test(void *arg)
int me = (long)arg;
long long n_reads_local = 0;
int me = (long)arg;
long long n_reads_local = 0;
-
u
rcu_register_thread();
+ rcu_register_thread();
run_on(me);
run_on(me);
-
__
atomic_inc(&nthreadsrunning);
+ atomic_inc(&nthreadsrunning);
while (goflag == GOFLAG_INIT)
poll(NULL, 0, 1);
mark_rcu_quiescent_state();
while (goflag == GOFLAG_INIT)
poll(NULL, 0, 1);
mark_rcu_quiescent_state();
@@
-132,7
+132,7
@@
void *rcu_read_perf_test(void *arg)
}
__get_thread_var(n_reads_pt) += n_reads_local;
put_thread_offline();
}
__get_thread_var(n_reads_pt) += n_reads_local;
put_thread_offline();
-
u
rcu_unregister_thread();
+ rcu_unregister_thread();
return (NULL);
}
return (NULL);
}
@@
-141,7
+141,7
@@
void *rcu_update_perf_test(void *arg)
{
long long n_updates_local = 0;
{
long long n_updates_local = 0;
-
__
atomic_inc(&nthreadsrunning);
+ atomic_inc(&nthreadsrunning);
while (goflag == GOFLAG_INIT)
poll(NULL, 0, 1);
while (goflag == GOFLAG_RUN) {
while (goflag == GOFLAG_INIT)
poll(NULL, 0, 1);
while (goflag == GOFLAG_RUN) {
@@
-258,7
+258,7
@@
void *rcu_read_stress_test(void *arg)
struct rcu_stress *p;
int pc;
struct rcu_stress *p;
int pc;
-
u
rcu_register_thread();
+ rcu_register_thread();
while (goflag == GOFLAG_INIT)
poll(NULL, 0, 1);
mark_rcu_quiescent_state();
while (goflag == GOFLAG_INIT)
poll(NULL, 0, 1);
mark_rcu_quiescent_state();
@@
-285,7
+285,7
@@
void *rcu_read_stress_test(void *arg)
}
}
put_thread_offline();
}
}
put_thread_offline();
-
u
rcu_unregister_thread();
+ rcu_unregister_thread();
return (NULL);
}
return (NULL);
}
@@
-413,4
+413,5
@@
int main(int argc, char *argv[])
usage(argc, argv);
}
perftest(nreaders, cpustride);
usage(argc, argv);
}
perftest(nreaders, cpustride);
+ return 0;
}
}
This page took
0.023946 seconds
and
4
git commands to generate.