#include <linux/aquosa/qos_debug.h>#include <aquosa/qres_lib.h>#include "util_periodic.h"#include <sys/time.h>#include <time.h>#include <stdio.h>Go to the source code of this file.
Data Structures | |
| struct | data |
Defines | |
| #define | QOS_DEBUG_LEVEL QOS_LEVEL_DEBUG |
| #define | N 1000 |
| #define | TICK_US 100ull |
Functions | |
| void | f (void *p) |
| void | data_write_timestamps (struct data *p_data, const char *fname) |
| int | main (int argc, char *argv[]) |
Variables | |
| struct timeval | t0 |
| struct data | data |
| #define N 1000 |
Definition at line 8 of file test-get-budget.c.
| #define QOS_DEBUG_LEVEL QOS_LEVEL_DEBUG |
Definition at line 1 of file test-get-budget.c.
| #define TICK_US 100ull |
Definition at line 9 of file test-get-budget.c.
Referenced by main().
| void data_write_timestamps | ( | struct data * | p_data, | |
| const char * | fname | |||
| ) |
Definition at line 52 of file test-get-budget.c.
References data::appr_budgets, data::curr_budgets, f, data::gua_budgets, data::next_budgets, data::num, qos_chk_exit, QRES_TIME_FMT, data::req_budgets, and data::timestamps.
Referenced by main().
| void f | ( | void * | p | ) |
Definition at line 24 of file test-get-budget.c.
References data::appr_budgets, data::curr_budgets, data::gua_budgets, N, data::next_budgets, data::num, params, qres_params_t::Q, qres_params_t::Q_min, qos_chk_ok_exit, qres_get_appr_budget(), qres_get_curr_budget(), qres_get_next_budget(), qres_get_params(), data::req_budgets, data::sid, t0, data::timestamps, and timeval_sub_us().
| int main | ( | int | argc, | |
| char * | argv[] | |||
| ) |
Definition at line 67 of file test-get-budget.c.
References data_write_timestamps(), f, qres_params_t::flags, N, qres_params_t::P, params, qres_params_t::Q, qres_params_t::Q_min, qos_chk_ok_exit, qres_attach_thread(), qres_cleanup(), qres_create_server(), qres_destroy_server(), qres_init(), spin_periodic_call(), t0, TICK_US, and timeval_add().
| struct timeval t0 |
Definition at line 11 of file test-get-budget.c.
1.6.3