test_utils: Remove debug code, disable ccomp internal tests for C3

This commit is contained in:
Angus Gratton 2020-12-22 19:57:27 +11:00
parent 0a95151a75
commit 772bb2a380
2 changed files with 7 additions and 3 deletions

View File

@ -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();
}

View File

@ -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)