From d3760c95f8aef80b61567b17e4d0ca4e6a1b50a2 Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Thu, 23 Jan 2020 21:45:43 +0100 Subject: [PATCH] comment debugging tools --- scripts/container/dup2-server | 8 +++--- scripts/container/lightning-server | 41 +++++++++++++++--------------- 2 files changed, 24 insertions(+), 25 deletions(-) diff --git a/scripts/container/dup2-server b/scripts/container/dup2-server index 75dbf8f..fe84880 100755 --- a/scripts/container/dup2-server +++ b/scripts/container/dup2-server @@ -2,10 +2,10 @@ mkdir -p $5/{log,shared} cd $5/shared -echo -e 'authenticate ""\nsetevents extended circ circ_minor stream orconn addrmap status_general status_client guard info notice warn err newdesc descchanged ns status_server stream_bw clients_seen hs_desc network_liveness' | \ - nc --no-shutdown 127.0.0.1 9051 | \ - ts \ -> ../log/server-tor-events-stdout.log 2> ../log/server-tor-events-stderr.log & +#echo -e 'authenticate ""\nsetevents extended circ circ_minor stream orconn addrmap status_general status_client guard info notice warn err newdesc descchanged ns status_server stream_bw clients_seen hs_desc network_liveness' | \ +# nc --no-shutdown 127.0.0.1 9051 | \ +# ts \ +#> ../log/server-tor-events-stdout.log 2> ../log/server-tor-events-stderr.log & donar \ -a dup2 \ diff --git a/scripts/container/lightning-server b/scripts/container/lightning-server index 37164a1..bffda26 100755 --- a/scripts/container/lightning-server +++ b/scripts/container/lightning-server @@ -2,19 +2,19 @@ mkdir -p $6/{log,shared} cd $6/shared -echo -e 'authenticate ""\nsetevents extended circ circ_minor stream orconn addrmap status_general status_client guard info notice warn err newdesc descchanged ns status_server stream_bw clients_seen hs_desc network_liveness' | \ - nc --no-shutdown 127.0.0.1 9051 | \ - ts '<%b %d %H:%M:%.S>' \ -> ../log/server-tor-events-stdout.log 2> ../log/server-tor-events-stderr.log & +#echo -e 'authenticate ""\nsetevents extended circ circ_minor stream orconn addrmap status_general status_client guard info notice warn err newdesc descchanged ns status_server stream_bw clients_seen hs_desc network_liveness' | \ +# nc --no-shutdown 127.0.0.1 9051 | \ +# ts '<%b %d %H:%M:%.S>' \ +#> ../log/server-tor-events-stdout.log 2> ../log/server-tor-events-stderr.log & -strace \ - -s 800 \ - -f \ - -e trace=network,epoll_wait,epoll_create,epoll_create1,epoll_ctl,epoll_pwait,close \ - -p 1 \ - -o /dev/stdout | \ - ts '<%b %d %H:%M:%.S>' \ -> ../log/server-strace-tor-stdout.log 2> ../log/server-strace-tor-stderr.log & +#strace \ +# -s 800 \ +# -f \ +# -e trace=network,epoll_wait,epoll_create,epoll_create1,epoll_ctl,epoll_pwait,close \ +# -p 1 \ +# -o /dev/stdout | \ +# ts '<%b %d %H:%M:%.S>' \ +#> ../log/server-strace-tor-stdout.log 2> ../log/server-strace-tor-stderr.log & donar \ -a lightning \ @@ -25,14 +25,13 @@ donar \ -e 9000 \ > ../log/server-donar-stdout.log 2> ../log/server-donar-stderr.log & -sleep 3 -strace \ - -s 800 \ - -f \ - -e trace=network,epoll_wait,epoll_create,epoll_create1,epoll_ctl,epoll_pwait,close \ - -p `pidof donar` \ - -o /dev/stdout | \ - ts '<%b %d %H:%M:%.S>' \ -> ../log/server-strace-donar-stdout.log 2> ../log/server-strace-donar-stderr.log & +#strace \ +# -s 800 \ +# -f \ +# -e trace=network,epoll_wait,epoll_create,epoll_create1,epoll_ctl,epoll_pwait,close \ +# -p `pidof donar` \ +# -o /dev/stdout | \ +# ts '<%b %d %H:%M:%.S>' \ +#> ../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