X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d6d03a0a88c2673c9e5c604d63912b77bc17fdd4..7c4bef6efee6ba4a06f99e78ea1198d74dc520fc:/src/simix/popping_generated.cpp diff --git a/src/simix/popping_generated.cpp b/src/simix/popping_generated.cpp index 968e7bc158..d5e4940672 100644 --- a/src/simix/popping_generated.cpp +++ b/src/simix/popping_generated.cpp @@ -4,6 +4,7 @@ /* DO NOT EVER CHANGE THIS FILE */ /* */ /* change simcalls specification in src/simix/simcalls.in */ +/* Copyright (c) 2014-2017. The SimGrid Team. All rights reserved. */ /**********************************************************************/ /* @@ -28,9 +29,6 @@ const char* simcall_names[] = { "SIMCALL_PROCESS_KILLALL", "SIMCALL_PROCESS_CLEANUP", "SIMCALL_PROCESS_SUSPEND", - "SIMCALL_PROCESS_RESUME", - "SIMCALL_PROCESS_SET_HOST", - "SIMCALL_PROCESS_IS_SUSPENDED", "SIMCALL_PROCESS_JOIN", "SIMCALL_PROCESS_SLEEP", "SIMCALL_EXECUTION_START", @@ -40,7 +38,6 @@ const char* simcall_names[] = { "SIMCALL_EXECUTION_SET_BOUND", "SIMCALL_EXECUTION_WAIT", "SIMCALL_PROCESS_ON_EXIT", - "SIMCALL_PROCESS_AUTO_RESTART_SET", "SIMCALL_PROCESS_RESTART", "SIMCALL_COMM_IPROBE", "SIMCALL_COMM_SEND", @@ -68,15 +65,6 @@ const char* simcall_names[] = { "SIMCALL_SEM_GET_CAPACITY", "SIMCALL_FILE_READ", "SIMCALL_FILE_WRITE", - "SIMCALL_FILE_OPEN", - "SIMCALL_FILE_CLOSE", - "SIMCALL_FILE_UNLINK", - "SIMCALL_FILE_GET_SIZE", - "SIMCALL_FILE_TELL", - "SIMCALL_FILE_SEEK", - "SIMCALL_FILE_GET_INFO", - "SIMCALL_FILE_MOVE", - "SIMCALL_STORAGE_GET_PROPERTIES", "SIMCALL_MC_RANDOM", "SIMCALL_SET_CATEGORY", "SIMCALL_RUN_KERNEL", @@ -85,7 +73,7 @@ const char* simcall_names[] = { /** @private * @brief (in kernel mode) unpack the simcall and activate the handler - * + * * This function is generated from src/simix/simcalls.in */ void SIMIX_simcall_handle(smx_simcall_t simcall, int value) { @@ -113,21 +101,6 @@ case SIMCALL_PROCESS_SUSPEND: simcall_HANDLER_process_suspend(simcall, simgrid::simix::unmarshal(simcall->args[0])); break; -case SIMCALL_PROCESS_RESUME: - SIMIX_process_resume(simgrid::simix::unmarshal(simcall->args[0])); - SIMIX_simcall_answer(simcall); - break; - -case SIMCALL_PROCESS_SET_HOST: - simcall_HANDLER_process_set_host(simcall, simgrid::simix::unmarshal(simcall->args[0]), simgrid::simix::unmarshal(simcall->args[1])); - SIMIX_simcall_answer(simcall); - break; - -case SIMCALL_PROCESS_IS_SUSPENDED: - simgrid::simix::marshal(simcall->result, SIMIX_process_is_suspended(simgrid::simix::unmarshal(simcall->args[0]))); - SIMIX_simcall_answer(simcall); - break; - case SIMCALL_PROCESS_JOIN: simcall_HANDLER_process_join(simcall, simgrid::simix::unmarshal(simcall->args[0]), simgrid::simix::unmarshal(simcall->args[1])); break; @@ -137,87 +110,130 @@ case SIMCALL_PROCESS_SLEEP: break; case SIMCALL_EXECUTION_START: - simgrid::simix::marshal(simcall->result, simcall_HANDLER_execution_start(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]))); - SIMIX_simcall_answer(simcall); - break; + simgrid::simix::marshal>( + simcall->result, + simcall_HANDLER_execution_start(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]))); + SIMIX_simcall_answer(simcall); + break; case SIMCALL_EXECUTION_PARALLEL_START: - simgrid::simix::marshal(simcall->result, SIMIX_execution_parallel_start(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]))); - SIMIX_simcall_answer(simcall); - break; + simgrid::simix::marshal>( + simcall->result, + SIMIX_execution_parallel_start( + 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]))); + SIMIX_simcall_answer(simcall); + break; case SIMCALL_EXECUTION_CANCEL: - SIMIX_execution_cancel(simgrid::simix::unmarshal(simcall->args[0])); - SIMIX_simcall_answer(simcall); - break; + SIMIX_execution_cancel( + simgrid::simix::unmarshal>(simcall->args[0])); + SIMIX_simcall_answer(simcall); + break; case SIMCALL_EXECUTION_SET_PRIORITY: - SIMIX_execution_set_priority(simgrid::simix::unmarshal(simcall->args[0]), simgrid::simix::unmarshal(simcall->args[1])); - SIMIX_simcall_answer(simcall); - break; + SIMIX_execution_set_priority( + simgrid::simix::unmarshal>(simcall->args[0]), + simgrid::simix::unmarshal(simcall->args[1])); + SIMIX_simcall_answer(simcall); + break; case SIMCALL_EXECUTION_SET_BOUND: - SIMIX_execution_set_bound(simgrid::simix::unmarshal(simcall->args[0]), simgrid::simix::unmarshal(simcall->args[1])); - SIMIX_simcall_answer(simcall); - break; + SIMIX_execution_set_bound( + simgrid::simix::unmarshal>(simcall->args[0]), + simgrid::simix::unmarshal(simcall->args[1])); + SIMIX_simcall_answer(simcall); + break; case SIMCALL_EXECUTION_WAIT: - simcall_HANDLER_execution_wait(simcall, simgrid::simix::unmarshal(simcall->args[0])); - break; + simcall_HANDLER_execution_wait( + simcall, + simgrid::simix::unmarshal>(simcall->args[0])); + break; case SIMCALL_PROCESS_ON_EXIT: SIMIX_process_on_exit(simgrid::simix::unmarshal(simcall->args[0]), simgrid::simix::unmarshal(simcall->args[1]), simgrid::simix::unmarshal(simcall->args[2])); SIMIX_simcall_answer(simcall); break; -case SIMCALL_PROCESS_AUTO_RESTART_SET: - SIMIX_process_auto_restart_set(simgrid::simix::unmarshal(simcall->args[0]), simgrid::simix::unmarshal(simcall->args[1])); - SIMIX_simcall_answer(simcall); - break; - case SIMCALL_PROCESS_RESTART: simgrid::simix::marshal(simcall->result, simcall_HANDLER_process_restart(simcall, simgrid::simix::unmarshal(simcall->args[0]))); SIMIX_simcall_answer(simcall); break; case SIMCALL_COMM_IPROBE: - simgrid::simix::marshal(simcall->result, simcall_HANDLER_comm_iprobe(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]))); - SIMIX_simcall_answer(simcall); - break; + simgrid::simix::marshal>( + simcall->result, simcall_HANDLER_comm_iprobe(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]))); + SIMIX_simcall_answer(simcall); + 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])); 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]))); - SIMIX_simcall_answer(simcall); - break; + 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]))); + SIMIX_simcall_answer(simcall); + 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])); 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]))); - SIMIX_simcall_answer(simcall); - break; + 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]))); + SIMIX_simcall_answer(simcall); + break; case SIMCALL_COMM_WAITANY: simcall_HANDLER_comm_waitany(simcall, simgrid::simix::unmarshal(simcall->args[0]), simgrid::simix::unmarshal(simcall->args[1])); break; case SIMCALL_COMM_WAIT: - simcall_HANDLER_comm_wait(simcall, simgrid::simix::unmarshal(simcall->args[0]), simgrid::simix::unmarshal(simcall->args[1])); - break; + 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])); - break; + 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])); - break; + simcall_HANDLER_comm_testany( + simcall, + simgrid::simix::unmarshal*>(simcall->args[0]), + simgrid::simix::unmarshal(simcall->args[1])); + break; case SIMCALL_MUTEX_INIT: simgrid::simix::marshal(simcall->result, simcall_HANDLER_mutex_init(simcall)); @@ -290,55 +306,14 @@ case SIMCALL_SEM_GET_CAPACITY: break; case SIMCALL_FILE_READ: - simcall_HANDLER_file_read(simcall, simgrid::simix::unmarshal(simcall->args[0]), simgrid::simix::unmarshal(simcall->args[1]), simgrid::simix::unmarshal(simcall->args[2])); - break; + simcall_HANDLER_file_read(simcall, simgrid::simix::unmarshal(simcall->args[0]), + simgrid::simix::unmarshal(simcall->args[1])); + break; case SIMCALL_FILE_WRITE: - simcall_HANDLER_file_write(simcall, simgrid::simix::unmarshal(simcall->args[0]), simgrid::simix::unmarshal(simcall->args[1]), simgrid::simix::unmarshal(simcall->args[2])); - break; - -case SIMCALL_FILE_OPEN: - simcall_HANDLER_file_open(simcall, simgrid::simix::unmarshal(simcall->args[0]), simgrid::simix::unmarshal(simcall->args[1])); - break; - -case SIMCALL_FILE_CLOSE: - simcall_HANDLER_file_close(simcall, simgrid::simix::unmarshal(simcall->args[0]), simgrid::simix::unmarshal(simcall->args[1])); - break; - -case SIMCALL_FILE_UNLINK: - simgrid::simix::marshal(simcall->result, SIMIX_file_unlink(simgrid::simix::unmarshal(simcall->args[0]), simgrid::simix::unmarshal(simcall->args[1]))); - SIMIX_simcall_answer(simcall); - break; - -case SIMCALL_FILE_GET_SIZE: - simgrid::simix::marshal(simcall->result, simcall_HANDLER_file_get_size(simcall, simgrid::simix::unmarshal(simcall->args[0]))); - SIMIX_simcall_answer(simcall); - break; - -case SIMCALL_FILE_TELL: - simgrid::simix::marshal(simcall->result, simcall_HANDLER_file_tell(simcall, simgrid::simix::unmarshal(simcall->args[0]))); - SIMIX_simcall_answer(simcall); - break; - -case SIMCALL_FILE_SEEK: - simgrid::simix::marshal(simcall->result, simcall_HANDLER_file_seek(simcall, simgrid::simix::unmarshal(simcall->args[0]), simgrid::simix::unmarshal(simcall->args[1]), simgrid::simix::unmarshal(simcall->args[2]))); - SIMIX_simcall_answer(simcall); - break; - -case SIMCALL_FILE_GET_INFO: - simgrid::simix::marshal(simcall->result, simcall_HANDLER_file_get_info(simcall, simgrid::simix::unmarshal(simcall->args[0]))); - SIMIX_simcall_answer(simcall); - break; - -case SIMCALL_FILE_MOVE: - simgrid::simix::marshal(simcall->result, simcall_HANDLER_file_move(simcall, simgrid::simix::unmarshal(simcall->args[0]), simgrid::simix::unmarshal(simcall->args[1]))); - SIMIX_simcall_answer(simcall); - break; - -case SIMCALL_STORAGE_GET_PROPERTIES: - simgrid::simix::marshal(simcall->result, SIMIX_storage_get_properties(simgrid::simix::unmarshal(simcall->args[0]))); - SIMIX_simcall_answer(simcall); - break; + simcall_HANDLER_file_write(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]))); @@ -346,9 +321,11 @@ case SIMCALL_MC_RANDOM: break; case SIMCALL_SET_CATEGORY: - SIMIX_set_category(simgrid::simix::unmarshal(simcall->args[0]), simgrid::simix::unmarshal(simcall->args[1])); - SIMIX_simcall_answer(simcall); - break; + SIMIX_set_category( + simgrid::simix::unmarshal>(simcall->args[0]), + simgrid::simix::unmarshal(simcall->args[1])); + SIMIX_simcall_answer(simcall); + break; case SIMCALL_RUN_KERNEL: SIMIX_run_kernel(simgrid::simix::unmarshal const*>(simcall->args[0]));