Skip to content

Commit

Permalink
Deploying to gh-pages from @ 978b79d 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
fanghuaqi committed Aug 30, 2024
1 parent 6729adf commit 5575f64
Show file tree
Hide file tree
Showing 41 changed files with 613 additions and 8 deletions.
4 changes: 4 additions & 0 deletions 1-cannot-setup-guestmemory/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,10 @@
<li class="toctree-l1"><a class="reference internal" href="../17-an_example_to_demonstrate_the_use_of_profiling_and_code_coverage/">一个例子用来展示 Profiling 以及 Code coverage 功能</a>
</li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../18-demonstrate_NICE_VNICE_acceleration_of_the_Nuclei_Model_through_profiling/">通过Profiling展示Nuclei Model NICE/VNICE指令加速</a>
</li>
</ul>
</div>
</div>
</nav>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,10 @@
<li class="toctree-l1"><a class="reference internal" href="../17-an_example_to_demonstrate_the_use_of_profiling_and_code_coverage/">一个例子用来展示 Profiling 以及 Code coverage 功能</a>
</li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../18-demonstrate_NICE_VNICE_acceleration_of_the_Nuclei_Model_through_profiling/">通过Profiling展示Nuclei Model NICE/VNICE指令加速</a>
</li>
</ul>
</div>
</div>
</nav>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,10 @@
<li class="toctree-l1"><a class="reference internal" href="../17-an_example_to_demonstrate_the_use_of_profiling_and_code_coverage/">一个例子用来展示 Profiling 以及 Code coverage 功能</a>
</li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../18-demonstrate_NICE_VNICE_acceleration_of_the_Nuclei_Model_through_profiling/">通过Profiling展示Nuclei Model NICE/VNICE指令加速</a>
</li>
</ul>
</div>
</div>
</nav>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,10 @@
<li class="toctree-l1"><a class="reference internal" href="../17-an_example_to_demonstrate_the_use_of_profiling_and_code_coverage/">一个例子用来展示 Profiling 以及 Code coverage 功能</a>
</li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../18-demonstrate_NICE_VNICE_acceleration_of_the_Nuclei_Model_through_profiling/">通过Profiling展示Nuclei Model NICE/VNICE指令加速</a>
</li>
</ul>
</div>
</div>
</nav>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,10 @@
<li class="toctree-l1"><a class="reference internal" href="../17-an_example_to_demonstrate_the_use_of_profiling_and_code_coverage/">一个例子用来展示 Profiling 以及 Code coverage 功能</a>
</li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../18-demonstrate_NICE_VNICE_acceleration_of_the_Nuclei_Model_through_profiling/">通过Profiling展示Nuclei Model NICE/VNICE指令加速</a>
</li>
</ul>
</div>
</div>
</nav>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,10 @@
<li class="toctree-l1"><a class="reference internal" href="../17-an_example_to_demonstrate_the_use_of_profiling_and_code_coverage/">一个例子用来展示 Profiling 以及 Code coverage 功能</a>
</li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../18-demonstrate_NICE_VNICE_acceleration_of_the_Nuclei_Model_through_profiling/">通过Profiling展示Nuclei Model NICE/VNICE指令加速</a>
</li>
</ul>
</div>
</div>
</nav>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,10 @@
<li class="toctree-l1"><a class="reference internal" href="../17-an_example_to_demonstrate_the_use_of_profiling_and_code_coverage/">一个例子用来展示 Profiling 以及 Code coverage 功能</a>
</li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../18-demonstrate_NICE_VNICE_acceleration_of_the_Nuclei_Model_through_profiling/">通过Profiling展示Nuclei Model NICE/VNICE指令加速</a>
</li>
</ul>
</div>
</div>
</nav>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@
<li class="toctree-l1"><a class="reference internal" href="../17-an_example_to_demonstrate_the_use_of_profiling_and_code_coverage/">一个例子用来展示 Profiling 以及 Code coverage 功能</a>
</li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../18-demonstrate_NICE_VNICE_acceleration_of_the_Nuclei_Model_through_profiling/">通过Profiling展示Nuclei Model NICE/VNICE指令加速</a>
</li>
</ul>
</div>
</div>
</nav>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,10 @@
</ul>
</li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../18-demonstrate_NICE_VNICE_acceleration_of_the_Nuclei_Model_through_profiling/">通过Profiling展示Nuclei Model NICE/VNICE指令加速</a>
</li>
</ul>
</div>
</div>
</nav>
Expand Down Expand Up @@ -169,9 +173,6 @@ <h3 id="1">1 环境准备<a class="headerlink" href="#1" title="Permanent link">
<p><strong>所需材料:</strong><br />
* Nuclei studio:<a href="https://download.nucleisys.com/upload/files/nucleistudio/NucleiStudio_IDE_202406-win64.zip">NucleiStudio 2024.06</a>,以 Windows 版本为例
* 用例: 以 <a href="https://sourceforge.net/projects/opencore-amr/files/vo-amrwbenc/vo-amrwbenc-0.1.3.tar.gz/download">AMR-WB-enc</a> 即自适应多速率宽带编码音频算法为例,用户可以移植自己的用例</p>
<p>这里提供本示例使用的工程,有兴趣可以下载使用:<br />
<a href="https://drive.weixin.qq.com/s?k=ABcAKgdSAFcCRlyEVI">优化前的工程下载链接</a></p>
<p>下载 zip 包后,可以直接导入到 nuclei studio 中运行(导入步骤:File-&gt;Import-&gt;Existing Projects into Workspace-&gt;Next-&gt;Select archive file-&gt;选择zip压缩包-&gt;next即可)</p>
<p><strong>基于 nuclei-sdk v0.6.0 移植 amrwbenc 裸机用例:</strong></p>
<p>打开 Nuclei studio 建立 amrwbenc 工程,然后移植 amrwbenc 源码,最终用例可正常运行。用户可以移植自己的用例,不同用例移植的细节各不相同,这一步不是这篇文档的重点,略过。</p>
<h3 id="2-profiling">2 Profiling 功能<a class="headerlink" href="#2-profiling" title="Permanent link">&para;</a></h3>
Expand All @@ -184,7 +185,10 @@ <h3 id="2-profiling">2 Profiling 功能<a class="headerlink" href="#2-profiling"
<p><strong>注意:</strong> Nuclei SDK 需选择 0.6.0 及以后版本才支持 Profiling 与 Code coverage 功能</p>
<p><img alt="建立Profiling demo" src="../asserts/images/17/build_profiling_demo.png" /></p>
<p><strong>step2:基于 Profiling demo 工程移植 amrwbenc 裸机用例</strong></p>
<p>删掉 Profiling demo 工程中 application 中的原始用例,替换成 amrwbenc 用例,形成如下目录结构,并确保能编译成功。</p>
<p>删掉 Profiling demo 工程中 application 中的原始用例,替换成 amrwbenc 用例,形成如下目录结构,并确保能编译成功。 </p>
<p>这里提供本示例使用的工程,有兴趣可以下载使用:<br />
<a href="https://drive.weixin.qq.com/s?k=ABcAKgdSAFcCRlyEVI">优化前的工程下载链接</a></p>
<p>下载 zip 包后,可以直接导入到 nuclei studio 中运行(导入步骤:File-&gt;Import-&gt;Existing Projects into Workspace-&gt;Next-&gt;Select archive file-&gt;选择zip压缩包-&gt;next即可)</p>
<p><img alt="移植amrwbenc用例" src="../asserts/images/17/amrwbenc_demo.png" /></p>
<p><strong>step3:在用例结尾处添加 grof 数据收集代码,并添加 -pg 编译选项,重新编译代码</strong></p>
<p>在 main 函数的结尾处添加 gprof 数据收集代码:</p>
Expand Down Expand Up @@ -219,7 +223,7 @@ <h3 id="2-profiling">2 Profiling 功能<a class="headerlink" href="#2-profiling"
<ul>
<li>qemu 模拟器(不需要硬件,简单跑一下流程,测试结果不准确)</li>
<li>上板测试 (基于定时器采集数据)</li>
<li>基于 xl_cpumodel (也是模拟器,结果比 qemu 准确,另一篇文章介绍)</li>
<li>基于 xl_cpumodel (Nuclei near cycle model),参考: <a href="../18-demonstrate_NICE_VNICE_acceleration_of_the_Nuclei_Model_through_profiling/">通过Profiling展示Nuclei Model NICE/VNICE指令加速</a></li>
</ul>
<p>这一篇文章只介绍 qemu 仿真与上板测试两种方式,qemu 收集的数据打印到 Console 口,上板实际运行输出到 Nuclei studio 的 Serial Terminal 口。</p>
<p><strong>step5:解析 gprof 数据</strong></p>
Expand Down Expand Up @@ -446,6 +450,7 @@ <h3 id="4">4 补充<a class="headerlink" href="#4" title="Permanent link">&para;
</div><footer>
<div class="rst-footer-buttons" role="navigation" aria-label="Footer Navigation">
<a href="../16-incomplete_data_output_when_using_profiling_function/" class="btn btn-neutral float-left" title="使用 Profiling 功能时可能遇到的一些问题"><span class="icon icon-circle-arrow-left"></span> Previous</a>
<a href="../18-demonstrate_NICE_VNICE_acceleration_of_the_Nuclei_Model_through_profiling/" class="btn btn-neutral float-right" title="通过Profiling展示Nuclei Model NICE/VNICE指令加速">Next <span class="icon icon-circle-arrow-right"></span></a>
</div>

<hr/>
Expand Down Expand Up @@ -475,6 +480,8 @@ <h3 id="4">4 补充<a class="headerlink" href="#4" title="Permanent link">&para;
<span><a href="../16-incomplete_data_output_when_using_profiling_function/" style="color: #fcfcfc">&laquo; Previous</a></span>


<span><a href="../18-demonstrate_NICE_VNICE_acceleration_of_the_Nuclei_Model_through_profiling/" style="color: #fcfcfc">Next &raquo;</a></span>

</span>
</div>
<script src="../js/jquery-3.6.0.min.js"></script>
Expand Down
Loading

0 comments on commit 5575f64

Please sign in to comment.