Multi-ApplicationOnlineProfiling  2.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Utils.h File Reference
#include <sys/stat.h>
#include <stdio.h>
#include <stdint.h>
#include <unistd.h>
Include dependency graph for Utils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

static int MALP_Trace_check_dir (const char *path)
 Checks if a path is a directory. More...
 
static void MALP_Trace_try_mkdir (char *path)
 Creates a directory without failing if it already exists. More...
 
static int MALP_Trace_file_exists (const char *path)
 Checks if a file exists. More...
 
static int MALP_Trace_fast_strcmp (char *haystack, char *needle)
 Fast string comparison. More...
 
static int MALP_Trace_is_numeric (char *number)
 Checks if a string contains a numerical element. More...
 
static int MALP_Trace_line_begins_with_sharp (char *line)
 Checks if the first not space char of a string is a #. More...
 
static uint64_t MALP_Trace_total_mem ()
 Getter on the total amount of memory available on current node. More...
 
static uint64_t MALP_Trace_mem_per_core ()
 Getter on the per core memory on the current node. More...
 
static char * my_pad (char *val)
 Removes starting and ending spaces from a string. More...