#include <linux/aquosa/qsup.h>
#include <linux/aquosa/qos_debug.h>
#include <math.h>
#include <sys/time.h>
#include <time.h>
Go to the source code of this file.
Defines | |
#define | P 10000 |
#define | build_params(req_bw, min_bw, flags) (& ((qres_params_t) { bw2Q(min_bw, P), bw2Q(req_bw, P), P, flags }) ) |
#define | build_constr(l, w, max_bw, max_min_bw, flags) (& ((qsup_constraints_t) { l, w, max_bw, max_min_bw, flags })) |
Typedefs | |
typedef double | pair_t [2] |
Functions | |
int | main (int argc, char *argv[]) |
Variables | |
pair_t | bw_requests [] |
pair_t | bw_approved [] |
double | tolerance = 0.0001 |
#define build_constr | ( | l, | |||
w, | |||||
max_bw, | |||||
max_min_bw, | |||||
flags | ) | (& ((qsup_constraints_t) { l, w, max_bw, max_min_bw, flags })) |
Definition at line 52 of file test-qsup-min-2.c.
Referenced by main().
#define build_params | ( | req_bw, | |||
min_bw, | |||||
flags | ) | (& ((qres_params_t) { bw2Q(min_bw, P), bw2Q(req_bw, P), P, flags }) ) |
Definition at line 51 of file test-qsup-min-2.c.
Referenced by main().
#define P 10000 |
Definition at line 50 of file test-qsup-min-2.c.
Referenced by main().
typedef double pair_t[2] |
Definition at line 21 of file test-qsup-min-2.c.
int main | ( | int | argc, | |
char * | argv[] | |||
) |
Definition at line 56 of file test-qsup-min-2.c.
References build_constr, build_params, bw2d(), bw_approved, bw_requests, d2bw(), qos_chk_exit, qos_chk_ok_exit, QOS_E_UNAUTHORIZED, qos_log_debug, qos_log_err, qsup_add_group_constraints(), qsup_add_level_rule(), qsup_cleanup(), qsup_create_server(), qsup_dump(), qsup_get_approved_bw(), qsup_init(), qsup_set_required_bw(), and tolerance.
{ { 0.05, 0.05 }, { 0.3, 0.3 }, { 0.2+(0.6-0.2)/(0.6-0.2+0.4-0.1)*(0.75-0.2-0.1), 0.1+(0.4-0.1)/(0.6-0.2+0.4-0.1)*(0.75-0.2-0.1) }, { 0.1, 0.6 }, { 0.15, 0.1+(0.75-0.1)/(0.75-0.1)*(0.75-0.15-0.1) }, { 0.2+(0.25-0.2)/(0.25-0.2+0.75-0.1)*(0.75-0.2-0.1), 0.1+(0.75-0.1)/(0.25-0.2+0.75-0.1)*(0.75-0.2-0.1) }, { 0.0, 0.0 }, }
Definition at line 40 of file test-qsup-min-2.c.
{ { 0.05, 0.05 }, { 0.3, 0.3 }, { 0.6, 0.4 }, { 0.1, 0.6 }, { 0.15, 0.75 }, { 0.25, 0.75 }, { 0.0, 0.0 }, }
Definition at line 23 of file test-qsup-min-2.c.
double tolerance = 0.0001 |
Definition at line 54 of file test-qsup-min-2.c.