ROSS
analysis-lp.h
Go to the documentation of this file.
1 #ifndef INC_analysis_lp_h
2 #define INC_analysis_lp_h
3 
4 #include <ross.h>
5 
7 typedef struct analysis_msg analysis_msg;
9 typedef struct lp_metadata lp_metadata;
10 
11 typedef enum{
13  ALP_FULL, // LP, KP, and PE
14  ALP_KP, // KP and PE
15  ALP_PE, //PE only
18 
20 {
23 
24 };
25 
27 {
33  int sample_sz;
34  int flag; // 0 == PE, 1 == KP, 2 == LP, 3 == model
35 };
36 
38 {
42  void **lp_data; /* data for each LP on the associated KP at this sampling point */
43 };
44 
46 {
47  tw_lpid analysis_id; // id among analysis LPs only
48  int num_lps;
50  tw_lpid *lp_list; // list of LPs that the analysis LP is responsible for
55 };
56 
57 void analysis_init(analysis_state *s, tw_lp *lp);
62 void collect_sim_engine_data(tw_pe *pe, tw_lp *lp, analysis_state *s, tw_stime current_rt);
64 
67 #endif
tw_peid peid
Definition: analysis-lp.h:30
void analysis_event_rc(analysis_state *s, tw_bf *bf, analysis_msg *m, tw_lp *lp)
Definition: analysis-lp.c:146
tw_lpid analysis_start_gid
double tw_stime
Definition: ross.h:150
void st_analysis_lp_settype(tw_lpid lpid)
Definition: analysis-lp.c:300
model_sample_data * model_samples_current
Definition: analysis-lp.h:53
tw_lpid src
Definition: analysis-lp.h:21
void analysis_commit(analysis_state *s, tw_bf *bf, analysis_msg *m, tw_lp *lp)
Definition: analysis-lp.c:199
Holds the entire PE state.
Definition: ross-types.h:375
tw_stime timestamp
Definition: analysis-lp.h:41
uint64_t tw_lpid
Definition: ross.h:160
void analysis_finish(analysis_state *s, tw_lp *lp)
Definition: analysis-lp.c:258
tw_lpid * lp_list_sim
Definition: analysis-lp.h:51
void collect_sim_engine_data(tw_pe *pe, tw_lp *lp, analysis_state *s, tw_stime current_rt)
Reverse Computation Bitfield.
Definition: ross-types.h:178
tw_kpid kpid
Definition: analysis-lp.h:29
void analysis_event(analysis_state *s, tw_bf *bf, analysis_msg *m, tw_lp *lp)
Definition: analysis-lp.c:94
model_sample_data * prev
Definition: analysis-lp.h:39
void analysis_init(analysis_state *s, tw_lp *lp)
Definition: analysis-lp.c:13
tw_lpid * lp_list
Definition: analysis-lp.h:50
unsigned long tw_peid
Definition: ross.h:147
analysis_type_flag
Definition: analysis-lp.h:11
tw_peid tw_kpid
Definition: ross-types.h:45
tw_pe * pe
Definition: avl_tree.c:11
tw_lpid analysis_id
Definition: analysis-lp.h:47
model_sample_data * next
Definition: analysis-lp.h:40
tw_peid analysis_map(tw_lpid gid)
Definition: analysis-lp.c:282
model_sample_data * model_samples_tail
Definition: analysis-lp.h:54
tw_stime real_time
Definition: analysis-lp.h:32
tw_stime ts
Definition: analysis-lp.h:31
model_sample_data * model_samples_head
Definition: analysis-lp.h:52
tw_lpid lpid
Definition: analysis-lp.h:28
LP State Structure.
Definition: ross-types.h:304
tw_stime timestamp
Definition: analysis-lp.h:22