1 #!/bin/sh 2 3 # Source common stuff. 4 . `cd $(dirname "$0");pwd`/common 5 6 # Reset oprofile samples. 7 sudo_opcontrol --reset 8 9 # Run the executable to profile with the correct arguments. 10 "$shell_exec" --oprofile "$@" 11 12 # Flush oprofile data including the generated code into ELF binaries. 13 sudo_opcontrol --dump 14 15