Definition in file proc_advocate.cc.
Include dependency graph for proc_advocate.cc:
Go to the source code of this file.
Enumerations | |
enum | { PAB_DONE } |
enum | { PAF_DONE = (1L << PAB_DONE) } |
Functions | |
void | sigchld (int sig) |
Handle a SIGCHLD signal. | |
void | sigpass (int sig) |
A signal handler that passes the received signal on to the child process. | |
void | sigalrm (int sig) |
The SIGALRM signal handler. | |
void | paUsage (const char *prog_name) |
Print out the usage statement to standard error. | |
int | paProcessOptions (int &argc_inout, char **&argv_inout) |
Process the command line options. | |
Broker::RealTimeTask_ptr | paGetAdvocate (CORBA::ORB_ptr orb, Broker::Manager_ptr manager, const char *task_ior, const char *task_name) |
Create the advocate and begin CPU scheduling based on the command line parameters. | |
int | paParentPart (Broker::RealTimeTask_ptr rtt) |
The parent portion of the fork(2) between pa and the monitored utility. | |
int | paChildPart (char *argv[]) |
The child portion of the fork(2) between the proc_advocate and the monitored utility. | |
int | main (int argc, char *argv[]) |
Variables | |
struct { | |
unsigned long pa_Flags | |
const char * pa_ManagerIOR | |
const char * pa_TaskIOR | |
const char * pa_TaskName | |
pid_t pa_ChildPID | |
CORBA::ULong pa_ChildPeriod | |
Broker::RealTimeTask_ptr pa_Advocate | |
rk_resource_set_t pa_ResourceSet | |
unsigned long long pa_LastUsage | |
} | pa_data |
|
The child portion of the fork(2) between the proc_advocate and the monitored utility. This function will execvp(3) the utility with the given arguments.
Definition at line 570 of file proc_advocate.cc. References ensure. |
|
Create the advocate and begin CPU scheduling based on the command line parameters.
Definition at line 308 of file proc_advocate.cc. References ensure, manager, orb, require, rk_proc_get_rset(), rk_resource_set_get_usage(), rtt, Broker::ScheduleParameters, DelegateMixin< T, T_var >::SetDelegateAttribute(), and Broker::TaskParameters. |
Here is the call graph for this function:
|
The parent portion of the fork(2) between pa and the monitored utility. This function will attach itself to a resource set to ensure that it has some CPU time to work and then wait for gkrellm connections or the child's death.
Definition at line 420 of file proc_advocate.cc. References ensure, require, rtt, sigalrm(), sigchld(), and sigpass(). |
Here is the call graph for this function:
|
Process the command line options.
Definition at line 196 of file proc_advocate.cc. References string_to_microsec(). |
Here is the call graph for this function:
|
Print out the usage statement to standard error.
Definition at line 154 of file proc_advocate.cc. References require. |
|
The SIGALRM signal handler. This function will be called at the end of every period to report CPU usage to the advocate.
Definition at line 108 of file proc_advocate.cc. References NULL_RESOURCE_SET, require, and rk_resource_set_get_usage(). Referenced by paParentPart(). |
Here is the call graph for this function:
|
Handle a SIGCHLD signal. This function will be called when the child exits.
Definition at line 82 of file proc_advocate.cc. References require. Referenced by paParentPart(). |
|
A signal handler that passes the received signal on to the child process.
Definition at line 94 of file proc_advocate.cc. References require. Referenced by paParentPart(). |