From b46de1da6a6f58e2ab7e2b9148b15d7a9d461494 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Tue, 20 Mar 2012 22:29:59 +0100 Subject: [PATCH] zfs_arc plugin: Convert to use DERIVE. --- src/zfs_arc.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/zfs_arc.c b/src/zfs_arc.c index 5332d245..a298706f 100644 --- a/src/zfs_arc.c +++ b/src/zfs_arc.c @@ -96,7 +96,7 @@ static void za_submit_mutex_counts (counter_t mutex_miss) za_submit ("mutex", "counts", values, STATIC_ARRAY_SIZE(values)); } -static void za_submit_deleted_counts (counter_t deleted) +static void za_submit_deleted_counts (derive_t deleted) { value_t values[1]; @@ -105,7 +105,7 @@ static void za_submit_deleted_counts (counter_t deleted) za_submit ("deleted", "counts", values, STATIC_ARRAY_SIZE(values)); } -static void za_submit_hash_counts (counter_t hash_collisions) +static void za_submit_hash_counts (derive_t hash_collisions) { value_t values[1]; @@ -127,10 +127,10 @@ static int za_read (void) prefetch_metadata_misses; gauge_t arc_hits, arc_misses, l2_hits, l2_misses; value_t l2_io[2]; - counter_t mutex_miss; - counter_t deleted; - counter_t evict_l2_cached, evict_l2_eligible, evict_l2_ineligible; - counter_t hash_collisions; + derive_t mutex_miss; + derive_t deleted; + derive_t evict_l2_cached, evict_l2_eligible, evict_l2_ineligible; + derive_t hash_collisions; get_kstat (&ksp, "zfs", 0, "arcstats"); if (ksp == NULL) -- 2.30.2