https://parisc.wiki.kernel.org/index.php?title=KernelProfiling&feed=atom&action=historyKernelProfiling - Revision history2024-03-28T14:14:50ZRevision history for this page on the wikiMediaWiki 1.19.24https://parisc.wiki.kernel.org/index.php?title=KernelProfiling&diff=5761&oldid=prevThibaut Varene: formatting update2014-05-30T21:00:39Z<p>formatting update</p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 21:00, 30 May 2014</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 1:</td>
<td colspan="2" class="diff-lineno">Line 1:</td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del style="color: red; font-weight: bold; text-decoration: none;">= Kernel Profiling =</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del style="color: red; font-weight: bold; text-decoration: none;"></del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>== Using readprofile ==</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>== Using readprofile ==</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>* Compile your kernel with <del class="diffchange diffchange-inline">`</del>CONFIG_PROFILING=y<del class="diffchange diffchange-inline">`</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>* Compile your kernel with <ins class="diffchange diffchange-inline"><tt></ins>CONFIG_PROFILING=y<ins class="diffchange diffchange-inline"></tt></ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>* boot your kernel with profile=2 on the palo command line</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>* boot your kernel with profile=2 on the palo command line</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>* as root:</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>* as root:</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>** <del class="diffchange diffchange-inline">`</del>readprofile -r<del class="diffchange diffchange-inline">` </del># clears the profile counters</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>** <ins class="diffchange diffchange-inline"><code></ins>readprofile -r<ins class="diffchange diffchange-inline"></code> </ins># clears the profile counters</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>** run your test</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>** run your test</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>** <del class="diffchange diffchange-inline">`</del>readprofile -m /path/to/System.map -d /path/to/vmlinux > /tmp/profile.txt<del class="diffchange diffchange-inline">`</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>** <ins class="diffchange diffchange-inline"><code></ins>readprofile -m /path/to/System.map -d /path/to/vmlinux > /tmp/profile.txt<ins class="diffchange diffchange-inline"></code></ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>* you might want to sort the results using "sort -nr +2"</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>* you might want to sort the results using "sort -nr +2"</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>== Using oprofile ==</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>== Using oprofile ==</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>* Compile your kernel with <del class="diffchange diffchange-inline">`</del>CONFIG_OPROFILE=y<del class="diffchange diffchange-inline">` </del>(or as a module)</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>* Compile your kernel with <ins class="diffchange diffchange-inline"><tt></ins>CONFIG_OPROFILE=y<ins class="diffchange diffchange-inline"></tt> </ins>(or as a module)</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>* (to be written)</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>* (to be written)</div></td></tr>
</table>Thibaut Varenehttps://parisc.wiki.kernel.org/index.php?title=KernelProfiling&diff=3341&oldid=prevDeller: Created page with "= Kernel Profiling = == Using readprofile == * Compile your kernel with `CONFIG_PROFILING=y` * boot your kernel with profile=2 on the palo command line * as root: ** `readpr..."2014-02-05T13:57:46Z<p>Created page with "= Kernel Profiling = == Using readprofile == * Compile your kernel with `CONFIG_PROFILING=y` * boot your kernel with profile=2 on the palo command line * as root: ** `readpr..."</p>
<p><b>New page</b></p><div>= Kernel Profiling =<br />
<br />
== Using readprofile ==<br />
<br />
* Compile your kernel with `CONFIG_PROFILING=y`<br />
* boot your kernel with profile=2 on the palo command line<br />
* as root:<br />
** `readprofile -r` # clears the profile counters<br />
** run your test<br />
** `readprofile -m /path/to/System.map -d /path/to/vmlinux > /tmp/profile.txt`<br />
* you might want to sort the results using "sort -nr +2"<br />
<br />
== Using oprofile ==<br />
<br />
* Compile your kernel with `CONFIG_OPROFILE=y` (or as a module)<br />
* (to be written)</div>Deller