test-qres.c File Reference

#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
#define RATIO_TOLERANCE   0.15
 Tolerance in ratio evaluation set to 15%.

Functions

long count_and_wait ()
 Actively increments a counter and gets time until 1 second is elapsed.
int main (int argc, char **argv)

Variables

static double target_ratios []
 Bandwidth ratios (with respect to the original assignment) tried by the test program.

Define Documentation

#define ORIG_P   100000L

Definition at line 13 of file test-qres.c.

#define ORIG_Q   50000L

The original bandwidth assignment.

Definition at line 12 of file test-qres.c.

#define QOS_DEBUG_LEVEL   QOS_LEVEL_DEBUG

Definition at line 1 of file test-qres.c.

#define RATIO_TOLERANCE   0.15

Tolerance in ratio evaluation set to 15%.

Definition at line 22 of file test-qres.c.


Function Documentation

long count_and_wait (  ) 

Actively increments a counter and gets time until 1 second is elapsed.

Returns the counter value.

Definition at line 26 of file test-qres.c.

References qos_log_debug.

int main ( int  argc,
char **  argv 
)

Variable Documentation

double target_ratios[] [static]
Initial value:
 {
  0.5, 0.3, 0.1
}

Bandwidth ratios (with respect to the original assignment) tried by the test program.

Definition at line 17 of file test-qres.c.

Referenced by main().

Generated on Mon Aug 2 22:39:17 2010 for qosres by  doxygen 1.6.3