Changeset 4b374f36 in rtems for testsuites/sptests/spsize


Ignore:
Timestamp:
Aug 17, 1995, 7:36:43 PM (24 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
3b438fa
Parents:
556fb911
Message:

maximum number of messages removed and include statement cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuites/sptests/spsize/size.c

    r556fb911 r4b374f36  
    1212 *  notice must appear in all copies of this file and its derivatives.
    1313 *
    14  *  $Id$
     14 *  size.c,v 1.4 1995/07/12 19:47:25 joel Exp
    1515 */
    1616
     
    6767#define PER_MSGQ      \
    6868     (sizeof (Message_queue_Control) + NAME_PTR_SIZE)
    69 #define PER_MSG       \
     69#define PER_MSG_OVERHEAD       \
    7070     (sizeof (Message_queue_Buffer_control))
    7171#define PER_REGN      \
     
    241241                (sizeof _ISR_Signals_to_thread_executing) +
    242242
    243 /*message.h*/   (sizeof _Message_queue_Inactive_messages) +
    244                 (sizeof _Message_queue_Information)       +
     243/*message.h*/   (sizeof _Message_queue_Information)       +
    245244
    246245/*modes.h*/     0                                         +
     
    423422int maximum_timers, size_timers;
    424423int maximum_msgqs, size_msgqs;
    425 int maximum_msgs, size_msgs;
     424int maximum_msgs, size_msgs_overhead;
    426425int maximum_regns, size_regns;
    427426int maximum_parts, size_parts;
     
    458457printf( "What is maximum_messages? " );
    459458maximum_msgs = getint();
    460 size_msgs = PER_MSG * maximum_msgs;
    461 total_size += size_msgs;
     459size_msgs_overhead = PER_MSG_OVERHEAD * maximum_msgs;
     460total_size += size_msgs_overhead;
    462461
    463462printf( "What is maximum_regions? " );
     
    546545printf( " Msg Queues           - %03d * %03d            =  %d\n",
    547546          maximum_msgqs, PER_MSGQ, size_msgqs );
    548 printf( " Messages             - %03d * %03d            =  %d\n",
    549           maximum_msgs, PER_MSG, size_msgs );
     547printf( " Messages Overhead    - %03d * %03d            =  %d\n",
     548          maximum_msgs, PER_MSG_OVERHEAD, size_msgs_overhead );
    550549printf( " Regions              - %03d * %03d            =  %d\n",
    551550          maximum_regns, PER_REGN, size_regns);
     
    587586printf( " Semaphores           - maximum_semaphores * %d\n", PER_SEMAPHORE);
    588587printf( " Message Queues       - maximum_message_queues * %d\n", PER_MSGQ );
    589 printf( " Messages             - maximum_messages * %d\n",   PER_MSG );
     588printf( " Messages             -\n");
    590589printf( " Regions              - maximum_regions * %d\n",    PER_REGN );
    591590printf( " Partitions           - maximum_partitions * %d\n", PER_PART );
Note: See TracChangeset for help on using the changeset viewer.