poky/bitbake/bin/bitbake-runtask-strace
Joshua Lock 9545130576 bitbake-runtask-strace: simple shell script to wrap tasks in a strace call
Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-11-14 21:08:27 -08:00

9 lines
191 B
Bash
Executable File

#!/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