path: root/Documentation/basic_profiling.txt
diff options
authorJohn Levon <>2005-06-23 22:02:47 -0700
committerLinus Torvalds <>2005-06-24 00:06:27 -0700
commit0c0a400d1debb172c596b24ab82efab4975990a9 (patch)
tree58bd3604e46151662268bd558dce49ac8e72cca0 /Documentation/basic_profiling.txt
parent391cd727eac2e10be7685efd739a3ea9de87393c (diff)
[PATCH] oprofile: report anonymous region samples
The below patch passes samples from anonymous regions to userspace instead of just dropping them. This provides the support needed for reporting anonymous-region code samples (today: basic accumulated results; later: Java and other dynamically compiled code). As this changes the format, an upgrade to the just-released 0.9 release of the userspace tools is required. This patch is based upon an earlier one by Will Cohen <> Signed-off-by: John Levon <> Signed-off-by: Andrew Morton <> Signed-off-by: Linus Torvalds <>
Diffstat (limited to 'Documentation/basic_profiling.txt')
1 files changed, 7 insertions, 3 deletions
diff --git a/Documentation/basic_profiling.txt b/Documentation/basic_profiling.txt
index 65e3dc2d4437..8764e9f70821 100644
--- a/Documentation/basic_profiling.txt
+++ b/Documentation/basic_profiling.txt
@@ -27,9 +27,13 @@ dump output readprofile -m /boot/ > captured_profile
-Get the source (I use 0.8) from
-and add "idle=poll" to the kernel command line
+Get the source (see Changes for required version) from
+ and add "idle=poll" to the kernel command
Configure with CONFIG_PROFILING=y and CONFIG_OPROFILE=y & reboot on new kernel
./configure --with-kernel-support
make install
@@ -46,7 +50,7 @@ start opcontrol --start
stop opcontrol --stop
dump output opreport > output_file
-To only report on the kernel, run opreport /boot/vmlinux > output_file
+To only report on the kernel, run opreport -l /boot/vmlinux > output_file
A reset is needed to clear old statistics, which survive a reboot.