Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
merge conflict resolved
[simgrid.git] / examples / msg / tracing / trace_platform.c
1 /* Copyright (c) 2010. The SimGrid Team.
2  * All rights reserved.                                                     */
3
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. */
6
7 #include <stdio.h>
8 #include "msg/msg.h"
9 #include "xbt/sysdep.h"         /* calloc, printf */
10
11 #include "xbt/log.h"
12 #include "xbt/asserts.h"
13 XBT_LOG_NEW_DEFAULT_CATEGORY(msg_test, "Messages specific for this msg example");
14
15 /** Main function */
16 int main(int argc, char *argv[])
17 {
18   MSG_global_init(&argc, argv);
19   if (argc < 2) {
20     printf("Usage: %s platform_file\n", argv[0]);
21     exit(1);
22   }
23
24   char *platform_file = argv[1];
25   MSG_create_environment(platform_file);
26   MSG_main();
27   MSG_clean();
28   return 0;
29 }