blob: 0a92470a01a7445e0a9efa34f86e7d2236b2b532 [file] [log] [blame]
#!/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