summaryrefslogtreecommitdiff
path: root/test/test_sref_noref.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_noref.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_noref.c')
-rw-r--r--test/test_sref_noref.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/test_sref_noref.c b/test/test_sref_noref.c
index b74338dc..d7dbc3d0 100644
--- a/test/test_sref_noref.c
+++ b/test/test_sref_noref.c
@@ -36,13 +36,13 @@
#include <kern/condition.h>
#include <kern/error.h>
-#include <kern/evcnt.h>
#include <kern/kmem.h>
#include <kern/macros.h>
#include <kern/mutex.h>
#include <kern/panic.h>
#include <kern/sprintf.h>
#include <kern/sref.h>
+#include <kern/syscnt.h>
#include <kern/thread.h>
#include <test/test.h>
#include <vm/vm_kmem.h>
@@ -103,9 +103,9 @@ test_obj_noref(struct sref_counter *counter)
obj = structof(counter, struct test_obj, ref_counter);
vm_kmem_free(obj, sizeof(*obj));
printk("0 references, page released\n");
- evcnt_info("sref_epoch");
- evcnt_info("sref_dirty_zero");
- evcnt_info("sref_true_zero");
+ syscnt_info("sref_epoch");
+ syscnt_info("sref_dirty_zero");
+ syscnt_info("sref_true_zero");
}
static void