#include <linux/aquosa/qos_debug.h>
#include <aquosa/qres_lib.h>
#include <assert.h>
#include <unistd.h>
#include <stdio.h>
#include <sys/time.h>
#include <math.h>
Go to the source code of this file.
Defines | |
#define | QOS_DEBUG_LEVEL QOS_LEVEL_DEBUG |
#define | ORIG_Q 50000L |
The original bandwidth assignment. | |
#define | ORIG_P 100000L |
Functions | |
long | count_and_wait () |
Actively increments a counter and gets time until 1 second is elapsed. | |
int | main () |
#define ORIG_P 100000L |
Definition at line 14 of file test-qres-base.c.
#define ORIG_Q 50000L |
The original bandwidth assignment.
Definition at line 13 of file test-qres-base.c.
#define QOS_DEBUG_LEVEL QOS_LEVEL_DEBUG |
Definition at line 1 of file test-qres-base.c.
long count_and_wait | ( | ) |
Actively increments a counter and gets time until 1 second is elapsed.
Returns the counter value.
Definition at line 18 of file test-qres-base.c.
References qos_log_debug.
int main | ( | ) |
Definition at line 34 of file test-qres-base.c.
References count_and_wait(), ORIG_P, ORIG_Q, qres_params_t::P, params, qres_params_t::Q, qres_params_t::Q_min, qos_chk_ok_exit, qos_log_debug, qres_attach_thread(), qres_cleanup(), qres_create_server(), qres_destroy_server(), qres_detach_thread(), qres_init(), qres_set_params(), QRES_SID_NULL, QRES_TIME_FMT, and sid.