Profiler for cadet experiments. More...
#include "platform.h"
#include <stdio.h>
#include "cadet_test_lib.h"
#include "gnunet_cadet_service.h"
#include "gnunet_statistics_service.h"
Go to the source code of this file.
Data Structures | |
struct | CadetPingMessage |
Message type for pings. More... | |
struct | CadetPeer |
Peer description. More... | |
Macros | |
#define | PING 1 |
#define | PONG 2 |
#define | PING_PERIOD 500 |
Paximum ping period in milliseconds. More... | |
#define | TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 120) |
How long until we give up on connecting the peers? More... | |
#define | SHORT_TIME GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 300) |
Time to wait for stuff that should be rather fast. More... | |
#define | number_rounds sizeof(rounds) / sizeof(rounds[0]) |
Total number of rounds. More... | |
Functions | |
static void | start_test (void *cls) |
START THE TEST ITSELF, AS WE ARE CONNECTED TO THE CADET SERVICES. More... | |
static struct GNUNET_TIME_Relative | delay_ms_rnd (unsigned int max) |
Calculate a random delay. More... | |
static unsigned int | get_index (struct CadetPeer *peer) |
Get the index of a peer in the peers array. More... | |
static void | show_end_data (void) |
Show the results of the test (banwidth achieved) and log them to GAUGER. More... | |
static void | disconnect_cadet_peers (void *cls) |
Disconnect from cadet services af all peers, call shutdown. More... | |
static void | shutdown_task (void *cls) |
Shut down peergroup, clean up. More... | |
static void | abort_test (long line) |
Finish test normally: schedule disconnect and shutdown. More... | |
static void | stats_cont (void *cls, struct GNUNET_TESTBED_Operation *op, const char *emsg) |
Stats callback. More... | |
static int | stats_iterator (void *cls, const struct GNUNET_TESTBED_Peer *peer, const char *subsystem, const char *name, uint64_t value, int is_persistent) |
Process statistic values. More... | |
static void | collect_stats (void *cls) |
Task check that keepalives were sent and received. More... | |
static void | finish_profiler (void *cls) |
Finish profiler normally. More... | |
static void | adjust_running_peers (unsigned int target) |
Set the total number of running peers. More... | |
static void | next_rnd (void *cls) |
Move to next round. More... | |
static size_t | tmt_rdy_ping (void *cls, size_t size, void *buf) |
Transmit ping callback. More... | |
static size_t | tmt_rdy_pong (void *cls, size_t size, void *buf) |
Transmit pong callback. More... | |
static void | ping (void *cls) |
Send a ping to destination. More... | |
static void | pong (struct GNUNET_CADET_Channel *channel, const struct CadetPingMessage *ping) |
Reply with a pong to origin. More... | |
int | ping_handler (void *cls, struct GNUNET_CADET_Channel *channel, void **channel_ctx, const struct GNUNET_MessageHeader *message) |
Function is called whenever a PING message is received. More... | |
int | pong_handler (void *cls, struct GNUNET_CADET_Channel *channel, void **channel_ctx, const struct GNUNET_MessageHeader *message) |
Function is called whenever a PONG message is received. More... | |
static void * | incoming_channel (void *cls, struct GNUNET_CADET_Channel *channel, const struct GNUNET_PeerIdentity *initiator, const struct GNUNET_HashCode *port, enum GNUNET_CADET_ChannelOption options) |
Method called whenever another peer has added us to a channel the other peer initiated. More... | |
static void | channel_cleaner (void *cls, const struct GNUNET_CADET_Channel *channel, void *channel_ctx) |
Function called whenever an inbound channel is destroyed. More... | |
static struct CadetPeer * | select_random_peer (struct CadetPeer *peer) |
Select a random peer that has no incoming channel. More... | |
static void | warmup (void) |
Do warmup: create some channels to spread information about the topology. More... | |
static void | peer_id_cb (void *cls, struct GNUNET_TESTBED_Operation *op, const struct GNUNET_TESTBED_PeerInformation *pinfo, const char *emsg) |
Callback to be called when the requested peer information is available. More... | |
static void | tmain (void *cls, struct GNUNET_CADET_TEST_Context *ctx, unsigned int num_peers, struct GNUNET_TESTBED_Peer **testbed_peers, struct GNUNET_CADET_Handle **cadetes) |
test main: start test when all peers are connected More... | |
int | main (int argc, char *argv[]) |
Main: start profiler. More... | |
Variables | |
static float | rounds [] = { 0.8, 0.6, 0.8, 0.5, 0.3, 0.8, 0.0 } |
Ratio of peers active. More... | |
static struct GNUNET_TIME_Relative | round_time |
Duration of each round. More... | |
static struct GNUNET_CONTAINER_MultiPeerMap * | ids |
GNUNET_PeerIdentity -> CadetPeer. More... | |
static struct GNUNET_TESTBED_Peer ** | testbed_handles |
Testbed peer handles. More... | |
static struct GNUNET_TESTBED_Operation * | stats_op |
Testbed Operation (to get stats). More... | |
static struct CadetPeer * | peers |
Operation to get peer ids. More... | |
static unsigned int | p_ids |
Peer ids counter. More... | |
static unsigned long long | peers_total |
Total number of peers. More... | |
static unsigned long long | peers_running |
Number of currently running peers. More... | |
static unsigned long long | peers_pinging |
Number of peers doing pings. More... | |
static struct GNUNET_CADET_TEST_Context * | test_ctx |
Test context (to shut down). More... | |
static struct GNUNET_SCHEDULER_Task * | disconnect_task |
Task called to disconnect peers, before shutdown. More... | |
static struct GNUNET_SCHEDULER_Task * | test_task |
Task to perform tests. More... | |
static unsigned int | current_round |
Round number. More... | |
static int | do_warmup |
Do preconnect? (Each peer creates a tunnel to one other peer). More... | |
static unsigned int | peers_warmup |
Warmup progress. More... | |
static int | test_finished |
Flag to notify callbacks not to generate any new traffic anymore. More... | |
static struct GNUNET_SCHEDULER_Task * | round_task |
Task running each round of the benchmark. More... | |
static struct GNUNET_CADET_MessageHandler | handlers [] |
Handlers, for diverse services. More... | |
Profiler for cadet experiments.
Definition in file gnunet-cadet-profiler.c.
#define PING 1 |
Definition at line 32 of file gnunet-cadet-profiler.c.
#define PONG 2 |
Definition at line 33 of file gnunet-cadet-profiler.c.
#define PING_PERIOD 500 |
Paximum ping period in milliseconds.
Real period = rand (0, PING_PERIOD)
Definition at line 39 of file gnunet-cadet-profiler.c.
#define TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 120) |
How long until we give up on connecting the peers?
Definition at line 44 of file gnunet-cadet-profiler.c.
#define SHORT_TIME GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 300) |
Time to wait for stuff that should be rather fast.
Definition at line 49 of file gnunet-cadet-profiler.c.
Total number of rounds.
Definition at line 54 of file gnunet-cadet-profiler.c.
|
static |
START THE TEST ITSELF, AS WE ARE CONNECTED TO THE CADET SERVICES.
Testcase continues when the root receives confirmation of connected peers, on callback function ch.
cls | Closure (unused). |
Definition at line 917 of file gnunet-cadet-profiler.c.
References cadet, CadetPeer::ch, ch, delay_ms_rnd(), warningfilter::dest, CadetPeer::dest, disconnect_cadet_peers(), disconnect_task, GC_u2h(), get_index(), GNUNET_CADET_channel_create(), GNUNET_CADET_TEST_cleanup(), GNUNET_ERROR_TYPE_ERROR, GNUNET_ERROR_TYPE_INFO, GNUNET_log, GNUNET_SCHEDULER_add_delayed(), GNUNET_SCHEDULER_cancel(), GNUNET_TIME_relative_multiply(), next_rnd(), number_rounds, peers, peers_pinging, peers_running, peers_total, ping(), CadetPeer::ping_task, round_task, round_time, select_random_peer(), test_ctx, and test_task.
Referenced by incoming_channel(), and peer_id_cb().
|
static |
Calculate a random delay.
max | Exclusive maximum, in ms. |
Definition at line 258 of file gnunet-cadet-profiler.c.
Referenced by start_test(), and tmt_rdy_ping().
|
static |
Get the index of a peer in the peers array.
peer | Peer whose index to get. |
Definition at line 286 of file gnunet-cadet-profiler.c.
Referenced by incoming_channel(), ping(), start_test(), and warmup().
|
static |
Show the results of the test (banwidth achieved) and log them to GAUGER.
Definition at line 296 of file gnunet-cadet-profiler.c.
References number_rounds, peer, peers, and peers_pinging.
Referenced by finish_profiler().
|
static |
Disconnect from cadet services af all peers, call shutdown.
cls | Closure (unused). |
Definition at line 322 of file gnunet-cadet-profiler.c.
References ch, disconnect_task, GNUNET_CADET_channel_destroy(), GNUNET_CADET_TEST_cleanup(), GNUNET_ERROR_TYPE_DEBUG, GNUNET_ERROR_TYPE_INFO, GNUNET_log, GNUNET_SCHEDULER_shutdown(), GNUNET_TESTBED_operation_done(), GNUNET_YES, CadetPeer::incoming_ch, line, op, peers, peers_total, test_ctx, CadetPeer::up, and CadetPeer::warmup_ch.
Referenced by abort_test(), shutdown_task(), start_test(), stats_cont(), and tmain().
|
static |
Shut down peergroup, clean up.
cls | Closure (unused). |
Definition at line 371 of file gnunet-cadet-profiler.c.
References disconnect_cadet_peers(), disconnect_task, GNUNET_ERROR_TYPE_INFO, GNUNET_log, GNUNET_SCHEDULER_add_now(), GNUNET_SCHEDULER_cancel(), round_task, and test_task.
Referenced by tmain().
|
static |
Finish test normally: schedule disconnect and shutdown.
line | Line in the code the abort is requested from (LINE). |
Definition at line 400 of file gnunet-cadet-profiler.c.
References disconnect_cadet_peers(), disconnect_task, GNUNET_SCHEDULER_add_now(), GNUNET_SCHEDULER_cancel(), and line.
Referenced by peer_id_cb().
|
static |
Stats callback.
Finish the stats testbed operation and when all stats have been iterated, shutdown the test.
cls | closure |
op | the operation that has been finished |
emsg | error message in case the operation has failed; will be NULL if operation has executed successfully. |
Definition at line 421 of file gnunet-cadet-profiler.c.
References disconnect_cadet_peers(), disconnect_task, GNUNET_ERROR_TYPE_INFO, GNUNET_log, GNUNET_SCHEDULER_add_now(), GNUNET_SCHEDULER_cancel(), GNUNET_TESTBED_operation_done(), and stats_op.
Referenced by collect_stats().
|
static |
Process statistic values.
cls | closure |
peer | the peer the statistic belong to |
subsystem | name of subsystem that created the statistic |
name | the name of the datum |
value | the current value |
is_persistent | GNUNET_YES if the value is persistent, GNUNET_NO if not |
Definition at line 445 of file gnunet-cadet-profiler.c.
References GNUNET_ERROR_TYPE_DEBUG, GNUNET_log, GNUNET_OK, GNUNET_TESTBED_get_index(), name, peer, subsystem, and value.
Referenced by collect_stats().
|
static |
Task check that keepalives were sent and received.
cls | Closure (NULL). |
Definition at line 470 of file gnunet-cadet-profiler.c.
References GNUNET_ERROR_TYPE_INFO, GNUNET_log, GNUNET_TESTBED_get_statistics(), peers_total, stats_cont(), stats_iterator(), stats_op, and testbed_handles.
Referenced by finish_profiler().
|
static |
Finish profiler normally.
Signal finish and start collecting stats.
cls | Closure (unused). |
Definition at line 488 of file gnunet-cadet-profiler.c.
References collect_stats(), GNUNET_SCHEDULER_add_now(), GNUNET_YES, show_end_data(), and test_finished.
Referenced by next_rnd().
|
static |
Set the total number of running peers.
target | Desired number of running peers. |
Definition at line 502 of file gnunet-cadet-profiler.c.
References CadetPeer::ch, ch, delta, warningfilter::dest, CadetPeer::dest, GNUNET_assert, GNUNET_break, GNUNET_CADET_channel_destroy(), GNUNET_CRYPTO_QUALITY_WEAK, GNUNET_CRYPTO_random_u32(), GNUNET_ERROR_TYPE_INFO, GNUNET_i2s(), GNUNET_log, GNUNET_NO, GNUNET_SCHEDULER_cancel(), GNUNET_TESTBED_peer_manage_service(), GNUNET_YES, CadetPeer::incoming_ch, op, peers, peers_pinging, peers_running, peers_total, CadetPeer::ping_ntr, CadetPeer::ping_task, run(), testbed_handles, and CadetPeer::up.
Referenced by next_rnd().
|
static |
Move to next round.
cls | Closure (round #). |
Definition at line 573 of file gnunet-cadet-profiler.c.
References adjust_running_peers(), current_round, finish_profiler(), GNUNET_ERROR_TYPE_INFO, GNUNET_log, GNUNET_SCHEDULER_add_delayed(), GNUNET_SCHEDULER_add_now(), peers_total, round_task, round_time, and rounds.
Referenced by start_test().
|
static |
Transmit ping callback.
cls | Closure (peer for PING, NULL for PONG). |
size | Size of the transmit buffer. |
buf | Pointer to the beginning of the buffer. |
cls | Closure (peer). |
size | Size of the buffer we have. |
buf | Buffer to copy data to. |
Definition at line 686 of file gnunet-cadet-profiler.c.
References buf, current_round, delay_ms_rnd(), GNUNET_break, GNUNET_ERROR_TYPE_DEBUG, GNUNET_log, GNUNET_SCHEDULER_add_delayed(), GNUNET_TIME_absolute_get(), GNUNET_TIME_absolute_hton(), GNUNET_YES, msg, peer, PING, ping(), PING_PERIOD, GNUNET_MessageHeader::size, size, test_finished, and GNUNET_MessageHeader::type.
Referenced by ping().
|
static |
Transmit pong callback.
cls | Closure (copy of PING message, to be freed). |
size | Size of the buffer we have. |
buf | Buffer to copy data to. |
Definition at line 614 of file gnunet-cadet-profiler.c.
References buf, GNUNET_free, GNUNET_memcpy, ping(), PONG, pong(), and size.
Referenced by pong().
|
static |
Send a ping to destination.
cls | Closure (peer). |
Definition at line 639 of file gnunet-cadet-profiler.c.
References get_index(), GNUNET_ERROR_TYPE_INFO, GNUNET_log, GNUNET_NO, GNUNET_TIME_UNIT_FOREVER_REL, GNUNET_YES, peer, test_finished, and tmt_rdy_ping().
Referenced by GSC_KX_init(), GST_validation_handle_ping(), pong(), start_test(), tmt_rdy_ping(), tmt_rdy_pong(), and transmit_ping_if_allowed().
|
static |
Reply with a pong to origin.
Definition at line 664 of file gnunet-cadet-profiler.c.
References GNUNET_new, GNUNET_NO, GNUNET_TIME_UNIT_FOREVER_REL, ping(), and tmt_rdy_pong().
Referenced by GSC_KX_init(), GST_validation_handle_ping(), GST_validation_handle_pong(), multicast_pong(), ping_handler(), and tmt_rdy_pong().
int ping_handler | ( | void * | cls, |
struct GNUNET_CADET_Channel * | channel, | ||
void ** | channel_ctx, | ||
const struct GNUNET_MessageHeader * | message | ||
) |
Function is called whenever a PING message is received.
cls | closure (peer #, set from GNUNET_CADET_connect) |
channel | connection to the other end |
channel_ctx | place to store local state associated with the channel |
message | the actual message |
Definition at line 733 of file gnunet-cadet-profiler.c.
References GNUNET_CADET_receive_done(), GNUNET_ERROR_TYPE_DEBUG, GNUNET_log, GNUNET_NO, GNUNET_OK, pong(), and test_finished.
int pong_handler | ( | void * | cls, |
struct GNUNET_CADET_Channel * | channel, | ||
void ** | channel_ctx, | ||
const struct GNUNET_MessageHeader * | message | ||
) |
Function is called whenever a PONG message is received.
cls | closure (peer #, set from GNUNET_CADET_connect) |
channel | connection to the other end |
channel_ctx | place to store local state associated with the channel |
message | the actual message |
Definition at line 761 of file gnunet-cadet-profiler.c.
|
static |
Method called whenever another peer has added us to a channel the other peer initiated.
cls | Closure. |
channel | New handle to the channel. |
initiator | Peer that started the channel. |
port | Port this channel is connected to. |
options | channel option flags |
Definition at line 820 of file gnunet-cadet-profiler.c.
References get_index(), GNUNET_assert, GNUNET_CONTAINER_multipeermap_get(), GNUNET_ERROR_TYPE_INFO, GNUNET_log, GNUNET_SCHEDULER_add_delayed(), GNUNET_SCHEDULER_cancel(), GNUNET_TIME_UNIT_SECONDS, ids, CadetPeer::incoming, CadetPeer::incoming_ch, peer, peers, peers_total, peers_warmup, start_test(), and test_task.
|
static |
Function called whenever an inbound channel is destroyed.
Should clean up any associated state.
cls | closure (set from GNUNET_CADET_connect) |
channel | connection to the other end (henceforth invalid) |
channel_ctx | place where local state associated with the channel is stored |
Definition at line 871 of file gnunet-cadet-profiler.c.
References GNUNET_ERROR_TYPE_INFO, GNUNET_log, peer, and peers.
Select a random peer that has no incoming channel.
peer | ID of the peer connecting. NULL if irrelevant (warmup). |
Definition at line 893 of file gnunet-cadet-profiler.c.
References GNUNET_CRYPTO_QUALITY_WEAK, GNUNET_CRYPTO_random_u32(), CadetPeer::incoming, peer, peers, and peers_total.
Referenced by start_test(), and warmup().
|
static |
Do warmup: create some channels to spread information about the topology.
Definition at line 964 of file gnunet-cadet-profiler.c.
References cadet, GC_u2h(), get_index(), GNUNET_CADET_channel_create(), GNUNET_CADET_TEST_cleanup(), GNUNET_ERROR_TYPE_ERROR, GNUNET_ERROR_TYPE_INFO, GNUNET_log, peer, peers, peers_total, select_random_peer(), test_ctx, and CadetPeer::warmup_ch.
Referenced by peer_id_cb().
|
static |
Callback to be called when the requested peer information is available.
cls | the closure from GNUNET_TESTBED_peer_get_information() |
op | the operation this callback corresponds to |
pinfo | the result; will be NULL if the operation has failed |
emsg | error message if the operation has failed; NULL if the operation is successful |
Definition at line 997 of file gnunet-cadet-profiler.c.
References abort_test(), delay, do_warmup, GNUNET_break, GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_FAST, GNUNET_CONTAINER_multipeermap_put(), GNUNET_ERROR_TYPE_ERROR, GNUNET_ERROR_TYPE_INFO, GNUNET_i2s(), GNUNET_log, GNUNET_OK, GNUNET_SCHEDULER_add_delayed(), GNUNET_TESTBED_operation_done(), GNUNET_TIME_relative_multiply(), GNUNET_TIME_UNIT_MILLISECONDS, GNUNET_TIME_UNIT_SECONDS, CadetPeer::id, GNUNET_TESTBED_PeerInformation::id, ids, op, CadetPeer::op, p_ids, peers, peers_total, GNUNET_TESTBED_PeerInformation::result, start_test(), test_task, and warmup().
Referenced by tmain().
|
static |
test main: start test when all peers are connected
cls | Closure. |
ctx | Argument to give to GNUNET_CADET_TEST_cleanup on test end. |
num_peers | Number of peers that are running. |
testbed_peers | Array of peers. |
cadetes | Handle to each of the CADETs of the peers. |
Definition at line 1052 of file gnunet-cadet-profiler.c.
References CadetPeer::cadet, ctx, disconnect_cadet_peers(), disconnect_task, GNUNET_assert, GNUNET_ERROR_TYPE_DEBUG, GNUNET_ERROR_TYPE_INFO, GNUNET_log, GNUNET_SCHEDULER_add_delayed(), GNUNET_SCHEDULER_add_shutdown(), GNUNET_TESTBED_peer_get_information(), GNUNET_TESTBED_PIT_IDENTITY, GNUNET_YES, num_peers, CadetPeer::op, peer_id_cb(), peers, peers_running, peers_total, SHORT_TIME, shutdown_task(), test_ctx, testbed_handles, testbed_peers, and CadetPeer::up.
Referenced by GNUNET_CADET_TEST_ruN(), and GNUNET_DHT_TEST_run().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Main: start profiler.
Definition at line 1091 of file gnunet-cadet-profiler.c.
|
static |
Ratio of peers active.
First round always is 1.0.
Definition at line 59 of file gnunet-cadet-profiler.c.
Referenced by next_rnd().
|
static |
Duration of each round.
Definition at line 59 of file gnunet-cadet-profiler.c.
Referenced by next_rnd(), and start_test().
|
static |
GNUNET_PeerIdentity -> CadetPeer.
Definition at line 171 of file gnunet-cadet-profiler.c.
Referenced by GNUNET_PEER_decrement_rcs(), GNUNET_RPS_seed_ids(), hist_update(), incoming_channel(), and peer_id_cb().
|
static |
Testbed peer handles.
Definition at line 176 of file gnunet-cadet-profiler.c.
Referenced by adjust_running_peers(), collect_stats(), and tmain().
|
static |
Testbed Operation (to get stats).
Definition at line 181 of file gnunet-cadet-profiler.c.
Referenced by collect_stats(), and stats_cont().
|
static |
Operation to get peer ids.
Definition at line 186 of file gnunet-cadet-profiler.c.
Referenced by adjust_running_peers(), cadet_test_run(), channel_cleaner(), check_n_peers_ready(), clients_notify_stream_peer(), collect_peers_cb(), collect_peers_info_cb(), compute_rand_delay(), destroy_peer(), dht_test_run(), disconnect_cadet_peers(), extend_path(), GCP_destroy_all_peers(), GCP_get(), GCP_iterate_all(), get_index(), GNUNET_CONSENSUS_create(), GNUNET_SECRETSHARING_create_session(), GNUNET_TESTBED_get_statistics(), GNUNET_TESTBED_overlay_configure_topology(), GNUNET_TESTBED_overlay_configure_topology_va(), handle_client_seed(), handle_view_update(), incoming_channel(), peer_id_cb(), peer_info_ready_cb(), peers_ready_cb(), select_random_peer(), send_stream_peers(), show_end_data(), start_test(), test_master(), test_run(), tmain(), view_update_cb(), and warmup().
|
static |
Peer ids counter.
Definition at line 191 of file gnunet-cadet-profiler.c.
Referenced by peer_id_cb().
|
static |
Total number of peers.
Definition at line 196 of file gnunet-cadet-profiler.c.
Referenced by adjust_running_peers(), collect_stats(), disconnect_cadet_peers(), incoming_channel(), next_rnd(), peer_id_cb(), select_random_peer(), start_test(), tmain(), and warmup().
|
static |
Number of currently running peers.
Definition at line 201 of file gnunet-cadet-profiler.c.
Referenced by adjust_running_peers(), start_test(), and tmain().
|
static |
Number of peers doing pings.
Definition at line 206 of file gnunet-cadet-profiler.c.
Referenced by adjust_running_peers(), show_end_data(), and start_test().
|
static |
Test context (to shut down).
Definition at line 211 of file gnunet-cadet-profiler.c.
Referenced by disconnect_cadet_peers(), start_test(), tmain(), and warmup().
|
static |
Task called to disconnect peers, before shutdown.
Definition at line 216 of file gnunet-cadet-profiler.c.
Referenced by abort_test(), disconnect_cadet_peers(), shutdown_task(), start_test(), stats_cont(), and tmain().
|
static |
Task to perform tests.
Definition at line 221 of file gnunet-cadet-profiler.c.
Referenced by incoming_channel(), peer_id_cb(), shutdown_task(), and start_test().
|
static |
Round number.
Definition at line 226 of file gnunet-cadet-profiler.c.
Referenced by next_rnd(), and tmt_rdy_ping().
|
static |
Do preconnect? (Each peer creates a tunnel to one other peer).
Definition at line 231 of file gnunet-cadet-profiler.c.
Referenced by peer_id_cb().
|
static |
Warmup progress.
Definition at line 236 of file gnunet-cadet-profiler.c.
Referenced by incoming_channel().
|
static |
Flag to notify callbacks not to generate any new traffic anymore.
Definition at line 241 of file gnunet-cadet-profiler.c.
Referenced by finish_profiler(), ping(), ping_handler(), and tmt_rdy_ping().
|
static |
Task running each round of the benchmark.
Definition at line 246 of file gnunet-cadet-profiler.c.
Referenced by next_rnd(), shutdown_task(), and start_test().
|
static |
Handlers, for diverse services.
Definition at line 761 of file gnunet-cadet-profiler.c.
Referenced by advertise_dns_exit(), connect_check_run(), connect_task(), connect_tunnel(), create_loc_uri(), demultiplex_with_cmc(), do_connect(), do_peer_connect(), do_plugin_connect(), do_reconnect(), GCO_init(), GCT_create_tunnel(), get_cadet(), GNUNET_CADET_channel_create(), GNUNET_CADET_open_port(), GNUNET_CADET_TEST_ruN(), GNUNET_CLIENT_connect(), GNUNET_CONVERSATION_call_start(), GNUNET_CORE_connect(), GNUNET_FS_get_indexed_files(), GNUNET_IDENTITY_ego_lookup(), GNUNET_IDENTITY_ego_lookup_by_suffix(), GNUNET_MQ_copy_handlers(), GNUNET_MQ_copy_handlers2(), GNUNET_MQ_count_handlers(), GNUNET_MQ_queue_for_callbacks(), GNUNET_NAT_AUTO_autoconfig_start(), GNUNET_REST_handle_request(), GNUNET_REVOCATION_query(), GNUNET_REVOCATION_revoke(), GNUNET_SCALARPRODUCT_accept_computation(), GNUNET_SCALARPRODUCT_start_computation(), GNUNET_SERVER_add_handlers(), GNUNET_SERVICE_run_(), GNUNET_SERVICE_start(), GNUNET_TESTBED_barrier_wait(), GNUNET_TESTBED_controller_connect(), GNUNET_TRANSPORT_address_to_string(), GNUNET_TRANSPORT_core_connect(), GNUNET_TRANSPORT_TESTING_start_peer(), GSC_KX_init(), GSF_cadet_start_server(), hash_for_index_cb(), libgnunet_plugin_dhtu_gnunet_init(), main(), open_srv_room(), reconnect(), reconnect_arm(), reconnect_arm_monitor(), reconnect_phone(), reconnect_task(), reset_cadet(), run(), search_reconnect(), store_service(), try_connect(), try_reconnect(), and unindex_finish().