summaryrefslogtreecommitdiff
path: root/test/test_sref_weakref.c
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2017-03-15 21:43:41 +0100
committerRichard Braun <rbraun@sceen.net>2017-03-15 21:56:42 +0100
commit196eae0d9ee0d2d8ca42e96e49d6988313d39f6d (patch)
tree81d20378edede1e02d8f8f578331848715667877 /test/test_sref_weakref.c
parent0f8c14517212dfd03c5cafcab56ffc7dead18209 (diff)
kern/syscnt: replace the evcnt module
The syscnt module supports more generic counters, in addition to atomic access from any context on any architecture.
Diffstat (limited to 'test/test_sref_weakref.c')
-rw-r--r--test/test_sref_weakref.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/test_sref_weakref.c b/test/test_sref_weakref.c
index 20e8e155..e28851f7 100644
--- a/test/test_sref_weakref.c
+++ b/test/test_sref_weakref.c
@@ -35,9 +35,9 @@
#include <stddef.h>
#include <kern/error.h>
-#include <kern/evcnt.h>
#include <kern/macros.h>
#include <kern/sref.h>
+#include <kern/syscnt.h>
#include <kern/thread.h>
#include <test/test.h>
#include <vm/vm_kmem.h>
@@ -72,10 +72,10 @@ test_run(void *arg)
for (j = 0; j < 0x20000000; j++);
printk("run: iterations: %lu\n", i);
- evcnt_info("sref_epoch");
- evcnt_info("sref_dirty_zero");
- evcnt_info("sref_revive");
- evcnt_info("sref_true_zero");
+ syscnt_info("sref_epoch");
+ syscnt_info("sref_dirty_zero");
+ syscnt_info("sref_revive");
+ syscnt_info("sref_true_zero");
}
}