LP State Structure. More...
#include <ross-types.h>
Data Fields | |
tw_lpid | id |
local LP id | |
tw_lpid | gid |
global LP id | |
tw_pe * | pe |
tw_kp * | kp |
kp – Kernel process that we belong to (must match pe). | |
void * | cur_state |
Current application LP data. | |
tw_lptype * | type |
Type of this LP, including service callbacks. | |
tw_rng_stream * | rng |
RNG stream array for this LP. | |
tw_rng_stream * | core_rng |
RNG stream array for ROSS non-model operation - possible alternative to a model_rng pointer array. | |
unsigned int | critical_path |
Critical path value for this LP. | |
struct st_model_types * | model_types |
struct st_lp_stats * | lp_stats |
struct st_lp_stats * | last_stats [3] |
tw_event * | suspend_event |
tw_event_sig | suspend_sig |
unsigned int | suspend_error_number |
unsigned int | suspend_do_orig_event_rc |
unsigned int | suspend_flag |
tw_stime | suspend_time |
unsigned int | triggered_gvt_hook |
Holds 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 336 of file ross-types.h.
tw_rng_stream * tw_lp::core_rng |
Definition at line 350 of file ross-types.h.
Referenced by crv_check_lpstates(), crv_copy_lpstate(), tw_event_new_user_prio(), tw_event_rollback(), and tw_rand_init_streams().
unsigned int tw_lp::critical_path |
Definition at line 352 of file ross-types.h.
Referenced by io_lp_deserialize(), io_lp_serialize(), tw_event_new_user_prio(), tw_event_rollback(), tw_sched_batch(), tw_sched_batch_realtime(), tw_scheduler_conservative(), tw_scheduler_optimistic_debug(), tw_scheduler_sequential(), and tw_scheduler_sequential_rollback_check().
void * tw_lp::cur_state |
Definition at line 347 of file ross-types.h.
Referenced by analysis_event(), analysis_event_rc(), crv_check_lpstates(), crv_copy_lpstate(), print_event(), 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_scheduler_sequential_rollback_check(), tw_snapshot(), tw_snapshot_delta(), tw_snapshot_restore(), and tw_stats().
tw_lpid tw_lp::gid |
Definition at line 338 of file ross-types.h.
Referenced by analysis_commit(), analysis_init(), crv_check_lpstates(), 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_all_lp_stats(), tw_event_new_user_prio(), tw_event_send(), 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 337 of file ross-types.h.
Referenced by crv_check_lpstates(), crv_clean_lpstate(), crv_copy_lpstate(), and late_sanity_check().
tw_kp * tw_lp::kp |
Definition at line 345 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_now_sig(), tw_output(), tw_sched_batch(), tw_sched_batch_realtime(), tw_sched_event_q(), tw_scheduler_conservative(), tw_scheduler_optimistic_debug(), tw_scheduler_sequential(), tw_scheduler_sequential_rollback_check(), and tw_trigger_gvt_hook_now().
struct st_lp_stats * tw_lp::last_stats |
Definition at line 357 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 356 of file ross-types.h.
Referenced by recv_finish(), send_finish(), st_collect_engine_data_lps(), tw_all_lp_stats(), tw_event_rollback(), tw_eventq_push_list(), tw_init_lps(), tw_sched_batch(), tw_sched_batch_realtime(), tw_scheduler_conservative(), tw_scheduler_sequential(), and tw_scheduler_sequential_rollback_check().
struct st_model_types * tw_lp::model_types |
Definition at line 355 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 340 of file ross-types.h.
Referenced by analysis_commit(), analysis_event(), analysis_event_rc(), event_cancel(), late_sanity_check(), recv_finish(), tw_event_new_user_prio(), tw_event_rollback(), tw_event_send(), tw_eventq_push_list(), tw_init_lps(), 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(), tw_snapshot_restore(), and tw_trigger_gvt_hook_now().
tw_rng_stream * tw_lp::rng |
Definition at line 349 of file ross-types.h.
Referenced by crv_check_lpstates(), crv_copy_lpstate(), 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 367 of file ross-types.h.
Referenced by tw_event_rollback(), and tw_lp_suspend().
unsigned int tw_lp::suspend_error_number |
Definition at line 366 of file ross-types.h.
Referenced by tw_event_rollback(), and tw_lp_suspend().
tw_event * tw_lp::suspend_event |
Definition at line 360 of file ross-types.h.
Referenced by tw_event_rollback(), and tw_lp_suspend().
unsigned int tw_lp::suspend_flag |
Definition at line 368 of file ross-types.h.
Referenced by tw_event_rollback(), tw_lp_suspend(), tw_sched_batch(), and tw_sched_batch_realtime().
tw_event_sig tw_lp::suspend_sig |
Definition at line 362 of file ross-types.h.
Referenced by tw_event_rollback(), and tw_lp_suspend().
tw_stime tw_lp::suspend_time |
Definition at line 364 of file ross-types.h.
Referenced by tw_event_rollback(), and tw_lp_suspend().
unsigned int tw_lp::triggered_gvt_hook |
Definition at line 369 of file ross-types.h.
Referenced by crv_check_lpstates(), crv_copy_lpstate(), tw_trigger_gvt_hook_now(), and tw_trigger_gvt_hook_now_rev().
tw_lptype * tw_lp::type |
Definition at line 348 of file ross-types.h.
Referenced by crv_check_lpstates(), crv_copy_lpstate(), crv_init_checkpoints(), 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(), tw_scheduler_sequential_rollback_check(), and tw_stats().