perfmon: fix xtensa_perfmon build target
-idf_build_get_property(target IDF_TARGET)
-if(${target} STREQUAL "esp32c3" OR ${target} STREQUAL "esp32h2" OR ${target} STREQUAL "esp32c2")
+idf_build_get_property(arch IDF_TARGET_ARCH)
+
+if(NOT "${arch}" STREQUAL "xtensa")
return()
endif()
