#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <aquosa/qres_lib.h>
#include <linux/aquosa/qos_debug.h>
#include <aquosa/qsup_lib.h>
Go to the source code of this file.
Functions | |
static void | qos_assert (int cond, const char *msg) |
static unsigned int | str2flags (char str_flags[5]) |
static void | flags2str (unsigned int flags, char str_flags[5]) |
int | proc_begin (pid_t pid) |
Returns non-zero if succeeded, and 0 on error (pid not found). | |
tid_t | proc_next (void) |
Returns the next tid in the iteration, or 0 if finished. | |
int | main (int argc, char *argv[]) |
Variables | |
char ** | environ |
FILE * | fproc = NULL |
popen() end kept for iterating over children | |
char | fname [32] |
static void flags2str | ( | unsigned int | flags, | |
char | str_flags[5] | |||
) | [inline, static] |
Definition at line 30 of file apps/qres.c.
References QOS_F_DEFAULT, QOS_F_PERSISTENT, and QOS_F_SOFT.
Referenced by main().
int main | ( | int | argc, | |
char * | argv[] | |||
) |
Definition at line 66 of file apps/qres.c.
References attach, bw_min(), create, d2bw(), destroy, detach, qres_params_t::flags, flags2str(), qres_params_t::P, P, params, pid, proc_begin(), proc_next(), qres_params_t::Q, qres_params_t::Q_min, qos_assert(), qos_chk_ok_exit, QOS_OK, QRES_ATIME_FMT, qres_attach_thread(), qres_cleanup(), qres_create_server(), qres_destroy_server(), qres_detach_thread(), qres_get_appr_budget(), qres_get_curr_budget(), qres_get_exec_time(), qres_get_next_budget(), qres_get_params(), qres_get_sid(), qres_init(), qres_set_params(), qres_set_weight(), QRES_TIME_FMT, qsup_cleanup(), qsup_init(), qsup_reserve_spare(), sid, spare_bw, str2flags(), and tid.
int proc_begin | ( | pid_t | pid | ) |
Returns non-zero if succeeded, and 0 on error (pid not found).
Definition at line 45 of file apps/qres.c.
Referenced by main().
tid_t proc_next | ( | void | ) |
Returns the next tid in the iteration, or 0 if finished.
Definition at line 52 of file apps/qres.c.
References fproc, qos_assert(), and tid.
Referenced by main().
static void qos_assert | ( | int | cond, | |
const char * | msg | |||
) | [inline, static] |
Definition at line 12 of file apps/qres.c.
Referenced by main(), and proc_next().
static unsigned int str2flags | ( | char | str_flags[5] | ) | [inline, static] |
Definition at line 19 of file apps/qres.c.
References QOS_F_DEFAULT, QOS_F_PERSISTENT, and QOS_F_SOFT.
Referenced by main().
char** environ |
char fname[32] |
Definition at line 42 of file apps/qres.c.
Referenced by proc_begin().
FILE* fproc = NULL |
popen() end kept for iterating over children
Definition at line 41 of file apps/qres.c.
Referenced by proc_begin(), and proc_next().