Changeset 95ec9e98 in rtems


Ignore:
Timestamp:
Nov 24, 2010, 4:06:22 PM (9 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
692775f
Parents:
db9964f1
Message:

2010-11-24 Gedare Bloom <giddyup44@…>

PR 1647/cpukit

  • spsize/size.c: Update documentation to reflect refactoring of SuperCore? to add Scheduler Handler.
Location:
testsuites/sptests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • testsuites/sptests/ChangeLog

    rdb9964f1 r95ec9e98  
     12010-11-24      Gedare Bloom <giddyup44@yahoo.com>
     2
     3        PR 1647/cpukit
     4        * spsize/size.c: Update documentation to reflect refactoring of
     5        SuperCore to add Scheduler Handler.
     6
    172010-11-16      Joel Sherrill <joel.sherrill@oarcorp.com>
    28
  • testsuites/sptests/spsize/size.c

    rdb9964f1 r95ec9e98  
    3838#include <rtems/rtems/sem.h>
    3939#include <rtems/rtems/signal.h>
     40#include <rtems/score/scheduler.h>
    4041#include <rtems/score/sysstate.h>
    4142#include <rtems/score/thread.h>
     
    5051#include <tmacros.h>
    5152
     53#include "system.h"
     54
    5255/* external function prototypes */
    5356int getint( void );
     
    6568#define  HEAP_OVHD        16    /* wasted heap space per task stack */
    6669#define  NAME_PTR_SIZE     8    /* size of name and pointer table entries */
    67 #define  READYCHAINS_SIZE  \
     70
     71#if CONFIGURE_SCHEDULER_POLICY == _Scheduler_PRIORITY
     72  #include <rtems/score/prioritybitmap.h>
     73
     74  /* Priority scheduling uninitialized (globals) consumption */
     75  #define SCHEDULER_OVHD          ((sizeof _Scheduler)              + \
     76                                   (sizeof _Priority_Major_bit_map) + \
     77                                   (sizeof _Priority_Bit_map))
     78
     79  /* Priority scheduling per-thread consumption. Gets
     80   * included in the PER_TASK consumption. */
     81  #define SCHEDULER_TASK_WKSP     (sizeof(Scheduler_priority_Per_thread))
     82
     83  /* Priority scheduling workspace consumption
     84   *
     85   * Include allocation of ready queue.  Pointers are already counted by
     86   * including _Scheduler in SCHEDULER_OVHD.
     87   */
     88  #define  SCHEDULER_WKSP_SIZE  \
    6889    ((RTEMS_MAXIMUM_PRIORITY + 1) * sizeof(Chain_Control ))
     90#endif
    6991
    7092#define PER_TASK      \
    7193     (long) (sizeof (Thread_Control) + \
    72       NAME_PTR_SIZE + HEAP_OVHD + sizeof( RTEMS_API_Control ))
     94      NAME_PTR_SIZE + HEAP_OVHD + sizeof( RTEMS_API_Control ) + \
     95      SCHEDULER_TASK_WKSP )
    7396#define PER_SEMAPHORE \
    7497     (long) (sizeof (Semaphore_Control) + NAME_PTR_SIZE)
     
    160183 *    + Object MP
    161184 *      - Global Object CB's
    162  *    + Thread
    163  *      - Ready Chain
    164185 *    + Thread MP
    165186 *      - Proxies Chain
     187 *    + Scheduler
     188 *      - Ready queue
    166189 *    + Interrupt Manager
    167190 *      - Interrupt Stack
     
    196219 *  Workspace Area.
    197220 */
    198 sys_req = SYSTEM_TASKS     +     /* MPCI Receive Server and IDLE */
    199           NAME_PTR_SIZE    +     /* Task Overhead */
    200           READYCHAINS_SIZE +     /* Ready Chains */
    201           NAME_PTR_SIZE    +     /* Timer Overhead */
    202           NAME_PTR_SIZE    +     /* Semaphore Overhead */
    203           NAME_PTR_SIZE    +     /* Message Queue Overhead */
    204           NAME_PTR_SIZE    +     /* Region Overhead */
    205           NAME_PTR_SIZE    +     /* Partition Overhead */
    206           NAME_PTR_SIZE    +     /* Dual-Ported Memory Overhead */
    207           NAME_PTR_SIZE    +     /* Rate Monotonic Overhead */
    208           NAME_PTR_SIZE    +     /* Extension Overhead */
    209           PER_NODE;              /* Extra Gobject Table */
     221sys_req = SYSTEM_TASKS        +     /* MPCI Receive Server and IDLE */
     222          NAME_PTR_SIZE       +     /* Task Overhead */
     223          SCHEDULER_WKSP_SIZE +     /* Scheduler Overhead */
     224          NAME_PTR_SIZE       +     /* Timer Overhead */
     225          NAME_PTR_SIZE       +     /* Semaphore Overhead */
     226          NAME_PTR_SIZE       +     /* Message Queue Overhead */
     227          NAME_PTR_SIZE       +     /* Region Overhead */
     228          NAME_PTR_SIZE       +     /* Partition Overhead */
     229          NAME_PTR_SIZE       +     /* Dual-Ported Memory Overhead */
     230          NAME_PTR_SIZE       +     /* Rate Monotonic Overhead */
     231          NAME_PTR_SIZE       +     /* Extension Overhead */
     232          PER_NODE;                 /* Extra Gobject Table */
    210233
    211234uninitialized =
     
    312335/*percpu.h*/    (sizeof _Per_CPU_Information)             +
    313336
    314 /*priority.h*/  (sizeof _Priority_Major_bit_map)          +
    315                 (sizeof _Priority_Bit_map)                +
    316 
    317337/*ratemon.h*/   (sizeof _Rate_monotonic_Information)      +
    318338
     
    324344
    325345/*rtems.h*/     /* Not applicable */
     346
     347/*scheduler.h*/ SCHEDULER_OVHD                            +
    326348
    327349/*sem.h*/       (sizeof _Semaphore_Information)           +
     
    356378                (sizeof _Thread_Maximum_extensions)       +
    357379                (sizeof _Thread_Ticks_per_timeslice)      +
    358                 (sizeof _Thread_Ready_chain)              +
    359380                (sizeof _Thread_Executing)                +
    360381                (sizeof _Thread_Heir)                     +
Note: See TracChangeset for help on using the changeset viewer.