Skip to content

Commit

Permalink
cleanup: rename a parameter
Browse files Browse the repository at this point in the history
Signed-off-by: Andrea Terzolo <[email protected]>
Co-authored-by: Melissa Kilby <[email protected]>
  • Loading branch information
2 people authored and poiana committed Sep 5, 2024
1 parent 3eca2f1 commit ffd9fe0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions userspace/libpman/src/stats.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions userspace/libscap/engine/bpf/scap_bpf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions userspace/libscap/engine/kmod/scap_kmod.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ffd9fe0

Please sign in to comment.