X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/149c63f36e15b8500b1e826bda5138318ff7ba2b..539af86e870c62ba4a28b5b4e0cedd252881dfb0:/src/simix/popping_generated.cpp diff --git a/src/simix/popping_generated.cpp b/src/simix/popping_generated.cpp index 8d4fd42e89..e83d930e8e 100644 --- a/src/simix/popping_generated.cpp +++ b/src/simix/popping_generated.cpp @@ -24,11 +24,9 @@ XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(simix_popping); /** @brief Simcalls' names (generated from src/simix/simcalls.in) */ -const char* simcall_names[] = { +const std::array simcall_names{{ "SIMCALL_NONE", - "SIMCALL_EXECUTION_WAIT", "SIMCALL_EXECUTION_WAITANY_FOR", - "SIMCALL_EXECUTION_TEST", "SIMCALL_COMM_SEND", "SIMCALL_COMM_ISEND", "SIMCALL_COMM_RECV", @@ -44,12 +42,10 @@ const char* simcall_names[] = { "SIMCALL_COND_WAIT_TIMEOUT", "SIMCALL_SEM_ACQUIRE", "SIMCALL_SEM_ACQUIRE_TIMEOUT", - "SIMCALL_IO_WAIT", - "SIMCALL_IO_TEST", "SIMCALL_MC_RANDOM", "SIMCALL_RUN_KERNEL", "SIMCALL_RUN_BLOCKING", -}; +}}; /** @private * @brief (in kernel mode) unpack the simcall and activate the handler @@ -57,107 +53,91 @@ const char* simcall_names[] = { * This function is generated from src/simix/simcalls.in */ void simgrid::kernel::actor::ActorImpl::simcall_handle(int value) { - XBT_DEBUG("Handling simcall %p: %s", &simcall, SIMIX_simcall_name(simcall.call_)); - SIMCALL_SET_MC_VALUE(simcall, value); + XBT_DEBUG("Handling simcall %p: %s", &simcall_, SIMIX_simcall_name(simcall_.call_)); + SIMCALL_SET_MC_VALUE(simcall_, value); if (context_->wannadie()) return; - switch (simcall.call_) { - case SIMCALL_EXECUTION_WAIT: - simcall_HANDLER_execution_wait(&simcall, simgrid::simix::unmarshal(simcall.args_[0]), simgrid::simix::unmarshal(simcall.args_[1])); - break; - + switch (simcall_.call_) { case SIMCALL_EXECUTION_WAITANY_FOR: - simcall_HANDLER_execution_waitany_for(&simcall, simgrid::simix::unmarshal(simcall.args_[0]), simgrid::simix::unmarshal(simcall.args_[1]), simgrid::simix::unmarshal(simcall.args_[2])); - break; - - case SIMCALL_EXECUTION_TEST: - simcall_HANDLER_execution_test(&simcall, simgrid::simix::unmarshal(simcall.args_[0])); + simcall_HANDLER_execution_waitany_for(&simcall_, simgrid::simix::unmarshal(simcall_.args_[0]), simgrid::simix::unmarshal(simcall_.args_[1]), simgrid::simix::unmarshal(simcall_.args_[2])); break; case SIMCALL_COMM_SEND: - simcall_HANDLER_comm_send(&simcall, simgrid::simix::unmarshal(simcall.args_[0]), simgrid::simix::unmarshal(simcall.args_[1]), simgrid::simix::unmarshal(simcall.args_[2]), simgrid::simix::unmarshal(simcall.args_[3]), simgrid::simix::unmarshal(simcall.args_[4]), simgrid::simix::unmarshal(simcall.args_[5]), simgrid::simix::unmarshal(simcall.args_[6]), simgrid::simix::unmarshal(simcall.args_[7]), simgrid::simix::unmarshal(simcall.args_[8]), simgrid::simix::unmarshal(simcall.args_[9])); + simcall_HANDLER_comm_send(&simcall_, simgrid::simix::unmarshal(simcall_.args_[0]), simgrid::simix::unmarshal(simcall_.args_[1]), simgrid::simix::unmarshal(simcall_.args_[2]), simgrid::simix::unmarshal(simcall_.args_[3]), simgrid::simix::unmarshal(simcall_.args_[4]), simgrid::simix::unmarshal(simcall_.args_[5]), simgrid::simix::unmarshal(simcall_.args_[6]), simgrid::simix::unmarshal(simcall_.args_[7]), simgrid::simix::unmarshal(simcall_.args_[8]), simgrid::simix::unmarshal(simcall_.args_[9])); break; case SIMCALL_COMM_ISEND: - simgrid::simix::marshal>(simcall.result_, simcall_HANDLER_comm_isend(&simcall, simgrid::simix::unmarshal(simcall.args_[0]), simgrid::simix::unmarshal(simcall.args_[1]), simgrid::simix::unmarshal(simcall.args_[2]), simgrid::simix::unmarshal(simcall.args_[3]), simgrid::simix::unmarshal(simcall.args_[4]), simgrid::simix::unmarshal(simcall.args_[5]), simgrid::simix::unmarshal(simcall.args_[6]), simgrid::simix::unmarshal(simcall.args_[7]), simgrid::simix::unmarshal(simcall.args_[8]), simgrid::simix::unmarshal(simcall.args_[9]), simgrid::simix::unmarshal(simcall.args_[10]))); + simgrid::simix::marshal>(simcall_.result_, simcall_HANDLER_comm_isend(&simcall_, simgrid::simix::unmarshal(simcall_.args_[0]), simgrid::simix::unmarshal(simcall_.args_[1]), simgrid::simix::unmarshal(simcall_.args_[2]), simgrid::simix::unmarshal(simcall_.args_[3]), simgrid::simix::unmarshal(simcall_.args_[4]), simgrid::simix::unmarshal(simcall_.args_[5]), simgrid::simix::unmarshal(simcall_.args_[6]), simgrid::simix::unmarshal(simcall_.args_[7]), simgrid::simix::unmarshal(simcall_.args_[8]), simgrid::simix::unmarshal(simcall_.args_[9]), simgrid::simix::unmarshal(simcall_.args_[10]))); simcall_answer(); break; case SIMCALL_COMM_RECV: - simcall_HANDLER_comm_recv(&simcall, simgrid::simix::unmarshal(simcall.args_[0]), simgrid::simix::unmarshal(simcall.args_[1]), simgrid::simix::unmarshal(simcall.args_[2]), simgrid::simix::unmarshal(simcall.args_[3]), simgrid::simix::unmarshal(simcall.args_[4]), simgrid::simix::unmarshal(simcall.args_[5]), simgrid::simix::unmarshal(simcall.args_[6]), simgrid::simix::unmarshal(simcall.args_[7]), simgrid::simix::unmarshal(simcall.args_[8])); + simcall_HANDLER_comm_recv(&simcall_, simgrid::simix::unmarshal(simcall_.args_[0]), simgrid::simix::unmarshal(simcall_.args_[1]), simgrid::simix::unmarshal(simcall_.args_[2]), simgrid::simix::unmarshal(simcall_.args_[3]), simgrid::simix::unmarshal(simcall_.args_[4]), simgrid::simix::unmarshal(simcall_.args_[5]), simgrid::simix::unmarshal(simcall_.args_[6]), simgrid::simix::unmarshal(simcall_.args_[7]), simgrid::simix::unmarshal(simcall_.args_[8])); break; case SIMCALL_COMM_IRECV: - simgrid::simix::marshal>(simcall.result_, simcall_HANDLER_comm_irecv(&simcall, simgrid::simix::unmarshal(simcall.args_[0]), simgrid::simix::unmarshal(simcall.args_[1]), simgrid::simix::unmarshal(simcall.args_[2]), simgrid::simix::unmarshal(simcall.args_[3]), simgrid::simix::unmarshal(simcall.args_[4]), simgrid::simix::unmarshal(simcall.args_[5]), simgrid::simix::unmarshal(simcall.args_[6]), simgrid::simix::unmarshal(simcall.args_[7]))); + simgrid::simix::marshal>(simcall_.result_, simcall_HANDLER_comm_irecv(&simcall_, simgrid::simix::unmarshal(simcall_.args_[0]), simgrid::simix::unmarshal(simcall_.args_[1]), simgrid::simix::unmarshal(simcall_.args_[2]), simgrid::simix::unmarshal(simcall_.args_[3]), simgrid::simix::unmarshal(simcall_.args_[4]), simgrid::simix::unmarshal(simcall_.args_[5]), simgrid::simix::unmarshal(simcall_.args_[6]), simgrid::simix::unmarshal(simcall_.args_[7]))); simcall_answer(); break; case SIMCALL_COMM_WAITANY: - simcall_HANDLER_comm_waitany(&simcall, simgrid::simix::unmarshal(simcall.args_[0]), simgrid::simix::unmarshal(simcall.args_[1]), simgrid::simix::unmarshal(simcall.args_[2])); + simcall_HANDLER_comm_waitany(&simcall_, simgrid::simix::unmarshal(simcall_.args_[0]), simgrid::simix::unmarshal(simcall_.args_[1]), simgrid::simix::unmarshal(simcall_.args_[2])); break; case SIMCALL_COMM_WAIT: - simcall_HANDLER_comm_wait(&simcall, simgrid::simix::unmarshal(simcall.args_[0]), simgrid::simix::unmarshal(simcall.args_[1])); + simcall_HANDLER_comm_wait(&simcall_, simgrid::simix::unmarshal(simcall_.args_[0]), simgrid::simix::unmarshal(simcall_.args_[1])); break; case SIMCALL_COMM_TEST: - simcall_HANDLER_comm_test(&simcall, simgrid::simix::unmarshal(simcall.args_[0])); + simcall_HANDLER_comm_test(&simcall_, simgrid::simix::unmarshal(simcall_.args_[0])); break; case SIMCALL_COMM_TESTANY: - simcall_HANDLER_comm_testany(&simcall, simgrid::simix::unmarshal(simcall.args_[0]), simgrid::simix::unmarshal(simcall.args_[1])); + simcall_HANDLER_comm_testany(&simcall_, simgrid::simix::unmarshal(simcall_.args_[0]), simgrid::simix::unmarshal(simcall_.args_[1])); break; case SIMCALL_MUTEX_LOCK: - simcall_HANDLER_mutex_lock(&simcall, simgrid::simix::unmarshal(simcall.args_[0])); + simcall_HANDLER_mutex_lock(&simcall_, simgrid::simix::unmarshal(simcall_.args_[0])); break; case SIMCALL_MUTEX_TRYLOCK: - simgrid::simix::marshal(simcall.result_, simcall_HANDLER_mutex_trylock(&simcall, simgrid::simix::unmarshal(simcall.args_[0]))); + simgrid::simix::marshal(simcall_.result_, simcall_HANDLER_mutex_trylock(&simcall_, simgrid::simix::unmarshal(simcall_.args_[0]))); simcall_answer(); break; case SIMCALL_MUTEX_UNLOCK: - simcall_HANDLER_mutex_unlock(&simcall, simgrid::simix::unmarshal(simcall.args_[0])); + simcall_HANDLER_mutex_unlock(&simcall_, simgrid::simix::unmarshal(simcall_.args_[0])); simcall_answer(); break; case SIMCALL_COND_WAIT: - simcall_HANDLER_cond_wait(&simcall, simgrid::simix::unmarshal(simcall.args_[0]), simgrid::simix::unmarshal(simcall.args_[1])); + simcall_HANDLER_cond_wait(&simcall_, simgrid::simix::unmarshal(simcall_.args_[0]), simgrid::simix::unmarshal(simcall_.args_[1])); break; case SIMCALL_COND_WAIT_TIMEOUT: - simcall_HANDLER_cond_wait_timeout(&simcall, simgrid::simix::unmarshal(simcall.args_[0]), simgrid::simix::unmarshal(simcall.args_[1]), simgrid::simix::unmarshal(simcall.args_[2])); + simcall_HANDLER_cond_wait_timeout(&simcall_, simgrid::simix::unmarshal(simcall_.args_[0]), simgrid::simix::unmarshal(simcall_.args_[1]), simgrid::simix::unmarshal(simcall_.args_[2])); break; case SIMCALL_SEM_ACQUIRE: - simcall_HANDLER_sem_acquire(&simcall, simgrid::simix::unmarshal(simcall.args_[0])); + simcall_HANDLER_sem_acquire(&simcall_, simgrid::simix::unmarshal(simcall_.args_[0])); break; case SIMCALL_SEM_ACQUIRE_TIMEOUT: - simcall_HANDLER_sem_acquire_timeout(&simcall, simgrid::simix::unmarshal(simcall.args_[0]), simgrid::simix::unmarshal(simcall.args_[1])); - break; - - case SIMCALL_IO_WAIT: - simcall_HANDLER_io_wait(&simcall, simgrid::simix::unmarshal(simcall.args_[0]), simgrid::simix::unmarshal(simcall.args_[1])); - break; - - case SIMCALL_IO_TEST: - simcall_HANDLER_io_test(&simcall, simgrid::simix::unmarshal(simcall.args_[0])); + simcall_HANDLER_sem_acquire_timeout(&simcall_, simgrid::simix::unmarshal(simcall_.args_[0]), simgrid::simix::unmarshal(simcall_.args_[1])); break; case SIMCALL_MC_RANDOM: - simgrid::simix::marshal(simcall.result_, simcall_HANDLER_mc_random(&simcall, simgrid::simix::unmarshal(simcall.args_[0]), simgrid::simix::unmarshal(simcall.args_[1]))); + simgrid::simix::marshal(simcall_.result_, simcall_HANDLER_mc_random(&simcall_, simgrid::simix::unmarshal(simcall_.args_[0]), simgrid::simix::unmarshal(simcall_.args_[1]))); simcall_answer(); break; case SIMCALL_RUN_KERNEL: - SIMIX_run_kernel(simgrid::simix::unmarshal const*>(simcall.args_[0])); + SIMIX_run_kernel(simgrid::simix::unmarshal const*>(simcall_.args_[0])); simcall_answer(); break; case SIMCALL_RUN_BLOCKING: - SIMIX_run_blocking(simgrid::simix::unmarshal const*>(simcall.args_[0])); + SIMIX_run_blocking(simgrid::simix::unmarshal const*>(simcall_.args_[0])); break; case NUM_SIMCALLS: