examples/msg/trace-simple/trace-simple
examples/msg/tracing/tasks
examples/msg/trace-platform/trace-platform
-examples/msg/tracing/user_variables
+examples/msg/trace-user-variables/trace-user-variables
examples/s4u/basic/s4u_basic
examples/s4u/io/s4u_io
examples/simdag/daxload/sd_daxload
foreach(x actions-mpi actions-storage async-wait async-waitall async-waitany dht-chord dht-pastry
exception energy-consumption energy-onoff energy-pstate energy-ptask energy-vm failures io-file io-file-unlink
io-remote io-storage pmm priority process-kill process-migration process-suspend properties sendrecv
- set-maestro start_kill_time synchro token_ring trace-categories trace-platform trace-simple)
+ set-maestro start_kill_time synchro token_ring
+ trace-categories trace-platform trace-simple trace-user-variables)
add_executable (${x} ${x}/${x}.c)
target_link_libraries(${x} simgrid)
set_target_properties(${x} PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${x})
ADD_TESH_FACTORIES(msg-energy-${example} "thread;ucontext;raw;boost" --setenv srcdir=${CMAKE_HOME_DIRECTORY}/examples/msg --cd ${CMAKE_BINARY_DIR}/examples/msg ${CMAKE_HOME_DIRECTORY}/examples/msg/energy-${example}/energy-${example}.tesh)
endforeach()
-foreach (x categories platform simple)
+foreach (x categories platform simple user-variables)
ADD_TESH(msg-trace-${x} --setenv bindir=${CMAKE_BINARY_DIR}/examples/msg/trace-${x} --setenv srcdir=${CMAKE_HOME_DIRECTORY}/examples/platforms --cd ${CMAKE_HOME_DIRECTORY}/examples/msg/trace-${x} trace-${x}.tesh)
endforeach()
* (See \ref tracing_tracing_options for details)
*/
-#include <stdio.h>
#include "simgrid/msg.h"
-XBT_LOG_NEW_DEFAULT_CATEGORY(msg_test, "Messages specific for this msg example");
-
static int master(int argc, char *argv[])
{
long number_of_tasks = xbt_str_parse_int(argv[1], "Invalid amount of tasks: %s");
* --cfg=tracing/platform:yes
* (See \ref tracing_tracing_options for details)
*/
-
+#include <stdio.h>
#include "simgrid/msg.h"
XBT_LOG_NEW_DEFAULT_CATEGORY(msg_test, "Messages specific for this msg example");
int main(int argc, char *argv[])
{
MSG_init(&argc, argv);
- if (argc < 3) {
- printf("Usage: %s platform_file deployment_file\n", argv[0]);
- exit(1);
- }
+ xbt_assert(argc > 2, "Usage: %s platform_file deployment_file\n"
+ "\tExample: %s msg_platform.xml msg_deployment.xml\n", argv[0], argv[0]);
MSG_create_environment(argv[1]);
#! ./tesh
p Tracing user variables
-$ $SG_TEST_EXENV ${bindir:=.}/tracing/user_variables$EXEEXT --cfg=tracing:yes --cfg=tracing/platform:yes ${srcdir:=.}/../platforms/small_platform.xml ${srcdir:=.}/tracing/deployment.xml
+$ $SG_TEST_EXENV ${bindir:=.}/trace-user-variabless$EXEEXT --cfg=tracing:yes --cfg=tracing/platform:yes ${srcdir:=.}/small_platform.xml ${srcdir:=.}/../msg/masterslave/deployment_masterslave_mailbox.xml
> [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing' to 'yes'
> [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/platform' to 'yes'
> [0.004078] [msg_test/INFO] Declared host variables:
> [0.004078] [msg_test/INFO] 0-HOST1-LINK3
> [0.004078] [msg_test/INFO] 0-LINK3-HOST1
-$ rm viva_graph.plist
+$ rm -f viva_graph.plist
p Not tracing user variables
-$ $SG_TEST_EXENV ${bindir:=.}/tracing/user_variables$EXEEXT ${srcdir:=.}/../platforms/small_platform.xml ${srcdir:=.}/tracing/deployment.xml
+$ $SG_TEST_EXENV ${bindir:=.}/trace-user-variabless$EXEEXT ${srcdir:=.}/small_platform.xml ${srcdir:=.}/../msg/masterslave/deployment_masterslave_mailbox.xml
-foreach (example ms procmig user_variables link_user_variables link_srcdst_user_variables)
+foreach (example ms procmig link_user_variables link_srcdst_user_variables)
add_executable (${example} ${example}.c)
target_link_libraries(${example} simgrid)
set(examples_src ${examples_src} ${CMAKE_CURRENT_SOURCE_DIR}/${example}.c)
#include "simgrid/msg.h"
-XBT_LOG_NEW_DEFAULT_CATEGORY(msg_test, "Messages specific for this msg example");
-
/** The guy we will move from host to host. It move alone and then is moved by policeman back */
static int emigrant(int argc, char *argv[])
{
return 0;
}
-static int master(int argc, char *argv[])
+static int policeman(int argc, char *argv[])
{
msg_task_t task = NULL;
TRACE_category ("migration_order");
MSG_process_create("emigrant", emigrant, NULL, MSG_get_host_by_name("Fafard"));
- MSG_process_create("master", master, NULL, MSG_get_host_by_name("Tremblay"));
+ MSG_process_create("policeman", policeman, NULL, MSG_get_host_by_name("Tremblay"));
MSG_main();
return 0;