SimGrid  3.16
Versatile Simulation of Distributed Systems
xbt_main.cpp File Reference
#include <math.h>
#include "xbt/misc.h"
#include "simgrid_config.h"
#include "xbt/sysdep.h"
#include "xbt/log.h"
#include "xbt/log.hpp"
#include "xbt/dynar.h"
#include "xbt/config.h"
#include "xbt/module.h"
#include "src/xbt_modinter.h"
#include "simgrid/sg_config.h"
#include "src/internal_config.h"
#include <stdio.h>

Macros

#define XBT_LOG_LOCALLY_DEFINE_XBT_CHANNEL   /* MSVC don't want it to be declared extern in headers and local here */
 

Functions

 XBT_LOG_NEW_DEFAULT_SUBCATEGORY (module, xbt, "module handling")
 
 XBT_LOG_NEW_CATEGORY (smpi, "All SMPI categories")
 
static void xbt_preinit () _XBT_GNUC_CONSTRUCTOR(200)
 
static void xbt_postexit ()
 
void xbt_init (int *argc, char **argv)
 Initialize the xbt mechanisms. More...
 
void xbt_free_f (void *p)
 like free, but you can be sure that it is a function More...
 
void xbt_free_ref (void *d)
 should be given a pointer to pointer, and frees the second one More...
 
void xbt_abort ()
 Kill the program in silence. More...
 

Variables

char * xbt_binary_name = NULL
 
xbt_dynar_t xbt_cmdline = NULL
 Contains all the parameters we got from the command line (including argv[0]) More...
 
int xbt_initialized = 0
 
int _sg_do_clean_atexit = 1
 
int xbt_pagesize
 Cache the size of a memory page for the current system. More...
 
int xbt_pagebits = 0
 Cache the number of bits of addresses inside a given page, log2(xbt_pagesize). More...
 

Macro Definition Documentation

◆ XBT_LOG_LOCALLY_DEFINE_XBT_CHANNEL

#define XBT_LOG_LOCALLY_DEFINE_XBT_CHANNEL   /* MSVC don't want it to be declared extern in headers and local here */

Function Documentation

◆ XBT_LOG_NEW_DEFAULT_SUBCATEGORY()

XBT_LOG_NEW_DEFAULT_SUBCATEGORY ( module  ,
xbt  ,
"module handling"   
)

◆ XBT_LOG_NEW_CATEGORY()

XBT_LOG_NEW_CATEGORY ( smpi  ,
"All SMPI categories"   
)

◆ xbt_preinit()

static void xbt_preinit ( )
static

◆ xbt_postexit()

static void xbt_postexit ( )
static

◆ xbt_init()

void xbt_init ( int *  argc,
char **  argv 
)

Initialize the xbt mechanisms.

Variable Documentation

◆ xbt_binary_name

char* xbt_binary_name = NULL

◆ xbt_cmdline

xbt_dynar_t xbt_cmdline = NULL

Contains all the parameters we got from the command line (including argv[0])

◆ xbt_initialized

int xbt_initialized = 0

◆ _sg_do_clean_atexit

int _sg_do_clean_atexit = 1

◆ xbt_pagesize

int xbt_pagesize

Cache the size of a memory page for the current system.

◆ xbt_pagebits

int xbt_pagebits = 0

Cache the number of bits of addresses inside a given page, log2(xbt_pagesize).