qlmpi: add testcase to qlmpi (rusage for swap)

This commit is contained in:
Ken Sato
2017-08-31 15:43:28 +09:00
parent 4b3f220659
commit f4c32e5507
32 changed files with 2953 additions and 0 deletions

View File

@ -0,0 +1,10 @@
#include <unistd.h>
#define BUF_SIZE (32 * 1024)
int do_swap(char *fname, void *buffer) {
int rc = -1;
rc = syscall(801, fname, buffer, BUF_SIZE, 2);
printf("%s: swap returns %d , %s\n", __FUNCTION__, rc, fname);
return rc;
}