Definition in file rk_stubby.c.
Include dependency graph for rk_stubby.c:
Go to the source code of this file.
Enumerations | |
enum | rk_stubby_verbosity_t { VERBOSITY_NONE, VERBOSITY_DELEGATE } |
Enumeration of the different verbosity levels. | |
Functions | |
int | parse_boolean (char *str) |
Interpret a string as a boolean value. | |
rk_stub_precall_retval_t | c1_pre (void *data) |
The function that will be called by the simulator when a new data period is started. | |
void | c1_post (void *data) |
The function that will be called by the simulator when a data period is finished. | |
int | main (int argc, char *argv[]) |
Variables | |
rk_stubby_verbosity_t | verbosity = VERBOSITY_NONE |
The current verbosity level. | |
cpu_reserve_attr | cra |
The object that holds the CPU reservation parameters. | |
char * | test_name = "test" |
The name of the resource set that will be created. | |
int | drop_all = 0 |
Flag that indicates that all data should be dropped. | |
int | drop_behind = 0 |
Flag that indicates that data should be dropped when the process is behind. | |
timespec | run_end = { 4, 0 } |
The ending time for the simulation run. | |
struct { | |
timespec start | |
int data_period | |
int time_period | |
} | c1_data |
The fake process' data. |
|
The function that will be called by the simulator when a data period is finished.
Definition at line 178 of file rk_stubby.c. References c1_data, clock_gettime, and verbosity. |
|
The function that will be called by the simulator when a new data period is started.
Definition at line 122 of file rk_stubby.c. References c1_data, clock_gettime, cra, drop_all, drop_behind, cpu_reserve_attr::period, rk_stub_precall_retval_t, RKSP_DROP, RKSP_OK, timespec_to_microsec(), and verbosity. |
Here is the call graph for this function:
|
Interpret a string as a boolean value.
Definition at line 85 of file rk_stubby.c. |
|
Initial value: { { 1, 0 }, { 2, 0 }, { 2, 0 }, { 0, 0 }, { 0, 0 }, { RSV_SOFT, RSV_SOFT, RSV_SOFT }, RK_ANY_CPU, }
Definition at line 48 of file rk_stubby.c. Referenced by c1_pre(). |