Building an SGX profiler for Gramine
This blog post describes how I developed the SGX profiling mode for Gramine. Thanks to Dmitrii Kuvaiskii and Michał Kowalczyk for reviewing. Gramine is a framework for running Linux applications under non-standard environments, currently with Intel SGX enclaves as the main use case. In the previous article, I described adding GDB support for Gramine. Today, I’ll describe adding support for profiling. Profilers allow analyzing program behavior, for instance by presenting statistics of time spent in a given function.