Have you tried (both OpenSSL)
sudo ./perf probe -x /usr/lib64/libcrypto.so BN_mod_mul_montgomery
sudo ./perf stat -e probe_libcrypto:BN_mod_mul_montgomery openssl speed sm2
or (both Tongsuo)
sudo ./perf probe -x /opt/tongsuo/lib/libcrypto.so BN_mod_mul_montgomery
sudo ./perf stat -e probe_libcrypto:BN_mod_mul_montgomery
/opt/tongsuo/bin/openssl speed sm2
and still success?
I tried, and both got a SIGTRAP or system hang.