mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-03 12:44:33 +02:00
test_utils: Remove debug code, disable ccomp internal tests for C3
This commit is contained in:
@@ -87,9 +87,6 @@ int64_t IRAM_ATTR ccomp_timer_impl_get_time(void)
|
|||||||
{
|
{
|
||||||
update_ccount();
|
update_ccount();
|
||||||
int64_t cycles = s_status[cpu_hal_get_core_id()].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();
|
return (cycles * 1000000) / esp_clk_cpu_freq();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -23,6 +23,11 @@
|
|||||||
|
|
||||||
#include "sdkconfig.h"
|
#include "sdkconfig.h"
|
||||||
|
|
||||||
|
|
||||||
|
/* No performance monitor in RISCV for now
|
||||||
|
*/
|
||||||
|
#if !DISABLED_FOR_TARGETS(ESP32C3)
|
||||||
|
|
||||||
static const char* TAG = "test_ccomp_timer";
|
static const char* TAG = "test_ccomp_timer";
|
||||||
|
|
||||||
#if CONFIG_IDF_TARGET_ESP32
|
#if CONFIG_IDF_TARGET_ESP32
|
||||||
@@ -180,3 +185,5 @@ TEST_CASE("data cache hit rate sweep", "[test_utils][ccomp_timer]")
|
|||||||
free(flash_mem);
|
free(flash_mem);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif // !DISABLED_FOR_TARGETS(ESP32C3)
|
||||||
|
Reference in New Issue
Block a user