Remove valgrind
This commit is contained in:
parent
5f0b22b4f0
commit
fe435539b0
7 changed files with 6 additions and 7 deletions
|
@ -3,7 +3,7 @@ mkdir -p ./log
|
||||||
tor -f /etc/torrc > ./log/client-tor-stdout.log 2> ./log/client-tor-stderr.log &
|
tor -f /etc/torrc > ./log/client-tor-stdout.log 2> ./log/client-tor-stderr.log &
|
||||||
sleep 2
|
sleep 2
|
||||||
mkdir -p ./shared
|
mkdir -p ./shared
|
||||||
valgrind donar -a naive -c -o ./shared/onion_services.pub -r 9000 > ./log/client-donar-stdout.log 2> ./log/client-donar-stderr.log &
|
donar -a naive -c -o ./shared/onion_services.pub -r 9000 > ./log/client-donar-stdout.log 2> ./log/client-donar-stderr.log &
|
||||||
sleep 2
|
sleep 2
|
||||||
measlat -h 127.13.3.7 -p 9000 > /dev/null 2>&1 # Used to wait for connections
|
measlat -h 127.13.3.7 -p 9000 > /dev/null 2>&1 # Used to wait for connections
|
||||||
measlat -h 127.13.3.7 -p 9000 -c $1 -i $2 -s $3 > ./res/naive.csv 2> ./log/client-measlat-stderr.log
|
measlat -h 127.13.3.7 -p 9000 -c $1 -i $2 -s $3 > ./res/naive.csv 2> ./log/client-measlat-stderr.log
|
||||||
|
|
|
@ -5,5 +5,5 @@ sleep 2
|
||||||
mkdir -p ./shared
|
mkdir -p ./shared
|
||||||
cd ./shared
|
cd ./shared
|
||||||
pwd
|
pwd
|
||||||
valgrind donar -a naive -s -e 9000 > ../log/server-donar-stdout.log 2> ../log/server-donar-stderr.log &
|
donar -a naive -s -e 9000 > ../log/server-donar-stdout.log 2> ../log/server-donar-stderr.log &
|
||||||
udpecho -p 9000 > ../log/server-udpecho-stdout.log 2> ../log/server-udpecho-stderr.log
|
udpecho -p 9000 > ../log/server-udpecho-stdout.log 2> ../log/server-udpecho-stderr.log
|
||||||
|
|
|
@ -3,7 +3,7 @@ mkdir -p ./log
|
||||||
tor -f /etc/torrc > ./log/client-tor-stdout.log 2> ./log/client-tor-stderr.log &
|
tor -f /etc/torrc > ./log/client-tor-stdout.log 2> ./log/client-tor-stderr.log &
|
||||||
sleep 2
|
sleep 2
|
||||||
mkdir -p ./shared
|
mkdir -p ./shared
|
||||||
valgrind donar -a rr -b -c -o ./shared/onion_services.pub -r 9000 > ./log/client-donar-stdout.log 2> ./log/client-donar-stderr.log &
|
donar -a rr -b -c -o ./shared/onion_services.pub -r 9000 > ./log/client-donar-stdout.log 2> ./log/client-donar-stderr.log &
|
||||||
sleep 2
|
sleep 2
|
||||||
measlat -h 127.13.3.7 -p 9000 > /dev/null 2>&1 # Used to wait for connections
|
measlat -h 127.13.3.7 -p 9000 > /dev/null 2>&1 # Used to wait for connections
|
||||||
measlat -h 127.13.3.7 -p 9000 -c $1 -i $2 -s $3 > ./res/rr.csv 2> ./log/client-measlat-stderr.log
|
measlat -h 127.13.3.7 -p 9000 -c $1 -i $2 -s $3 > ./res/rr.csv 2> ./log/client-measlat-stderr.log
|
||||||
|
|
|
@ -5,5 +5,5 @@ sleep 2
|
||||||
mkdir -p ./shared
|
mkdir -p ./shared
|
||||||
cd ./shared
|
cd ./shared
|
||||||
pwd
|
pwd
|
||||||
valgrind donar -a rr -b -s -e 9000 > ../log/server-donar-stdout.log 2> ../log/server-donar-stderr.log &
|
donar -a rr -b -s -e 9000 > ../log/server-donar-stdout.log 2> ../log/server-donar-stderr.log &
|
||||||
udpecho -p 9000 > ../log/server-udpecho-stdout.log 2> ../log/server-udpecho-stderr.log
|
udpecho -p 9000 > ../log/server-udpecho-stdout.log 2> ../log/server-udpecho-stderr.log
|
||||||
|
|
|
@ -3,7 +3,7 @@ mkdir -p ./log
|
||||||
tor -f /etc/torrc > ./log/client-tor-stdout.log 2> ./log/client-tor-stderr.log &
|
tor -f /etc/torrc > ./log/client-tor-stdout.log 2> ./log/client-tor-stderr.log &
|
||||||
sleep 2
|
sleep 2
|
||||||
mkdir -p ./shared
|
mkdir -p ./shared
|
||||||
valgrind donar -a rr -b -h -c -o ./shared/onion_services.pub -r 9000 > ./log/client-donar-stdout.log 2> ./log/client-donar-stderr.log &
|
donar -a rr -b -h -c -o ./shared/onion_services.pub -r 9000 > ./log/client-donar-stdout.log 2> ./log/client-donar-stderr.log &
|
||||||
sleep 2
|
sleep 2
|
||||||
measlat -h 127.13.3.7 -p 9000 > /dev/null 2>&1 # Used to wait for connections
|
measlat -h 127.13.3.7 -p 9000 > /dev/null 2>&1 # Used to wait for connections
|
||||||
measlat -h 127.13.3.7 -p 9000 -c $1 -i $2 -s $3 > ./res/rrh.csv 2> ./log/client-measlat-stderr.log
|
measlat -h 127.13.3.7 -p 9000 -c $1 -i $2 -s $3 > ./res/rrh.csv 2> ./log/client-measlat-stderr.log
|
||||||
|
|
|
@ -5,5 +5,5 @@ sleep 2
|
||||||
mkdir -p ./shared
|
mkdir -p ./shared
|
||||||
cd ./shared
|
cd ./shared
|
||||||
pwd
|
pwd
|
||||||
valgrind donar -a rr -b -h -s -e 9000 > ../log/server-donar-stdout.log 2> ../log/server-donar-stderr.log &
|
donar -a rr -b -h -s -e 9000 > ../log/server-donar-stdout.log 2> ../log/server-donar-stderr.log &
|
||||||
udpecho -p 9000 > ../log/server-udpecho-stdout.log 2> ../log/server-udpecho-stderr.log
|
udpecho -p 9000 > ../log/server-udpecho-stdout.log 2> ../log/server-udpecho-stderr.log
|
||||||
|
|
|
@ -61,7 +61,6 @@ int on_udp(struct evt_core_ctx* ctx, struct evt_core_fdinfo* fdinfo) {
|
||||||
struct measure_conf* mc = fdinfo->other;
|
struct measure_conf* mc = fdinfo->other;
|
||||||
res = read(fdinfo->fd, mc->payload, mc->payload_size);
|
res = read(fdinfo->fd, mc->payload, mc->payload_size);
|
||||||
if (res == -1 && errno == EAGAIN) return 1;
|
if (res == -1 && errno == EAGAIN) return 1;
|
||||||
|
|
||||||
if (res != mc->payload_size) {
|
if (res != mc->payload_size) {
|
||||||
perror("read error");
|
perror("read error");
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
|
|
Loading…
Reference in a new issue