rtems_status_code rtems_rate_monotonic_get_statistics( rtems_id id, rtems_rate_monotonic_period_statistics *statistics );
RTEMS_SUCCESSFUL
- period initiated successfully
RTEMS_INVALID_ID
- invalid rate monotonic period id
RTEMS_INVALID_ADDRESS
- invalid address of statistics
This directive returns statistics information associated with the rate monotonic period id in the following data structure:
typedef struct { uint32_t count; /* periods executed */ uint32_t missed_count; /* period deadlines missed */ uint32_t min_cpu_time; /* minimum CPU time used in a period */ uint32_t max_cpu_time; /* maximum CPU time used in a period */ uint32_t total_cpu_time; /* total CPU time consumed */ uint32_t min_wall_time; /* minimum wall time used in a period */ uint32_t max_wall_time; /* maximum wall time used in a period */ uint32_t total_wall_time; /* total wall time consumed */ } rtems_rate_monotonic_period_statistics;
This directive returns the current statistics information for
the period instance assocaited with id
. The information
returned is indicated by the structure above.
This directive will not cause the running task to be preempted.
Copyright © 1988-2004 OAR Corporation