Open weicz11 opened 4 years ago
This topic was also discussed here: https://software.intel.com/en-us/forums/intel-software-guard-extensions-intel-sgx/topic/840322.
The isVTuneProfiling flag can be set by either running the application in the VTune Profiler or by setting an environment variable defined on page 20 of https://01.org/sites/default/files/documentation/intel_sgx_sdk_developer_reference_for_linux_os_pdf.pdf
If VTune is profiling, then the code will:
Hello, I am playing around with tune as well. I see that in the code above, the enclave is being loaded by vtune and the line: SE_TRACE(SE_TRACE_DEBUG, "Enclave_path==%s\n", enclave_path); prints the path correctly. However, after the run completes, tune report only shows events from the driver (e.g. page loads) and not application functions/lines which take the most cpu cycles. The application binary does have the symbols as well. Not sure if I am missing something here?
Hi, as I know, "SGX Hotspots" is supproted in vtune since 2016. I noticed that there is a piece of code of function
__create_enclave
in psw (urts/urts_com.h), so what is the propose of this code below? Is it helpful for vtune profiling in sgx enclave? How can I enable theisVTuneProfiling
flag?` if(debug || !(get_enclave_creator()->use_se_hw())) { SE_TRACE(SE_TRACE_DEBUG, "Debug enclave. Checking if VTune is profiling or SGX_DBG_OPTIN is set\n");