Index: tools/oprofile/run |
=================================================================== |
--- tools/oprofile/run (revision 0) |
+++ tools/oprofile/run (revision 0) |
@@ -0,0 +1,14 @@ |
+#!/bin/sh |
+ |
+# Source common stuff. |
+. `cd $(dirname "$0");pwd`/common |
+ |
+# Reset oprofile samples. |
+sudo_opcontrol --reset |
+ |
+# Run the executable to profile with the correct arguments. |
+"$shell_exec" --oprofile "$@" |
+ |
+# Flush oprofile data including the generated code into ELF binaries. |
+sudo_opcontrol --dump |
+ |
Property changes on: tools/oprofile/run |
___________________________________________________________________ |
Added: svn:executable |
+ * |