aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorSergey Bugaev <bugaevc@gmail.com>2021-09-07 16:33:25 +0300
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2021-09-10 01:24:10 +0200
commit27ae52e4d149fc2dc5ef109426753ad3d5126582 (patch)
tree368ec4a25bb5f739745879c692b41aea0ad2ed00 /Makefile
parent89dc0372a9055e7ef86fe19be6201fa0b16b2f0e (diff)
downloadglibc-27ae52e4d149fc2dc5ef109426753ad3d5126582.zip
glibc-27ae52e4d149fc2dc5ef109426753ad3d5126582.tar.gz
glibc-27ae52e4d149fc2dc5ef109426753ad3d5126582.tar.bz2
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>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index f98d5a9..a49870d 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+"$$@"}
;;