<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: No results from the sgx_emmt tool. in Intel® Software Guard Extensions (Intel® SGX)</title>
    <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Re-No-results-from-the-sgx-emmt-tool/m-p/1260972#M4351</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I also encounter the same problem in Ubuntu 18.08 after enabling sgx_emmt when I use the sgx-gdb for debugging my program.&lt;/P&gt;
&lt;P&gt;It prints the stack used normally. However, the heap used cannot print normally. Please refer to the following output.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;--------output---------------&lt;/P&gt;
&lt;P&gt;[Peak stack used]: 7 KB&lt;BR /&gt;[Can't get peak heap used]: You may use version script to control symbol export. Please export 'g_peak_heap_used' in your version script.&lt;BR /&gt;[Can't get peak committed reserved memory]: You may use version script to control symbol export. Please export 'g_peak_rsrv_mem_committed' in your version script.&lt;/P&gt;
&lt;P&gt;-----------output ---------------&lt;/P&gt;
&lt;P&gt;Should I modify the python script ( sgx_emmt.py )?&lt;/P&gt;
&lt;P&gt;&lt;AUDIO style="display: none;" controls="controls"&gt;&lt;/AUDIO&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 03 Mar 2021 09:58:03 GMT</pubDate>
    <dc:creator>Li__Xiaoguo</dc:creator>
    <dc:date>2021-03-03T09:58:03Z</dc:date>
    <item>
      <title>Re: No results from the sgx_emmt tool.</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Re-No-results-from-the-sgx-emmt-tool/m-p/1260972#M4351</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I also encounter the same problem in Ubuntu 18.08 after enabling sgx_emmt when I use the sgx-gdb for debugging my program.&lt;/P&gt;
&lt;P&gt;It prints the stack used normally. However, the heap used cannot print normally. Please refer to the following output.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;--------output---------------&lt;/P&gt;
&lt;P&gt;[Peak stack used]: 7 KB&lt;BR /&gt;[Can't get peak heap used]: You may use version script to control symbol export. Please export 'g_peak_heap_used' in your version script.&lt;BR /&gt;[Can't get peak committed reserved memory]: You may use version script to control symbol export. Please export 'g_peak_rsrv_mem_committed' in your version script.&lt;/P&gt;
&lt;P&gt;-----------output ---------------&lt;/P&gt;
&lt;P&gt;Should I modify the python script ( sgx_emmt.py )?&lt;/P&gt;
&lt;P&gt;&lt;AUDIO style="display: none;" controls="controls"&gt;&lt;/AUDIO&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Mar 2021 09:58:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Re-No-results-from-the-sgx-emmt-tool/m-p/1260972#M4351</guid>
      <dc:creator>Li__Xiaoguo</dc:creator>
      <dc:date>2021-03-03T09:58:03Z</dc:date>
    </item>
    <item>
      <title>Re:Re: No results from the sgx_emmt tool.</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Re-No-results-from-the-sgx-emmt-tool/m-p/1261195#M4352</link>
      <description>&lt;P&gt;Hello Li_Xiaoguo,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;According to the section Enclave Memory Measurement Tool of the Intel SGX Developer Reference Guide for&amp;nbsp;&lt;A href="https://download.01.org/intel-sgx/sgx-linux/2.13/docs/Intel_SGX_Developer_Reference_Linux_2.13_Open_Source.pdf" rel="noopener noreferrer" target="_blank"&gt;Linux&lt;/A&gt;, you must export &lt;SPAN style="font-family: courier;"&gt;g_peak_heap_used&lt;/SPAN&gt; and &lt;SPAN style="font-family: courier;"&gt;g_peak_rsrv_mem_committed&lt;/SPAN&gt; in the version script of the enclave.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;In the SGX SDK sample, SampleEnclave, the enclave version script is /SampleEnclave/Enclave/&lt;I&gt;Enclave.lds&lt;/I&gt; and its content is:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier;"&gt;enclave.so&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier;"&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier;"&gt;&amp;nbsp;&amp;nbsp;global:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;g_global_data_sim;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;g_global_data;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;enclave_entry;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;g_peak_heap_used;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;g_peak_rsrv_mem_committed;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier;"&gt;&amp;nbsp;&amp;nbsp;local:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;*;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier;"&gt;};&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;The Makefile must reference the version scrypt and define the symbol &lt;SPAN style="font-family: courier;"&gt;__ImageBase&lt;/SPAN&gt;, similar to:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier;"&gt;$ ld -o enclave.so file1.o file2.o \&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier;"&gt;-pie -eenclave_entry -nostdlib -nodefaultlibs –nostartfiles --no-undefined \&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier;"&gt;--whole-archive –lsgx_trts --no-whole-archive \&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier;"&gt;--start-group –lsgx_tstdc ––lsgx_tservice -lsgx_crypto -&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier;"&gt;-end-group \&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier;"&gt;-Bstatic -Bsymbolic --defsym=__ImageBase=0 --exportdynamic \&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier;"&gt;--version-script=enclave.lds&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;The SampleEnclave provided in the SGX SDK already has all of this in place so you can reuse its Makefile and version script.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Sincerely,&lt;/P&gt;&lt;P&gt;Jesus G.&lt;/P&gt;&lt;P&gt;Intel Customer Support&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 03 Mar 2021 23:15:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Re-No-results-from-the-sgx-emmt-tool/m-p/1261195#M4352</guid>
      <dc:creator>JesusG_Intel</dc:creator>
      <dc:date>2021-03-03T23:15:02Z</dc:date>
    </item>
    <item>
      <title>Re:Re: No results from the sgx_emmt tool.</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Re-No-results-from-the-sgx-emmt-tool/m-p/1261580#M4353</link>
      <description>&lt;P&gt;&lt;B&gt;This thread has been marked as answered and Intel will no longer monitor this thread. If you want a response from Intel in a follow-up question, please open a new thread.&lt;/B&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Mar 2021 23:57:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Re-No-results-from-the-sgx-emmt-tool/m-p/1261580#M4353</guid>
      <dc:creator>JesusG_Intel</dc:creator>
      <dc:date>2021-03-04T23:57:32Z</dc:date>
    </item>
  </channel>
</rss>

