1 /* Copyright (c) 2010. The SimGrid Team.
2 * All rights reserved. */
4 /* This program is free software; you can redistribute it and/or modify it
5 * under the terms of the license (GNU LGPL) which comes with this package. */
7 /** @addtogroup MSG_examples
9 * - <b>tracing/trace_platform.c</b>: This program demonstrates how a
10 * platform file is traced to a Paje trace file format using the tracing
11 * mechanism of Simgrid.
12 * You might want to run this program with the following parameters:
14 * --cfg=tracing/categorized:1
15 * (See \ref tracing_tracing_options for details)
20 #include "xbt/sysdep.h" /* calloc, printf */
23 #include "xbt/asserts.h"
24 XBT_LOG_NEW_DEFAULT_CATEGORY(msg_test, "Messages specific for this msg example");
27 int main(int argc, char *argv[])
29 MSG_init(&argc, argv);
31 printf("Usage: %s platform_file\n", argv[0]);
35 char *platform_file = argv[1];
36 MSG_create_environment(platform_file);