From: Joshua Lock <josh@openedhand.com>
To: poky@yoctoproject.org
Subject: [PATCH 1/5] bitbake-runtask-strace: simple shell script to wrap tasks in a strace call
Date: Fri, 12 Nov 2010 21:36:31 +0000 [thread overview]
Message-ID: <1289597791.27930.40.camel@scimitar> (raw)
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
reply other threads:[~2010-11-12 21:36 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1289597791.27930.40.camel@scimitar \
--to=josh@openedhand.com \
--cc=poky@yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox