Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

gkemu.h File Reference


Detailed Description

Header file for GKrellmd (http://www.gkrellm.net) emulation functions.

GKrellm is a system monitoring utility that displays the current system state in a nice GUI. Fortunately, it supports a client/server mode that uses a simple network protocol for communicating the system state. So, instead of sending the entire state of the system back to the GUI client, we send back the state of a TimeSys resource set. The following monitors are supported:

Include dependency graph for gkemu.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Enumerations

enum  gka_tag_t {
  GKA_TAG_DONE, GKA_HostName, GKA_SystemName, GKA_CPUUser,
  GKA_CPUIdle, GKA_CPUReserveUser, GKA_CPUReserveNice, GKA_CPUReserveIdle,
  GKA_UpTime, GKA_Processes, GKA_ProcessesRunning
}
 Argument tags for the functions. More...


Functions

int gkFormatPreamble (char *buf, size_t buf_len, gka_tag_t tag,...)
 Format the preamble into the given buffer.

int gkFormatInitialUpdate (char *buf, size_t buf_len, gka_tag_t tag,...)
 Format the initial update into the given buffer.

int gkFormatUpdate (char *buf, size_t buf_len, gka_tag_t tag,...)
 Format an update into the given buffer.


Enumeration Type Documentation

enum gka_tag_t
 

Argument tags for the functions.

Enumeration values:
GKA_TAG_DONE  () - Terminate the tag list
GKA_HostName  (char *) - Host name
GKA_SystemName  (char *) - System name
GKA_CPUUser  (unsigned long long) - User time CPU usage
GKA_CPUIdle  (unsigned long long) - CPU idle time
GKA_CPUReserveUser  (unsigned long long) - CPU reserve
GKA_CPUReserveNice  (unsigned long long) - CPU reserve consumed
GKA_CPUReserveIdle  (unsigned long long) - CPU not reserved
GKA_UpTime  (struct timeval *) - Process running time
GKA_Processes  (unsigned int) - Number of processes in the set

GKA_ProcessesRunning  (unsigned int) - Number of running processes in the set


Function Documentation

int gkFormatInitialUpdate char *  buf,
size_t  buf_len,
gka_tag_t  tag,
... 
 

Format the initial update into the given buffer.

Parameters:
buf The buffer to fill with the initial update.
buf_len The length, in bytes, of 'buf'.
tag The beginning of the tag arguments.
Returns:
The length of the initial update in the buffer.

int gkFormatPreamble char *  buf,
size_t  buf_len,
gka_tag_t  tag,
... 
 

Format the preamble into the given buffer.

Parameters:
buf The buffer to fill with the preamble.
buf_len The length, in bytes, of 'buf'.
tag The beginning of the tag arguments.
Returns:
The length of preamble in the buffer.

int gkFormatUpdate char *  buf,
size_t  buf_len,
gka_tag_t  tag,
... 
 

Format an update into the given buffer.

Parameters:
buf The buffer to fill with the preamble.
buf_len The length, in bytes, of 'buf'.
tag The beginning of the tag arguments.
Returns:
The length of the update in the buffer.


Generated on Mon Dec 1 16:22:13 2003 for CPUBroker by doxygen 1.3.4