diff options
author | Christian Grothoff <christian@grothoff.org> | 2014-12-11 22:17:13 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2014-12-11 22:17:13 +0000 |
commit | e4bc658b3cc03ffd3f3e84d4a7aaca231701f587 (patch) | |
tree | 4bb4f0d0efdbb6a63466de263650e3745c2c762b /src/scalarproduct | |
parent | addd20663f6f7ccdd666af0bc07b41c384e956a2 (diff) | |
download | gnunet-e4bc658b3cc03ffd3f3e84d4a7aaca231701f587.tar.gz gnunet-e4bc658b3cc03ffd3f3e84d4a7aaca231701f587.zip |
-commit with dbg logic
Diffstat (limited to 'src/scalarproduct')
-rw-r--r-- | src/scalarproduct/gnunet-service-scalarproduct_alice.c | 5 | ||||
-rw-r--r-- | src/scalarproduct/gnunet-service-scalarproduct_bob.c | 2 | ||||
-rwxr-xr-x | src/scalarproduct/perf_scalarproduct.sh | 3 |
3 files changed, 7 insertions, 3 deletions
diff --git a/src/scalarproduct/gnunet-service-scalarproduct_alice.c b/src/scalarproduct/gnunet-service-scalarproduct_alice.c index 3642ff09c..69e2db9bb 100644 --- a/src/scalarproduct/gnunet-service-scalarproduct_alice.c +++ b/src/scalarproduct/gnunet-service-scalarproduct_alice.c | |||
@@ -902,8 +902,9 @@ send_alices_cryptodata_message (struct AliceServiceSession *s) | |||
902 | if (todo_count > ELEMENT_CAPACITY) | 902 | if (todo_count > ELEMENT_CAPACITY) |
903 | todo_count = ELEMENT_CAPACITY; | 903 | todo_count = ELEMENT_CAPACITY; |
904 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 904 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
905 | "Sending %u crypto values to Bob\n", | 905 | "Sending %u/%u crypto values to Bob\n", |
906 | (unsigned int) todo_count); | 906 | (unsigned int) todo_count, |
907 | (unsigned int) s->used_element_count); | ||
907 | 908 | ||
908 | e = GNUNET_MQ_msg_extra (msg, | 909 | e = GNUNET_MQ_msg_extra (msg, |
909 | todo_count * sizeof (struct GNUNET_CRYPTO_PaillierCiphertext), | 910 | todo_count * sizeof (struct GNUNET_CRYPTO_PaillierCiphertext), |
diff --git a/src/scalarproduct/gnunet-service-scalarproduct_bob.c b/src/scalarproduct/gnunet-service-scalarproduct_bob.c index e4ceecc4e..4a9ec5873 100644 --- a/src/scalarproduct/gnunet-service-scalarproduct_bob.c +++ b/src/scalarproduct/gnunet-service-scalarproduct_bob.c | |||
@@ -593,6 +593,8 @@ transmit_bobs_cryptodata_message_multipart (struct BobServiceSession *s) | |||
593 | GNUNET_MQ_send (s->cadet->cadet_mq, | 593 | GNUNET_MQ_send (s->cadet->cadet_mq, |
594 | e); | 594 | e); |
595 | } | 595 | } |
596 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | ||
597 | "All values queued for Alice, Bob is done\n"); | ||
596 | } | 598 | } |
597 | 599 | ||
598 | 600 | ||
diff --git a/src/scalarproduct/perf_scalarproduct.sh b/src/scalarproduct/perf_scalarproduct.sh index 29b7b0f3f..5424134df 100755 --- a/src/scalarproduct/perf_scalarproduct.sh +++ b/src/scalarproduct/perf_scalarproduct.sh | |||
@@ -35,7 +35,8 @@ CFGBOB="-c $PREFIX/1/config" | |||
35 | # interactive mode would terminate the test immediately | 35 | # interactive mode would terminate the test immediately |
36 | # because the rest of the script is already in stdin, | 36 | # because the rest of the script is already in stdin, |
37 | # thus redirecting stdin does not suffice) | 37 | # thus redirecting stdin does not suffice) |
38 | GNUNET_FORCE_LOG=';;;;ERROR' | 38 | #GNUNET_FORCE_LOG=';;;;ERROR' |
39 | GNUNET_FORCE_LOG='scalarproduct*;;;;DEBUG/cadet-api*;;;;DEBUG' | ||
39 | GNUNET_TESTING_PREFIX=$PREFIX ../testbed/gnunet-testbed-profiler -n -c test_scalarproduct.conf -p 2 & | 40 | GNUNET_TESTING_PREFIX=$PREFIX ../testbed/gnunet-testbed-profiler -n -c test_scalarproduct.conf -p 2 & |
40 | PID=$! | 41 | PID=$! |
41 | # sleep 1 is too short on most systems, 2 works on most, 5 seems to be safe | 42 | # sleep 1 is too short on most systems, 2 works on most, 5 seems to be safe |