* [PATCH 1/5] bitbake-runtask-strace: simple shell script to wrap tasks in a strace call
@ 2010-11-12 21:36 Joshua Lock
0 siblings, 0 replies; only message in thread
From: Joshua Lock @ 2010-11-12 21:36 UTC (permalink / raw)
To: poky
Signed-off-by: Joshua Lock <josh@linux.intel.com>
---
bitbake/bin/bitbake-runtask-strace | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
create mode 100755 bitbake/bin/bitbake-runtask-strace
diff --git a/bitbake/bin/bitbake-runtask-strace
b/bitbake/bin/bitbake-runtask-strace
new file mode 100755
index 0000000..1741a84
--- /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
--
1.7.3.2
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2010-11-12 21:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-12 21:36 [PATCH 1/5] bitbake-runtask-strace: simple shell script to wrap tasks in a strace call Joshua Lock
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox