From 7f4293f99229e838db6ef8293482ac6cc53492f8 Mon Sep 17 00:00:00 2001 From: Gabriel Wang Date: Wed, 28 Feb 2024 21:27:18 +0000 Subject: [PATCH] Update perfc_port_pmu.h --- perfc_port_pmu.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/perfc_port_pmu.h b/perfc_port_pmu.h index 5063cbc..2962c1e 100644 --- a/perfc_port_pmu.h +++ b/perfc_port_pmu.h @@ -66,7 +66,7 @@ __PERF_INFO__.fCPI = (float)( (double)__PERF_INFO__.lCycles \ / (double)__PERF_INFO__.dwNoInstr); \ if (__PLOOC_VA_NUM_ARGS(__VA_ARGS__) == 0) { \ - printf( "\r\n" \ + __perf_counter_printf__( "\r\n" \ "[Report for " __str "]\r\n" \ "-----------------------------------------\r\n" \ "Instruction executed: %lld\r\n" \ @@ -78,10 +78,10 @@ , \ __PERF_INFO__.dwNoInstr, \ __PERF_INFO__.lCycles, \ - __PERF_INFO__.fCPI, \ + (double)__PERF_INFO__.fCPI, \ __PERF_INFO__.dwNoMemAccess, \ __PERF_INFO__.dwNoL1DCacheRefill, \ - __PERF_INFO__.fDCacheMissRate \ + (double)__PERF_INFO__.fDCacheMissRate \ ); \ } else { \ __VA_ARGS__ \