int MRA_main (const char* plat, const char* depl, const char* conf, const char* trace_vc) { int argc = 8; char* argv[] = { "mra", "--cfg=tracing:1", "--cfg=tracing/buffer:1", "--cfg=tracing/filename:tracefile.trace", "--cfg=tracing/categorized:1", "--cfg=tracing/uncategorized:1", "--cfg=viva/categorized:cat.plist", "--cfg=viva/uncategorized:uncat.plist" }; msg_error_t res_mra = MSG_OK; config_mra.initialized = 0; check_config_mra (); MSG_init (&argc, argv); res_mra = run_mra_simulation (plat, depl, conf, trace_vc); if (res_mra == MSG_OK) return 0; else return 1; }
int BIGHYBRID_main (const char* plat, const char* depl, const char* conf, const char* vc_file) { int argc = 8; char* argv[] = { "bighybrid", "--cfg=tracing:yes", "--cfg=tracing/buffer:yes", "--cfg=tracing/filename:tracefile.trace", "--cfg=tracing/categorized:yes", "--cfg=tracing/uncategorized:yes", "--cfg=viva/categorized:cat.plist", "--cfg=viva/uncategorized:uncat.plist" }; msg_error_t res_bighybrid = MSG_OK; config_mra.initialized = 0; config_mrsg.initialized = 0; check_config_mra (); check_config_mrsg (); //Initialize MRA and MRSG MSG_init (&argc, argv); res_bighybrid = run_hybrid_simulation (plat, depl, conf, vc_file); if (res_bighybrid == MSG_OK) return 0; else return 1; }