void amok_base_init(void) {
gras_datadesc_type_t host_desc;
-
+
+ /* Connect our log channels: that must be done manually under windows */
+ XBT_LOG_CONNECT(amok_bw, amok);
+ XBT_LOG_CONNECT(amok_bw_sat, amok_bw);
+ XBT_LOG_CONNECT(amok_pm, amok);
+
/* Build the datatype descriptions */
host_desc = gras_datadesc_struct("s_xbt_host_t");
gras_datadesc_struct_append(host_desc,"name",gras_datadesc_by_name("string"));
* - declare process specific data we need (without creating them)
*/
if (gras_running_process == 0) {
+ /* Connect our log channels: that must be done manually under windows */
+ XBT_LOG_CONNECT(gras_ddt, gras);
+ XBT_LOG_CONNECT(gras_ddt_cbps, gras_ddt);
+ XBT_LOG_CONNECT(gras_ddt_convert, gras_ddt);
+ XBT_LOG_CONNECT(gras_ddt_create, gras_ddt);
+ XBT_LOG_CONNECT(gras_ddt_exchange, gras_ddt);
+ XBT_LOG_CONNECT(gras_ddt_lexer, gras_ddt_parse);
+ XBT_LOG_CONNECT(gras_ddt_parse, gras_ddt);
+
+ XBT_LOG_CONNECT(gras_modules, gras);
+
+ XBT_LOG_CONNECT(gras_msg, gras);
+ XBT_LOG_CONNECT(gras_msg_read, gras_msg);
+ XBT_LOG_CONNECT(gras_msg_rpc, gras_msg);
+
+ XBT_LOG_CONNECT(gras_timer, gras);
+
+ XBT_LOG_CONNECT(gras_trp, gras);
+ XBT_LOG_CONNECT(gras_trp_file, gras_trp);
+ XBT_LOG_CONNECT(gras_trp_meas, gras_trp);
+ XBT_LOG_CONNECT(gras_trp_sg, gras_trp);
+ XBT_LOG_CONNECT(gras_trp_tcp, gras_trp);
+
+ XBT_LOG_CONNECT(gras_virtu, gras);
+ XBT_LOG_CONNECT(gras_virtu_emul, gras_virtu);
+ XBT_LOG_CONNECT(gras_virtu_process, gras_virtu);
+
gras_trp_register();
gras_msg_register();
}
{
xbt_getpid = MSG_process_self_PID;
if (!msg_global) {
+ /* Connect our log channels: that must be done manually under windows */
+ XBT_LOG_CONNECT(msg_gos, msg);
+ XBT_LOG_CONNECT(msg_kernel, msg);
+ XBT_LOG_CONNECT(msg_mailbox, msg);
+ XBT_LOG_CONNECT(msg_process, msg);
+
SIMIX_global_init(argc, argv);
msg_global = xbt_new0(s_MSG_Global_t, 1);
if (_sd_init_status)
return; /* Already inited, nothing to do */
+ /* Connect our log channels: that must be done manually under windows */
+ XBT_LOG_CONNECT(sd_kernel, sd);
+ XBT_LOG_CONNECT(sd_task, sd);
+ XBT_LOG_CONNECT(sd_workstation, sd);
+
_sd_init_status = 1;
_sd_cfg_set = xbt_cfg_new();
if (_simix_init_status)
return; /* Already inited, nothing to do */
+ /* Connect our log channels: that must be done manually under windows */
+ XBT_LOG_CONNECT(simix_action, simix);
+ XBT_LOG_CONNECT(simix_deployment, simix);
+ XBT_LOG_CONNECT(simix_environment, simix);
+ XBT_LOG_CONNECT(simix_host, simix);
+ XBT_LOG_CONNECT(simix_kernel, simix);
+ XBT_LOG_CONNECT(simix_process, simix);
+ XBT_LOG_CONNECT(simix_synchro, simix);
+
_simix_init_status = 1;
_simix_cfg_set = xbt_cfg_new();
int i;
smpi_host_data_t hdata;
+ /* Connect our log channels: that must be done manually under windows */
+ /* (should be done only once, not for each process) */
+ XBT_LOG_CONNECT(smpi_base, smpi);
+ XBT_LOG_CONNECT(smpi_bench, smpi);
+ XBT_LOG_CONNECT(smpi_kernel, smpi);
+ XBT_LOG_CONNECT(smpi_mpi, smpi);
+ XBT_LOG_CONNECT(smpi_receiver, smpi);
+ XBT_LOG_CONNECT(smpi_sender, smpi);
+ XBT_LOG_CONNECT(smpi_util, smpi);
+
SIMIX_mutex_lock(smpi_global->running_hosts_count_mutex);
smpi_global->running_hosts_count++;
SIMIX_mutex_unlock(smpi_global->running_hosts_count_mutex);
const char *initial_path;
+ /* Connect our log channels: that must be done manually under windows */
+ XBT_LOG_CONNECT(surf_cpu, surf);
+ XBT_LOG_CONNECT(surf_kernel, surf);
+ XBT_LOG_CONNECT(surf_lagrange_dichotomy, surf_lagrange);
+ XBT_LOG_CONNECT(surf_lagrange, surf);
+ XBT_LOG_CONNECT(surf_maxmin, surf);
+ XBT_LOG_CONNECT(surf_network_gtnets, surf);
+ XBT_LOG_CONNECT(surf_network, surf);
+ XBT_LOG_CONNECT(surf_parse, surf);
+ XBT_LOG_CONNECT(surf_sdp_out, surf);
+ XBT_LOG_CONNECT(surf_sdp, surf);
+ XBT_LOG_CONNECT(surf_timer, surf);
+ XBT_LOG_CONNECT(surf_workstation, surf);
+
xbt_init(argc, argv);
if (!surf_path) {
if (xbt_initialized!=1)
return;
+ /* Connect our log channels: that must be done manually under windows */
+ XBT_LOG_CONNECT(graphxml_parse, xbt);
+ XBT_LOG_CONNECT(log, xbt);
+ XBT_LOG_CONNECT(module, xbt);
+ XBT_LOG_CONNECT(peer, xbt);
+ XBT_LOG_CONNECT(strbuff, xbt);
+ XBT_LOG_CONNECT(xbt_cfg, xbt);
+ XBT_LOG_CONNECT(xbt_dict_add, xbt_dict);
+ XBT_LOG_CONNECT(xbt_dict_collapse, xbt_dict);
+ XBT_LOG_CONNECT(xbt_dict_cursor, xbt_dict);
+ XBT_LOG_CONNECT(xbt_dict_elm, xbt_dict);
+ XBT_LOG_CONNECT(xbt_dict_multi, xbt_dict);
+ XBT_LOG_CONNECT(xbt_dict_remove, xbt_dict);
+ XBT_LOG_CONNECT(xbt_dict_search, xbt_dict);
+ XBT_LOG_CONNECT(xbt_dict, xbt);
+ XBT_LOG_CONNECT(xbt_dyn, xbt);
+ XBT_LOG_CONNECT(xbt_ex, xbt);
+ XBT_LOG_CONNECT(xbt_fifo, xbt);
+ XBT_LOG_CONNECT(xbt_graph, xbt);
+ XBT_LOG_CONNECT(xbt_matrix, xbt);
+ XBT_LOG_CONNECT(xbt_queue, xbt);
+ XBT_LOG_CONNECT(xbt_set, xbt);
+ XBT_LOG_CONNECT(xbt_sync_os, xbt);
+ XBT_LOG_CONNECT(xbt_sync_rl, xbt);
+
xbt_binary_name = xbt_strdup(argv[0]);
srand((unsigned int)time(NULL));
VERB0("Initialize XBT");