Add test programs for ihk_os_getrusage()

This commit is contained in:
Masamichi Takagi
2017-09-20 19:48:32 +09:00
parent 47b4bd5aba
commit 4d9a1628f2
63 changed files with 6461 additions and 0 deletions

23
test/rusage/verbs/mbuf.h Executable file
View File

@ -0,0 +1,23 @@
/*
* mbuf.h
*
* Created on: 2011/10/19
* Author: simin
*/
#ifndef MBUF_H_
#define MBUF_H_
enum buf_type{
HOST_BUF_TYPE,
PCI_BUF_TYPE
};
typedef struct buf_t{
void *buf;
int size;
enum buf_type type;
} buf_t;
#define buf_free(buf_p) {if(buf_p->type) free(buf_p->buf);}
#endif /* MBUF_H_ */