LP State Structure. More...
#include <ross-types.h>
Data Fields | |
tw_lpid | id |
local LP id More... | |
tw_lpid | gid |
global LP id More... | |
tw_pe * | pe |
tw_kp * | kp |
kp – Kernel process that we belong to (must match pe). More... | |
void * | cur_state |
Current application LP data. More... | |
tw_lptype * | type |
Type of this LP, including service callbacks. More... | |
tw_rng_stream * | rng |
RNG stream array for this LP. More... | |
unsigned int | critical_path |
Critical path value for this LP. More... | |
struct st_model_types * | model_types |
struct st_lp_stats * | lp_stats |
struct st_lp_stats * | last_stats [3] |
tw_event * | suspend_event |
tw_stime | suspend_time |
unsigned int | suspend_error_number |
unsigned int | suspend_do_orig_event_rc |
unsigned int | suspend_flag |
tw_lpHolds our state for the LP, including the lptype and a pointer to the user's current state. The lptype is copied into the tw_lp in order to save the extra memory load that would otherwise be required (if we stored a pointer).
Specific PE's service specific LPs, each PE has a linked list of the LPs it services, this list is made through the pe_next field of the tw_lp structure.
Definition at line 304 of file ross-types.h.
unsigned int tw_lp::critical_path |
Definition at line 319 of file ross-types.h.
Referenced by io_lp_deserialize(), io_lp_serialize(), tw_event_new(), tw_event_rollback(), tw_sched_batch(), tw_sched_batch_realtime(), tw_scheduler_conservative(), tw_scheduler_optimistic_debug(), and tw_scheduler_sequential().
void* tw_lp::cur_state |
Definition at line 315 of file ross-types.h.
Referenced by analysis_event(), analysis_event_rc(), io_read_checkpoint(), io_store_checkpoint(), st_collect_model_data(), tw_event_rollback(), tw_eventq_push_list(), tw_getstate(), tw_init_lps(), tw_pre_run_lps(), tw_sched_batch(), tw_sched_batch_realtime(), tw_scheduler_conservative(), tw_scheduler_optimistic_debug(), tw_scheduler_sequential(), tw_snapshot(), tw_snapshot_delta(), tw_snapshot_restore(), and tw_stats().
tw_lpid tw_lp::gid |
Definition at line 306 of file ross-types.h.
Referenced by analysis_commit(), analysis_init(), io_event_serialize(), io_lp_deserialize(), io_lp_serialize(), phold_event_handler(), phold_init(), phold_pre_run(), send_begin(), st_collect_engine_data_lps(), st_collect_event_data(), st_collect_model_data(), st_create_sample_event(), st_model_setup_types(), tw_event_new(), tw_event_send(), tw_lp_onpe(), tw_lp_settype(), tw_lp_setup_types(), tw_pq_compare_less_than(), tw_rand_init_streams(), and tw_scheduler_conservative().
tw_lpid tw_lp::id |
Definition at line 305 of file ross-types.h.
Referenced by io_store_checkpoint(), late_sanity_check(), and tw_lp_onpe().
tw_kp* tw_lp::kp |
Definition at line 313 of file ross-types.h.
Referenced by analysis_commit(), analysis_init(), late_sanity_check(), recv_finish(), send_finish(), st_collect_engine_data_lps(), st_collect_model_data(), tw_event_rollback(), tw_event_send(), tw_hash_insert(), tw_hash_remove(), tw_lp_onkp(), tw_now(), tw_output(), tw_sched_batch(), tw_sched_batch_realtime(), tw_sched_event_q(), tw_scheduler_conservative(), tw_scheduler_optimistic_debug(), and tw_scheduler_sequential().
struct st_lp_stats* tw_lp::last_stats[3] |
Definition at line 324 of file ross-types.h.
Referenced by st_collect_engine_data_lps(), and tw_init_lps().
struct st_lp_stats* tw_lp::lp_stats |
Definition at line 323 of file ross-types.h.
Referenced by recv_finish(), send_finish(), st_collect_engine_data_lps(), tw_event_rollback(), tw_init_lps(), tw_sched_batch(), tw_sched_batch_realtime(), tw_scheduler_conservative(), and tw_scheduler_sequential().
struct st_model_types* tw_lp::model_types |
Definition at line 322 of file ross-types.h.
Referenced by analysis_commit(), analysis_event(), analysis_event_rc(), analysis_init(), st_collect_event_data(), st_collect_model_data(), st_model_settype(), and st_model_setup_types().
tw_pe* tw_lp::pe |
Definition at line 308 of file ross-types.h.
Referenced by analysis_commit(), analysis_event(), analysis_event_rc(), event_cancel(), late_sanity_check(), recv_finish(), tw_event_new(), tw_event_rollback(), tw_event_send(), tw_eventq_push_list(), tw_init_lps(), tw_lp_onpe(), tw_lp_settype(), tw_lp_suspend(), tw_net_cancel(), tw_net_send(), tw_output(), tw_pre_run_lps(), tw_scheduler_conservative(), tw_snapshot(), tw_snapshot_delta(), and tw_snapshot_restore().
tw_rng_stream* tw_lp::rng |
Definition at line 317 of file ross-types.h.
Referenced by io_lp_deserialize(), io_lp_serialize(), phold_event_handler(), phold_event_handler_rc(), phold_init(), phold_pre_run(), tw_rand_init_streams(), and tw_stats().
unsigned int tw_lp::suspend_do_orig_event_rc |
Definition at line 330 of file ross-types.h.
Referenced by tw_event_rollback(), and tw_lp_suspend().
unsigned int tw_lp::suspend_error_number |
Definition at line 329 of file ross-types.h.
Referenced by tw_event_rollback(), and tw_lp_suspend().
tw_event* tw_lp::suspend_event |
Definition at line 327 of file ross-types.h.
Referenced by tw_event_rollback(), and tw_lp_suspend().
unsigned int tw_lp::suspend_flag |
Definition at line 331 of file ross-types.h.
Referenced by tw_event_rollback(), tw_lp_suspend(), tw_sched_batch(), and tw_sched_batch_realtime().
tw_stime tw_lp::suspend_time |
Definition at line 328 of file ross-types.h.
Referenced by tw_event_rollback(), and tw_lp_suspend().
tw_lptype* tw_lp::type |
Definition at line 316 of file ross-types.h.
Referenced by late_sanity_check(), send_begin(), tw_event_rollback(), tw_event_send(), tw_eventq_push_list(), tw_init_lps(), tw_lp_settype(), tw_lp_setup_types(), tw_pre_run_lps(), tw_sched_batch(), tw_sched_batch_realtime(), tw_scheduler_conservative(), tw_scheduler_optimistic_debug(), tw_scheduler_sequential(), and tw_stats().