public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc/maskray/unnest] testrun.sh: Add support for --tool=rpctrace
@ 2021-09-23 0:44 Fangrui Song
0 siblings, 0 replies; only message in thread
From: Fangrui Song @ 2021-09-23 0:44 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=27ae52e4d149fc2dc5ef109426753ad3d5126582
commit 27ae52e4d149fc2dc5ef109426753ad3d5126582
Author: Sergey Bugaev <bugaevc@gmail.com>
Date: Tue Sep 7 16:33:25 2021 +0300
testrun.sh: Add support for --tool=rpctrace
rpctrace(1) is a Hurd RPC tracer tool, which is used similar to how
strace(1) is used on GNU/Linux.
Signed-off-by: Sergey Bugaev <bugaevc@gmail.com>
Message-Id: <20210907133325.255690-6-bugaevc@gmail.com>
Acked-by: Florian Weimer <fweimer@redhat.com>
Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Diff:
---
Makefile | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
index f98d5a9e67..a49870d3d1 100644
--- a/Makefile
+++ b/Makefile
@@ -141,8 +141,9 @@ usage () {
cat << EOF
Usage: $$0 [OPTIONS] <program> [ARGUMENTS...]
- --tool=TOOL Run with the specified TOOL. It can be strace, valgrind or
- container. The container will run within support/test-container.
+ --tool=TOOL Run with the specified TOOL. It can be strace, rpctrace,
+ valgrind or container. The container will run within
+ support/test-container.
EOF
exit 1
@@ -177,6 +178,10 @@ case "$$toolname" in
exec strace $(patsubst %, -E%, $(run-program-env)) \
$(test-via-rtld-prefix) $${1+"$$@"}
;;
+ rpctrace)
+ exec rpctrace $(patsubst %, -E%, $(run-program-env)) \
+ $(test-via-rtld-prefix) $${1+"$$@"}
+ ;;
valgrind)
exec env $(run-program-env) valgrind $(test-via-rtld-prefix) $${1+"$$@"}
;;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-09-23 0:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-23 0:44 [glibc/maskray/unnest] testrun.sh: Add support for --tool=rpctrace Fangrui Song
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).