From: Joshua Lock Date: Fri, 8 Oct 2010 17:20:44 +0000 (+0100) Subject: bitbake-runtask-strace: simple shell script to wrap tasks in a strace call X-Git-Tag: 2011-1~4046 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=954513057655afe50616f9d206ba69912208b6d4;p=openembedded-core.git bitbake-runtask-strace: simple shell script to wrap tasks in a strace call Signed-off-by: Joshua Lock --- 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 @@ +#!/bin/bash +STRACE=`which strace` + +if [ ! -x "$STRACE" ]; then + bitbake-runtask $1 $2 $3 $4 +else + strace -f -o $TRACE_LOGFILE-$3.log -e trace=open,execve bitbake-runtask $1 $2 $3 $4 +fi