rofisys 0.3.0

This system crate provides Rust language bindings (via the use of Bindgen) to the Rust-OFI library.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef ROFI_DEBUG_H
#define ROFI_DEBUG_H

#include <sys/types.h>
#include <unistd.h>
#include <sys/syscall.h>

#ifdef _DEBUG
#define DEBUG_MSG(fmt, ...) \
	do { fprintf(stderr, "[%d][%d][DEBUG][%s][%s:%d] " fmt "\n", rt_get_rank(),syscall(__NR_gettid),__func__, __FILE__, \
		     __LINE__, ##__VA_ARGS__); } while (0)
#else
#define DEBUG_MSG(fmt, args...)
#endif

#define ERR_MSG(fmt, args...) fprintf(stderr,"[PE %d, TID: %d][ROFI ERR][%s][%s:%d] " fmt "\n", rt_get_rank(),syscall(__NR_gettid),__func__, __FILE__, __LINE__, ##args)

#endif