Ignore:
Timestamp:
Apr 9, 1997, 8:02:29 PM (23 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
eafd698
Parents:
0c3cd61
Message:

added support for statistics on rate monotonic periods.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/rtems/headers/ratemon.h

    r0c3cd61 r113ef9fc  
    4747  RATE_MONOTONIC_EXPIRED                 /* off chain, will be reset by next */
    4848                                         /*   rtems_rate_monotonic_period */
    49 }   Rate_Monotonic_Period_states;
     49}   rtems_rate_monotonic_period_states;
    5050
    5151/*
     
    5656#define RTEMS_PERIOD_STATUS       WATCHDOG_NO_TIMEOUT
    5757
     58/*
     59 *  The following defines the period status structure.
     60 */
     61
     62typedef struct {
     63  rtems_rate_monotonic_period_states  state;
     64  unsigned32                          ticks_since_last_period;
     65  unsigned32                          ticks_executed_since_last_period;
     66}  rtems_rate_monotonic_period_status;
     67
    5868/*
    5969 *  The following structure defines the control block used to manage
     
    6272
    6373typedef struct {
    64   Objects_Control               Object;
    65   Watchdog_Control              Timer;
    66   Rate_Monotonic_Period_states  state;
    67   Thread_Control               *owner;
     74  Objects_Control                     Object;
     75  Watchdog_Control                    Timer;
     76  rtems_rate_monotonic_period_states  state;
     77  unsigned32                          owner_ticks_executed_at_period;
     78  unsigned32                          time_at_period;
     79  Thread_Control                     *owner;
    6880}   Rate_monotonic_Control;
    6981
     
    138150rtems_status_code rtems_rate_monotonic_delete(
    139151  Objects_Id id
     152);
     153
     154/*
     155 *  rtems_rate_monotonic_get_status
     156 *
     157 *  DESCRIPTION:
     158 *
     159 *  This routine implements the rtems_rate_monotonic_get_status directive.
     160 *  Information about the period indicated by ID is returned.
     161 *
     162 */
     163
     164rtems_status_code rtems_rate_monotonic_get_status(
     165  Objects_Id                           id,
     166  rtems_rate_monotonic_period_status  *status
    140167);
    141168
Note: See TracChangeset for help on using the changeset viewer.