mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-27 03:33:33 +08:00
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>
This commit is contained in:
parent
89dc0372a9
commit
27ae52e4d1
9
Makefile
9
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+"$$@"}
|
||||
;;
|
||||
|
Loading…
Reference in New Issue
Block a user