KernelProfiling
From Linux PARISC Wiki
(Difference between revisions)
(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...") |
m (formatting update) |
||
Line 1: | Line 1: | ||
− | |||
− | |||
== Using readprofile == | == Using readprofile == | ||
− | * Compile your kernel with | + | * Compile your kernel with <tt>CONFIG_PROFILING=y</tt> |
* boot your kernel with profile=2 on the palo command line | * boot your kernel with profile=2 on the palo command line | ||
* as root: | * as root: | ||
− | ** | + | ** <code>readprofile -r</code> # clears the profile counters |
** run your test | ** run your test | ||
− | ** | + | ** <code>readprofile -m /path/to/System.map -d /path/to/vmlinux > /tmp/profile.txt</code> |
* you might want to sort the results using "sort -nr +2" | * you might want to sort the results using "sort -nr +2" | ||
== Using oprofile == | == Using oprofile == | ||
− | * Compile your kernel with | + | * Compile your kernel with <tt>CONFIG_OPROFILE=y</tt> (or as a module) |
* (to be written) | * (to be written) |
Latest revision as of 21:00, 30 May 2014
[edit] Using readprofile
- Compile your kernel with CONFIG_PROFILING=y
- boot your kernel with profile=2 on the palo command line
- as root:
-
readprofile -r
# clears the profile counters - run your test
-
readprofile -m /path/to/System.map -d /path/to/vmlinux > /tmp/profile.txt
-
- you might want to sort the results using "sort -nr +2"
[edit] Using oprofile
- Compile your kernel with CONFIG_OPROFILE=y (or as a module)
- (to be written)