xpmem: fix mapping of attachment and segment
* Mapping attached part of segment is done at attach time instead of
make time to work with runtimes (e.g. OpenMPI) xpmem_make-ing the
entire user-space
* Mapping attached part of segment at attach time can be turned off by
specifying xpmem_remote_on_demand in kernel argument
* Mapping attachment chooses appropriate page-sizes, i.e., largest
allowed by memory range and segment page boundary
Fixes: a8696d8 "xpmem: Support large page attachment"
Change-Id: I44663865204036520e5f62fe22b9134ee4629f9b
This commit is contained in:
32
test/issues/1473/okng.h
Normal file
32
test/issues/1473/okng.h
Normal file
@ -0,0 +1,32 @@
|
||||
#ifndef __OKNG_H_INCLUDED__
|
||||
#define __OKNG_H_INCLUDED__
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#define _OKNG(verb, jump, cond, fmt, args...) do { \
|
||||
if (cond) { \
|
||||
if (verb) \
|
||||
printf("[ OK ] " fmt, ##args); \
|
||||
} else { \
|
||||
printf("[ NG ] " fmt, ##args); \
|
||||
if (jump) { \
|
||||
ret = 1; \
|
||||
goto out; \
|
||||
} \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
#define OKNG(args...) _OKNG(1, 1, ##args)
|
||||
#define INFO(fmt, args...) printf("[ INFO ] " fmt, ##args)
|
||||
#define START(fmt, args...) printf("[ START] " fmt, ##args)
|
||||
#define INTERR(cond, fmt, args...) do { \
|
||||
if (cond) { \
|
||||
char msg[4096]; \
|
||||
sprintf(msg, fmt, ##args); \
|
||||
printf("[INTERR] %s:%d %s", __FILE__, __LINE__, msg); \
|
||||
ret = 1; \
|
||||
goto out; \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user