summaryrefslogtreecommitdiffstats
path: root/testsuite
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2018-08-22 14:59:50 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2018-09-21 10:29:41 +0200
commit3489e3b6396ee9944a6a2e19e675ca54c36993b4 (patch)
treecd55cfac1c96ff4b888a9606fd6a0d8eb65bb446 /testsuite
parentck: Define CK_MD_PPC32_LWSYNC if available (diff)
downloadrtems-libbsd-3489e3b6396ee9944a6a2e19e675ca54c36993b4.tar.bz2
Update to FreeBSD head 2018-09-17
Git mirror commit 6c2192b1ef8c50788c751f878552526800b1e319. Update #3472.
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/epoch01/test_main.c17
1 files changed, 11 insertions, 6 deletions
diff --git a/testsuite/epoch01/test_main.c b/testsuite/epoch01/test_main.c
index 7f8003b5..7f90fc5f 100644
--- a/testsuite/epoch01/test_main.c
+++ b/testsuite/epoch01/test_main.c
@@ -282,9 +282,11 @@ test_enter_exit_preempt_body(rtems_test_parallel_context *base, void *arg,
counter = 0;
while (!rtems_test_parallel_stop_job(&ctx->base)) {
- epoch_enter_preempt(e);
+ struct epoch_tracker et;
+
+ epoch_enter_preempt(e, &et);
++counter;
- epoch_exit_preempt(e);
+ epoch_exit_preempt(e, &et);
}
ctx->stats.counter[worker_index] = counter;
@@ -315,12 +317,13 @@ test_enter_list_op_exit_preempt_body(rtems_test_parallel_context *base,
memset(item_counter, 0, sizeof(item_counter));
while (!rtems_test_parallel_stop_job(&ctx->base)) {
+ struct epoch_tracker et;
test_item *prev;
test_item *item;
test_item *tmp;
test_item *rm;
- epoch_enter_preempt(e);
+ epoch_enter_preempt(e, &et);
++counter;
prev = NULL;
@@ -343,7 +346,7 @@ test_enter_list_op_exit_preempt_body(rtems_test_parallel_context *base,
prev = item;
}
- epoch_exit_preempt(e);
+ epoch_exit_preempt(e, &et);
if (rm != NULL) {
epoch_call(e, &rm->ec, test_list_callback);
@@ -410,11 +413,13 @@ test_enter_mutex_exit_preempt_body(rtems_test_parallel_context *base,
mtx = &ctx->mtx[worker_index % RTEMS_ARRAY_SIZE(ctx->mtx)];
while (!rtems_test_parallel_stop_job(&ctx->base)) {
- epoch_enter_preempt(e);
+ struct epoch_tracker et;
+
+ epoch_enter_preempt(e, &et);
rtems_mutex_lock(mtx);
++counter;
rtems_mutex_unlock(mtx);
- epoch_exit_preempt(e);
+ epoch_exit_preempt(e, &et);
}
ctx->stats.counter[worker_index] = counter;