You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi envy,
I tried sgx-perf again. firstly, I used sgx-perf to evaluate a sample enclave developed by Intel, i.e., SampleEnclave. The following is the config file (.sgxperf) CountAEX=true TraceAEX=true CountPaging=true TracePaging=true
The result (e.g. output.db) contains ecall, ocall, AEX events, but without any page events. So, does sgx-perf supports TracePaging? In my view, there is at least EnlcavePaingEvent. I am not sure that "EnclavePaing Event" is 'malloc' (or 'free') event inside enclave.
second, I tried sgx-perf using my enclave application which is bigger (more complex) than the SampleEnclave. The .sgxper file is as the following: CountAEX=true TraceAEX=true CountPaging=true TracePaging=true
However, sgx-perf raised segfault when load my enclave application. So, there may be bugs in TraceAEX.
Next, I re-writed a new .sgxperf as the following (deleted TracesAEX): TracePaging=true
then sgx-perf worked well, but the result (output.db) only contains ecall,ocall events, still without any page events.
Could you give some advise, please?
The text was updated successfully, but these errors were encountered:
Paging events happen when the enclave is bigger than EPC. The sample enclave from Intel is very small and fits into EPC as long as you don't reduce EPC size to something very small. That's why you don't see any events, if it's not paging, then no events.
Paging events do not record malloc/free inside the enclave, they record paging of the enclave.
There still might be some problems with AEX tracing. If you only need AEX count then just use CountAEX. That still tells you how many AEX happened during ecall execution. TraceAEX just also tells you when an AEX happened.
Hi envy,
I tried sgx-perf again.
firstly, I used sgx-perf to evaluate a sample enclave developed by Intel, i.e., SampleEnclave. The following is the config file (.sgxperf)
CountAEX=true TraceAEX=true CountPaging=true TracePaging=true
The result (e.g. output.db) contains ecall, ocall, AEX events, but without any page events. So, does sgx-perf supports TracePaging? In my view, there is at least EnlcavePaingEvent. I am not sure that "EnclavePaing Event" is 'malloc' (or 'free') event inside enclave.
second, I tried sgx-perf using my enclave application which is bigger (more complex) than the SampleEnclave. The .sgxper file is as the following:
CountAEX=true TraceAEX=true CountPaging=true TracePaging=true
However, sgx-perf raised segfault when load my enclave application. So, there may be bugs in TraceAEX.
Next, I re-writed a new .sgxperf as the following (deleted TracesAEX):
TracePaging=true
then sgx-perf worked well, but the result (output.db) only contains ecall,ocall events, still without any page events.
Could you give some advise, please?
The text was updated successfully, but these errors were encountered: