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

26
test/rusage/verbs/list.h Executable file
View File

@ -0,0 +1,26 @@
/*
* list.h
*
* Created on: 2011/10/19
* Author: simin
*/
#ifndef LIST_H_
#define LIST_H_
typedef struct list_element_t{
void *data;
struct list_element_t *next;
}list_element_t;
typedef struct list_t{
list_element_t *head;
list_element_t *tail;
int cnt;
}list_t;
extern void* list_get(list_t *list, int idx);
extern void list_add(list_t *list, void *e);
extern void* list_remove(list_t *list, int idx);
extern void* list_pop(list_t *list);
#endif /* LIST_H_ */