diff options
author | Joshua Lock <josh@linux.intel.com> | 2010-10-08 18:20:44 +0100 |
---|---|---|
committer | Saul Wold <sgw@linux.intel.com> | 2010-11-14 21:08:27 -0800 |
commit | 954513057655afe50616f9d206ba69912208b6d4 (patch) | |
tree | ac522f84be59105c524f600a87f1ca7dfa874a39 /bitbake | |
parent | b7ce75703aaf13eaea55fe2a98ce70c0206d55cf (diff) | |
download | poky-954513057655afe50616f9d206ba69912208b6d4.tar.gz |
bitbake-runtask-strace: simple shell script to wrap tasks in a strace call
Signed-off-by: Joshua Lock <josh@linux.intel.com>
Diffstat (limited to 'bitbake')
-rwxr-xr-x | bitbake/bin/bitbake-runtask-strace | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bitbake/bin/bitbake-runtask-strace b/bitbake/bin/bitbake-runtask-strace new file mode 100755 index 0000000000..1741a84de2 --- /dev/null +++ b/bitbake/bin/bitbake-runtask-strace | |||
@@ -0,0 +1,8 @@ | |||
1 | #!/bin/bash | ||
2 | STRACE=`which strace` | ||
3 | |||
4 | if [ ! -x "$STRACE" ]; then | ||
5 | bitbake-runtask $1 $2 $3 $4 | ||
6 | else | ||
7 | strace -f -o $TRACE_LOGFILE-$3.log -e trace=open,execve bitbake-runtask $1 $2 $3 $4 | ||
8 | fi | ||