Function rttest_init
Defined in File rttest.h
Function Documentation
-
int rttest_init(size_t iterations, struct timespec update_period, size_t sched_policy, int sched_priority, size_t stack_size, uint64_t prefault_dynamic_size, char *filename)
Initialize rttest. Preallocate the sample buffer, store user parameters, lock memory if necessary Not real time safe.
- Parameters:
iterations – [in] How many iterations to spin for
update_period – [in] Time interval representing the spin period
sched_policy – [in] Scheduling policy, e.g. round robin, FIFO
sched_priority – [in] The thread priority
stack_size – [in] How many bytes to prefault when rttest_prefault_stack() is called.
prefault_dynamic_size – [in] How many bytes to prefault on the heap.
filename – [in] Name of the file to save results to.
- Returns:
Error code to propagate to main