Information we track for each peer. More...
Data Fields | |
uint32_t | index |
Index of the peer. More... | |
struct GNUNET_TESTBED_Operation * | op |
Handle for RPS connect operation. More... | |
struct GNUNET_RPS_Handle * | rps_handle |
Handle to RPS service. More... | |
struct GNUNET_PeerIdentity * | peer_id |
ID of the peer. More... | |
int | online |
A request handle to check for an request. More... | |
unsigned int | num_ids_to_request |
Number of Peer IDs to request during the whole test. More... | |
struct PendingRequest * | pending_req_head |
Pending requests DLL. More... | |
struct PendingRequest * | pending_req_tail |
unsigned int | num_pending_reqs |
Number of pending requests. More... | |
struct PendingReply * | pending_rep_head |
Pending replies DLL. More... | |
struct PendingReply * | pending_rep_tail |
unsigned int | num_pending_reps |
Number of pending replies. More... | |
unsigned int | num_recv_ids |
Number of received PeerIDs. More... | |
const struct OpListEntry * | entry_op_manage |
Pending operation on that peer. More... | |
struct GNUNET_TESTBED_Operation * | stat_op |
Testbed operation to connect to statistics service. More... | |
struct GNUNET_STATISTICS_Handle * | stats_h |
Handle to the statistics service. More... | |
uint32_t | stat_collected_flags |
flags to indicate which statistics values have been already collected from the statistics service. More... | |
const char * | file_name_stats |
File name of the file the stats are finally written to. More... | |
const char * | file_name_probs |
File name of the file the stats are finally written to. More... | |
const char * | file_name_probs_hist |
File name of the file the stats are finally written to. More... | |
struct GNUNET_PeerIdentity * | cur_view |
The current view. More... | |
uint32_t | cur_view_count |
Number of peers in the cur_view. More... | |
uint32_t | count_in_views |
Number of occurrences in other peer's view. More... | |
uint64_t | stats [STAT_TYPE_MAX] |
statistics values More... | |
struct GNUNET_STATISTICS_GetHandle * | h_stat_get [STAT_TYPE_MAX] |
Handle for the statistics get request. More... | |
double * | eval_probs_cache |
Keep the probabilities in cache for computing the probabilities with respect to history. More... | |
Information we track for each peer.
Definition at line 483 of file gnunet-rps-profiler.c.
uint32_t RPSPeer::index |
Index of the peer.
Definition at line 488 of file gnunet-rps-profiler.c.
Referenced by post_profiler(), post_test_shutdown_ready_cb(), pre_profiler(), profiler_reply_handle(), profiler_reply_handle_info(), rps_connect_complete_cb(), rps_disconnect_adapter(), stat_iterator(), test_run(), and view_update_cb().
struct GNUNET_TESTBED_Operation* RPSPeer::op |
Handle for RPS connect operation.
Definition at line 493 of file gnunet-rps-profiler.c.
Referenced by clean_peer(), post_test_op(), rps_connect_complete_cb(), and test_run().
struct GNUNET_RPS_Handle* RPSPeer::rps_handle |
Handle to RPS service.
Definition at line 498 of file gnunet-rps-profiler.c.
Referenced by churn_cb(), request_peers(), rps_connect_complete_cb(), and rps_disconnect_adapter().
struct GNUNET_PeerIdentity* RPSPeer::peer_id |
ID of the peer.
Definition at line 503 of file gnunet-rps-profiler.c.
Referenced by churn_cb(), default_reply_handle(), info_cb(), profiler_reply_handle(), and profiler_reply_handle_info().
int RPSPeer::online |
A request handle to check for an request.
Peer on- or offline?
Definition at line 513 of file gnunet-rps-profiler.c.
Referenced by churn_cb(), and rps_connect_complete_cb().
unsigned int RPSPeer::num_ids_to_request |
Number of Peer IDs to request during the whole test.
Definition at line 518 of file gnunet-rps-profiler.c.
Referenced by evaluate(), profiler_cb(), profiler_init_peer(), and schedule_missing_requests().
struct PendingRequest* RPSPeer::pending_req_head |
Pending requests DLL.
Definition at line 523 of file gnunet-rps-profiler.c.
Referenced by cancel_pending_req(), cancel_pending_req_rep(), clean_peer(), request_peers(), and schedule_missing_requests().
struct PendingRequest* RPSPeer::pending_req_tail |
Definition at line 524 of file gnunet-rps-profiler.c.
Referenced by cancel_pending_req(), request_peers(), and schedule_missing_requests().
unsigned int RPSPeer::num_pending_reqs |
Number of pending requests.
Definition at line 529 of file gnunet-rps-profiler.c.
Referenced by cancel_pending_req(), cancel_pending_req_rep(), request_peers(), and schedule_missing_requests().
struct PendingReply* RPSPeer::pending_rep_head |
Pending replies DLL.
Definition at line 534 of file gnunet-rps-profiler.c.
Referenced by cancel_pending_req_rep(), cancel_request(), default_reply_handle(), request_peers(), and rps_disconnect_adapter().
struct PendingReply* RPSPeer::pending_rep_tail |
Definition at line 535 of file gnunet-rps-profiler.c.
Referenced by cancel_request(), default_reply_handle(), and request_peers().
unsigned int RPSPeer::num_pending_reps |
Number of pending replies.
Definition at line 540 of file gnunet-rps-profiler.c.
Referenced by cancel_pending_req_rep(), cancel_request(), default_reply_handle(), request_peers(), and schedule_missing_requests().
unsigned int RPSPeer::num_recv_ids |
Number of received PeerIDs.
Definition at line 545 of file gnunet-rps-profiler.c.
Referenced by default_reply_handle(), and evaluate().
const struct OpListEntry* RPSPeer::entry_op_manage |
Pending operation on that peer.
Definition at line 550 of file gnunet-rps-profiler.c.
Referenced by churn_cb(), and manage_service_wrapper().
struct GNUNET_TESTBED_Operation* RPSPeer::stat_op |
Testbed operation to connect to statistics service.
Definition at line 555 of file gnunet-rps-profiler.c.
Referenced by post_test_shutdown_ready_cb(), and test_run().
struct GNUNET_STATISTICS_Handle* RPSPeer::stats_h |
Handle to the statistics service.
Definition at line 560 of file gnunet-rps-profiler.c.
Referenced by post_profiler(), stat_connect_adapter(), and stat_disconnect_adapter().
uint32_t RPSPeer::stat_collected_flags |
flags to indicate which statistics values have been already collected from the statistics service.
Used to check whether we are able to shutdown.
Definition at line 567 of file gnunet-rps-profiler.c.
Referenced by check_statistics_collect_completed_single_peer(), and post_test_shutdown_ready_cb().
const char* RPSPeer::file_name_stats |
File name of the file the stats are finally written to.
Definition at line 572 of file gnunet-rps-profiler.c.
Referenced by post_profiler(), and stat_iterator().
const char* RPSPeer::file_name_probs |
File name of the file the stats are finally written to.
Definition at line 577 of file gnunet-rps-profiler.c.
Referenced by pre_profiler().
const char* RPSPeer::file_name_probs_hist |
File name of the file the stats are finally written to.
Definition at line 582 of file gnunet-rps-profiler.c.
Referenced by pre_profiler().
struct GNUNET_PeerIdentity* RPSPeer::cur_view |
The current view.
Definition at line 587 of file gnunet-rps-profiler.c.
Referenced by main(), test_run(), and view_update_cb().
uint32_t RPSPeer::cur_view_count |
Number of peers in the cur_view.
Definition at line 592 of file gnunet-rps-profiler.c.
Referenced by compute_diversity(), compute_probabilities(), count_containing_views(), count_peer_in_views(), count_peer_in_views_2(), cumulated_view_sizes(), is_in_view(), main(), test_run(), and view_update_cb().
uint32_t RPSPeer::count_in_views |
Number of occurrences in other peer's view.
Definition at line 597 of file gnunet-rps-profiler.c.
Referenced by count_peer_in_views_2().
uint64_t RPSPeer::stats[STAT_TYPE_MAX] |
statistics values
Definition at line 602 of file gnunet-rps-profiler.c.
Referenced by stat_iterator(), and write_final_stats().
struct GNUNET_STATISTICS_GetHandle* RPSPeer::h_stat_get[STAT_TYPE_MAX] |
Handle for the statistics get request.
Definition at line 606 of file gnunet-rps-profiler.c.
Referenced by post_profiler(), and post_test_shutdown_ready_cb().
double* RPSPeer::eval_probs_cache |
Keep the probabilities in cache for computing the probabilities with respect to history.
Definition at line 612 of file gnunet-rps-profiler.c.
Referenced by compute_probabilities(), post_profiler(), and pre_profiler().