Skip to content

Commit

Permalink
intel_rdt: corrected returned value for llc_miss mertic
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksinx committed Mar 27, 2024
1 parent 2bde020 commit 97ac63c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/intel_rdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ static void rdt_submit(const struct pqos_mon_data *group) {
if (events & PQOS_PERF_EVENT_LLC_REF) {
uint64_t value;

int ret = pqos_mon_get_value(group, PQOS_PERF_EVENT_LLC_REF, NULL, &value);
int ret = pqos_mon_get_value(group, PQOS_PERF_EVENT_LLC_REF, &value, NULL);
if (ret == PQOS_RETVAL_OK)
rdt_submit_derive(desc, "bytes", "llc_ref", value);
}
Expand All @@ -169,11 +169,11 @@ static void rdt_submit(const struct pqos_mon_data *group) {
#if PQOS_VERSION >= 40400
uint64_t value;

int ret = pqos_mon_get_value(group, PQOS_PERF_EVENT_LLC_MISS, NULL, &value);
int ret = pqos_mon_get_value(group, PQOS_PERF_EVENT_LLC_MISS, &value, NULL);
if (ret == PQOS_RETVAL_OK)
rdt_submit_derive(desc, "bytes", "llc_miss", value);
#else
rdt_submit_derive(desc, "bytes", "llc_miss", values->llc_misses_delta);
rdt_submit_derive(desc, "bytes", "llc_miss", values->llc_misses);
#endif
}

Expand Down

0 comments on commit 97ac63c

Please sign in to comment.