Try to strace this program

This commit is contained in:
Quentin 2020-01-23 18:39:47 +01:00
parent 465c5a3c6f
commit e7fe896657
2 changed files with 3 additions and 2 deletions

View file

@ -44,6 +44,7 @@ RUN mkdir out && \
FROM fedora:30 FROM fedora:30
RUN dnf install -y \ RUN dnf install -y \
glib2 \ glib2 \
procps-ng \
valgrind \ valgrind \
nmap-ncat \ nmap-ncat \
psmisc \ psmisc \

View file

@ -7,7 +7,7 @@ echo -e 'authenticate ""\nsetevents extended circ circ_minor stream orconn addrm
ts \ ts \
> ../log/server-tor-events-stdout.log 2> ../log/server-tor-events-stderr.log & > ../log/server-tor-events-stdout.log 2> ../log/server-tor-events-stderr.log &
strace -e trace=network -p 1 \ strace -e trace=network,epoll_wait,epoll_create,epoll_create1,epoll_ctl,epoll_pwait -p 1 \
> ../log/server-strace-tor-stdout.log 2> ../log/server-strace-tor-stderr.log & > ../log/server-strace-tor-stdout.log 2> ../log/server-strace-tor-stderr.log &
donar \ donar \
@ -19,7 +19,7 @@ donar \
-e 9000 \ -e 9000 \
> ../log/server-donar-stdout.log 2> ../log/server-donar-stderr.log & > ../log/server-donar-stdout.log 2> ../log/server-donar-stderr.log &
strace -e trace=network -p $! \ strace -e trace=network,epoll_wait,epoll_create,epoll_create1,epoll_ctl,epoll_pwait -p `pidof donar` \
> ../log/server-strace-donar-stdout.log 2> ../log/server-strace-donar-stderr.log & > ../log/server-strace-donar-stdout.log 2> ../log/server-strace-donar-stderr.log &
measlat -h 127.0.0.1 -p 9000 -l -c $1 -i $2 -s $3 > ../log/server-measlat-stdout.log 2> ../log/server-measlat-stderr.log measlat -h 127.0.0.1 -p 9000 -l -c $1 -i $2 -s $3 > ../log/server-measlat-stdout.log 2> ../log/server-measlat-stderr.log