forked from RIKEN-SysSoft/ihk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ihk_os_getrusage(): Compile LWK-specific results in mcctrl
1. User asks mcctrl for the result via ihk_os_getrusage() with passing void * 2. mcctrl compiles the results and passes them to the user 3. User interprets it by using the type defined in the LWK-specific header
- Loading branch information
1 parent
07b918c
commit 443c6e6
Showing
13 changed files
with
143 additions
and
155 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
/** | ||
* \file ihk_OS_KMSG.h | ||
* \file ihk_debug.h | ||
* \brief | ||
* IHK-Master: OS status | ||
* \author Taku Shimosawa <[email protected]> \par | ||
* Copyright (C) 2011-2012 Taku Shimosawa <[email protected]> | ||
*/ | ||
#ifndef IHK_OS_KMSG_H_INCLUDED | ||
#define IHK_OS_KMSG_H_INCLUDED | ||
#ifndef IHK_DEBUG_H_INCLUDED | ||
#define IHK_DEBUG_H_INCLUDED | ||
|
||
#define IHK_KMSG_SIZE (8*1024) | ||
|
||
#endif /* !defined(IHK_OS_KMSG_H_INCLUDED) */ | ||
#endif /* !defined(IHK_DEBUG_H_INCLUDED) */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/** | ||
* \file ihk_monitor.h | ||
* \brief | ||
* IHK-Master: OS status | ||
* \author Tomoki Shirasawa <[email protected]> \par | ||
* Copyright (C) 2017 Tomoki Shirasawa <[email protected]> | ||
*/ | ||
#ifndef IHK_MONITOR_H_INCLUDED | ||
#define IHK_MONITOR_H_INCLUDED | ||
|
||
/** \brief IHK-Monitor */ | ||
struct ihk_os_cpu_monitor { | ||
int status; | ||
#define IHK_OS_MONITOR_NOT_BOOT 0 | ||
#define IHK_OS_MONITOR_IDLE 1 | ||
#define IHK_OS_MONITOR_USER 2 | ||
#define IHK_OS_MONITOR_KERNEL 3 | ||
#define IHK_OS_MONITOR_KERNEL_HEAVY 4 | ||
#define IHK_OS_MONITOR_KERNEL_OFFLOAD 5 | ||
#define IHK_OS_MONITOR_KERNEL_FREEZING 8 | ||
#define IHK_OS_MONITOR_KERNEL_FROZEN 9 | ||
#define IHK_OS_MONITOR_KERNEL_THAW 10 | ||
#define IHK_OS_MONITOR_PANIC 99 | ||
int status_bak; | ||
unsigned long counter; | ||
unsigned long ocounter; | ||
}; | ||
|
||
struct ihk_os_monitor { | ||
unsigned long num_processors; | ||
unsigned long reserve[128]; | ||
struct ihk_os_cpu_monitor cpu[0]; /* clv[i].monitor = &cpu[i] */ | ||
}; | ||
#endif /* !defined(IHK_MONITOR_H_INCLUDED) */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#ifndef IHKLIB_PRIVATE_H_INCLUDED | ||
#define IHKLIB_PRIVATE_H_INCLUDED | ||
|
||
struct getrusage_desc { | ||
void* rusage; | ||
size_t size_rusage; | ||
}; | ||
|
||
#endif /* !defined(IHKLIB_PRIVATE_H_INCLUDED) */ |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.