diff options
author | Richard Braun <rbraun@sceen.net> | 2017-03-15 21:43:41 +0100 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2017-03-15 21:56:42 +0100 |
commit | 196eae0d9ee0d2d8ca42e96e49d6988313d39f6d (patch) | |
tree | 81d20378edede1e02d8f8f578331848715667877 /test | |
parent | 0f8c14517212dfd03c5cafcab56ffc7dead18209 (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')
-rw-r--r-- | test/test_sref_dirty_zeroes.c | 8 | ||||
-rw-r--r-- | test/test_sref_noref.c | 8 | ||||
-rw-r--r-- | test/test_sref_weakref.c | 10 |
3 files changed, 13 insertions, 13 deletions
diff --git a/test/test_sref_dirty_zeroes.c b/test/test_sref_dirty_zeroes.c index 7f17ceea..2b844d47 100644 --- a/test/test_sref_dirty_zeroes.c +++ b/test/test_sref_dirty_zeroes.c @@ -30,13 +30,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> @@ -68,9 +68,9 @@ test_inc(void *arg) } printk("counter global value: %lu\n", test_counter.value); - 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"); } } 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 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"); } } |