SimGrid  3.13
Versatile Simulation of Distributed Systems
actions-storage.c File Reference
#include "simgrid/msg.h"
#include <xbt/replay.h>

Macros

#define ACT_DEBUG(...)
 

Functions

 XBT_LOG_NEW_DEFAULT_CATEGORY (storage_actions,"Messages specific for this example")
 
static void log_action (const char *const *action, double date)
 
static msg_file_t get_file_descriptor (const char *file_name)
 
static sg_size_t parse_size (const char *string)
 
static void action_open (const char *const *action)
 
static void action_read (const char *const *action)
 
static void action_close (const char *const *action)
 
int main (int argc, char *argv[])
 

Variables

static xbt_dict_t opened_files = NULL
 

Macro Definition Documentation

#define ACT_DEBUG (   ...)
Value:
if (XBT_LOG_ISENABLED(storage_actions, xbt_log_priority_verbose)) { \
char *NAME = xbt_str_join_array(action, " "); \
XBT_DEBUG(__VA_ARGS__); \
xbt_free(NAME); \
} else ((void)0)
verbose output for the user wanting more
Definition: log.h:48
#define xbt_free(p)
like free
Definition: sysdep.h:123
#define XBT_DEBUG(...)
Log an event at the DEBUG priority on the default category with these args.
Definition: log.h:531
char * xbt_str_join_array(const char *const *strs, const char *sep)
Join a set of strings as a single string.
Definition: xbt_str.c:431
#define XBT_LOG_ISENABLED(catName, priority)
Definition: log.h:352

Function Documentation

XBT_LOG_NEW_DEFAULT_CATEGORY ( storage_actions  ,
"Messages specific for this example"   
)
static void log_action ( const char *const *  action,
double  date 
)
static
static msg_file_t get_file_descriptor ( const char *  file_name)
static
static sg_size_t parse_size ( const char *  string)
static
static void action_open ( const char *const *  action)
static
static void action_read ( const char *const *  action)
static
static void action_close ( const char *const *  action)
static
int main ( int  argc,
char *  argv[] 
)

Variable Documentation

xbt_dict_t opened_files = NULL
static