diff --git a/userspace/libpman/src/stats.c b/userspace/libpman/src/stats.c index 8c2dc66d3e..9fe241aea7 100644 --- a/userspace/libpman/src/stats.c +++ b/userspace/libpman/src/stats.c @@ -140,10 +140,10 @@ int pman_get_scap_stats(struct scap_stats *stats) return errno; } -static void set_u64_monotonic_kernel_counter(uint32_t pos, uint64_t val, uint32_t metric_type) +static void set_u64_monotonic_kernel_counter(uint32_t pos, uint64_t val, uint32_t metric_flag) { g_state.stats[pos].type = METRIC_VALUE_TYPE_U64; - g_state.stats[pos].flags = metric_type; + g_state.stats[pos].flags = metric_flag; g_state.stats[pos].unit = METRIC_VALUE_UNIT_COUNT; g_state.stats[pos].metric_type = METRIC_VALUE_METRIC_TYPE_MONOTONIC; g_state.stats[pos].value.u64 = val; diff --git a/userspace/libscap/engine/bpf/scap_bpf.c b/userspace/libscap/engine/bpf/scap_bpf.c index 7cb0a5a107..f3c389426f 100644 --- a/userspace/libscap/engine/bpf/scap_bpf.c +++ b/userspace/libscap/engine/bpf/scap_bpf.c @@ -1688,10 +1688,10 @@ int32_t scap_bpf_get_stats(struct scap_engine_handle engine, scap_stats* stats) return SCAP_SUCCESS; } -static void set_u64_monotonic_kernel_counter(struct metrics_v2* m, uint64_t val, uint32_t metric_type) +static void set_u64_monotonic_kernel_counter(struct metrics_v2* m, uint64_t val, uint32_t metric_flag) { m->type = METRIC_VALUE_TYPE_U64; - m->flags = metric_type; + m->flags = metric_flag; m->unit = METRIC_VALUE_UNIT_COUNT; m->metric_type = METRIC_VALUE_METRIC_TYPE_MONOTONIC; m->value.u64 = val; diff --git a/userspace/libscap/engine/kmod/scap_kmod.c b/userspace/libscap/engine/kmod/scap_kmod.c index 45a27fb95d..3622781987 100644 --- a/userspace/libscap/engine/kmod/scap_kmod.c +++ b/userspace/libscap/engine/kmod/scap_kmod.c @@ -586,10 +586,10 @@ int32_t scap_kmod_get_stats(struct scap_engine_handle engine, scap_stats* stats) return SCAP_SUCCESS; } -static void set_u64_monotonic_kernel_counter(struct metrics_v2* m, uint64_t val, uint32_t metric_type) +static void set_u64_monotonic_kernel_counter(struct metrics_v2* m, uint64_t val, uint32_t metric_flag) { m->type = METRIC_VALUE_TYPE_U64; - m->flags = metric_type; + m->flags = metric_flag; m->unit = METRIC_VALUE_UNIT_COUNT; m->metric_type = METRIC_VALUE_METRIC_TYPE_MONOTONIC; m->value.u64 = val;