Definition in file rk_util.h.
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Classes | |
struct | rk_resource_set_proc |
struct | rk_resource_set_proc_cache |
struct | rk_resource_set_usage |
Typedefs | |
typedef rk_resource_set_proc * | rk_resource_set_proc_t |
typedef rk_resource_set_proc_cache * | rk_resource_set_proc_cache_t |
typedef rk_resource_set_usage * | rk_resource_set_usage_t |
Functions | |
rk_resource_set_t | rk_resource_set_get_by_name (const char *name) |
Search for a resource set by name and return the first one encountered. | |
int | rk_resource_set_get_usage (rk_resource_set_t rs, rk_resource_set_usage_t rsu_inout, rk_resource_set_proc_cache_t pc_inout) |
Compute the total resource usage for all the processes in a resource set. | |
void | rk_resource_set_proc_cache_release (rk_resource_set_proc_cache_t pc) |
Release any resources stored in the given process cache. |
|
Search for a resource set by name and return the first one encountered.
Definition at line 52 of file rk_util.c. References require, RK_NAME_LEN, rk_resource_set_get_name(), rk_resource_set_t, and rk_resource_sets_get_list(). Referenced by RKTask::BeginCPUScheduling(), main(), paGetAdvocate(), rktProcessOptions(), and rts_grab_schedulable(). |
Here is the call graph for this function:
|
Compute the total resource usage for all the processes in a resource set. Currently, this is implemented by stepping through all of the processes attached to the resource set and pulling the usage information from "/proc/<pid>/stat". Unfortunately, the standard kernel does not provide high-resolution data in the "stat" file, so the file in the "patch" directory must be applied to the kernel before this function can be used.
Definition at line 244 of file rk_util.c. References ensure, rk_resource_set_get_proclist(), rk_resource_set_proc_cache_add(), rk_resource_set_proc_cache_intersect(), rk_resource_set_proc_cache_search(), and rk_resource_set_t. Referenced by main(), paGetAdvocate(), RKObserverAdvocate::run(), sigalrm(), and test_get_usage(). |
Here is the call graph for this function:
|
Release any resources stored in the given process cache.
Definition at line 411 of file rk_util.c. References require. Referenced by main(), and RKObserverAdvocate::run(). |