diff --git a/tools/unit-test-app/components/test_utils/ccomp_timer_impl_riscv.c b/tools/unit-test-app/components/test_utils/ccomp_timer_impl_riscv.c index 477170f4da..bea2b6d9f9 100644 --- a/tools/unit-test-app/components/test_utils/ccomp_timer_impl_riscv.c +++ b/tools/unit-test-app/components/test_utils/ccomp_timer_impl_riscv.c @@ -87,9 +87,6 @@ int64_t IRAM_ATTR ccomp_timer_impl_get_time(void) { update_ccount(); int64_t cycles = s_status[cpu_hal_get_core_id()].ccount; - esp_rom_printf("cycles=%lld\n", cycles); - esp_rom_printf("cpu freq=%d\r\n", esp_clk_cpu_freq()); - esp_rom_printf("duration=%lld\n", cycles * 1000000 / esp_clk_cpu_freq()); return (cycles * 1000000) / esp_clk_cpu_freq(); } diff --git a/tools/unit-test-app/components/test_utils/test/ccomp_timer_test_data.c b/tools/unit-test-app/components/test_utils/test/ccomp_timer_test_data.c index 8ac93923aa..a3f0bf032f 100644 --- a/tools/unit-test-app/components/test_utils/test/ccomp_timer_test_data.c +++ b/tools/unit-test-app/components/test_utils/test/ccomp_timer_test_data.c @@ -23,6 +23,11 @@ #include "sdkconfig.h" + +/* No performance monitor in RISCV for now + */ +#if !DISABLED_FOR_TARGETS(ESP32C3) + static const char* TAG = "test_ccomp_timer"; #if CONFIG_IDF_TARGET_ESP32 @@ -180,3 +185,5 @@ TEST_CASE("data cache hit rate sweep", "[test_utils][ccomp_timer]") free(flash_mem); #endif } + +#endif // !DISABLED_FOR_TARGETS(ESP32C3)