Changeset 6f48a61 in rtems-schedsim


Ignore:
Timestamp:
Jun 17, 2014, 5:03:25 PM (5 years ago)
Author:
Jennifer Averett <jennifer.averett@…>
Branches:
master
Children:
65139e8
Parents:
ac03e9a
Message:

Add remainder of schedulers and cluster scheduler support.

Location:
schedsim
Files:
9 added
13 edited

Legend:

Unmodified
Added
Removed
  • schedsim/UsingTheSchedulerSimulator.txt

    rac03e9a r6f48a61  
    246246*Usage*: task_resume name|id
    247247
    248 This command is used to suspend the specified task.  It is the equivalent
    249 of the rtems_task_suspend directive in the Classic API.
     248This command is used to resume the specified task.  It is the equivalent
     249of the rtems_task_resume directive in the Classic API.
     250
     251task_set_scheduler
     252^^^^^^^^^^^^^^^^^^
     253*Usage*: task_set_scheduler Task name|id   Scheduler number
     254
     255This command is used to modified the select a scheduler cluster.
     256
     257For example on a system configured with scheduler 0 being a
     258Priority SMP Scheduler and scheduler 1 configured as Priority
     259Affinity SMP Scheduler
     260
     261The following is the output from the invocation task_set_scheduler TA1 1
     262
     263-------------------------------------------------------------
     264Task (0x0a010001) on Priority Affinity SMP Scheduler
     265-------------------------------------------------------------
     266
     267The following is the output from the invocation task_set_scheduler TA1 0
     268
     269-------------------------------------------------------------
     270Task (0x0a010001) on Priority SMP Scheduler
     271-------------------------------------------------------------
    250272
    251273task_suspend Command
  • schedsim/configure.ac

    rac03e9a r6f48a61  
    190190shell/schedsim_priority/Makefile
    191191shell/schedsim_simple/Makefile
     192shell/schedsim_cbs/Makefile
     193shell/schedsim_edf/Makefile
    192194shell/schedsim_smpsimple/Makefile
    193195shell/schedsim_smppriority/Makefile
    194196shell/schedsim_smppriority_affinity/Makefile
     197shell/schedsim_cluster01/Makefile
     198shell/schedsim_cluster02/Makefile
    195199])
    196200AC_OUTPUT
  • schedsim/rtems/Makefile.am

    rac03e9a r6f48a61  
    111111librtems_a_SOURCES += $(cpukitdir)/score/src/schedulersimpleunblock.c
    112112librtems_a_SOURCES += $(cpukitdir)/score/src/schedulersimpleyield.c
     113
     114# Uniprocessor Scheduler CBS
     115librtems_a_SOURCES += $(cpukitdir)/score/src
     116librtems_a_SOURCES += $(cpukitdir)/score/src/schedulercbsattachthread.c
     117librtems_a_SOURCES += $(cpukitdir)/score/src/schedulercbscreateserver.c
     118librtems_a_SOURCES += $(cpukitdir)/score/src/schedulercbsgetapprovedbudget.c
     119librtems_a_SOURCES += $(cpukitdir)/score/src/schedulercbsgetremainingbudget.c
     120librtems_a_SOURCES += $(cpukitdir)/score/src/schedulercbsreleasejob.c
     121librtems_a_SOURCES += $(cpukitdir)/score/src/schedulercbs.c
     122librtems_a_SOURCES += $(cpukitdir)/score/src/schedulercbsdestroyserver.c
     123librtems_a_SOURCES += $(cpukitdir)/score/src/schedulercbsgetexecutiontime.c
     124librtems_a_SOURCES += $(cpukitdir)/score/src/schedulercbsgetserverid.c
     125librtems_a_SOURCES += $(cpukitdir)/score/src/schedulercbssetparameters.c
     126librtems_a_SOURCES += $(cpukitdir)/score/src/schedulercbscleanup.c
     127librtems_a_SOURCES += $(cpukitdir)/score/src/schedulercbsdetachthread.c
     128librtems_a_SOURCES += $(cpukitdir)/score/src/schedulercbsgetparameters.c
     129librtems_a_SOURCES += $(cpukitdir)/score/src/schedulercbsnodeinit.c
     130librtems_a_SOURCES += $(cpukitdir)/score/src/schedulercbsunblock.c
     131
     132# Uniprocessor Scheduler EDF
     133librtems_a_SOURCES += $(cpukitdir)/score/src/scheduleredfblock.c
     134librtems_a_SOURCES += $(cpukitdir)/score/src/scheduleredfchangepriority.c
     135librtems_a_SOURCES += $(cpukitdir)/score/src/scheduleredfprioritycompare.c
     136librtems_a_SOURCES += $(cpukitdir)/score/src/scheduleredfschedule.c
     137librtems_a_SOURCES += $(cpukitdir)/score/src/scheduleredfupdate.c
     138librtems_a_SOURCES += $(cpukitdir)/score/src/scheduleredf.c
     139librtems_a_SOURCES += $(cpukitdir)/score/src/scheduleredfnodeinit.c
     140librtems_a_SOURCES += $(cpukitdir)/score/src/scheduleredfreleasejob.c
     141librtems_a_SOURCES += $(cpukitdir)/score/src/scheduleredfunblock.c
     142librtems_a_SOURCES += $(cpukitdir)/score/src/scheduleredfyield.c
    113143
    114144librtems_a_SOURCES += $(cpukitdir)/score/src/thread.c
     
    256286librtems_a_SOURCES += $(cpukitdir)/rtems/src/taskgetaffinity.c
    257287librtems_a_SOURCES += $(cpukitdir)/rtems/src/tasksetaffinity.c
     288librtems_a_SOURCES += $(cpukitdir)/rtems/src/schedulerident.c
     289librtems_a_SOURCES += $(cpukitdir)/rtems/src/schedulergetprocessorset.c
     290librtems_a_SOURCES += $(cpukitdir)/rtems/src/tasksetscheduler.c
    258291endif
    259292
  • schedsim/shell/Makefile.am

    rac03e9a r6f48a61  
    11ACLOCAL_AMFLAGS = -I ./../aclocal
    22
    3 SUBDIRS = shared schedsim_priority schedsim_simple
    4 DIST_SUBDIRS = shared schedsim_priority schedsim_simple
     3SUBDIRS = shared
     4SUBDIRS += schedsim_priority
     5SUBDIRS += schedsim_simple
     6SUBDIRS += schedsim_cbs
     7SUBDIRS += schedsim_edf
     8
     9DIST_SUBDIRS = shared
     10DIST_SUBDIRS += shared
     11DIST_SUBDIRS += schedsim_priority
     12DIST_SUBDIRS += schedsim_simple
     13DIST_SUBDIRS += schedsim_cbs
     14DIST_SUBDIRS += schedsim_edf
    515
    616if HAS_SMP
    717SUBDIRS += schedsim_smpsimple
     18SUBDIRS += schedsim_smppriority
     19SUBDIRS += schedsim_smppriority_affinity
     20SUBDIRS += schedsim_cluster01
     21SUBDIRS += schedsim_cluster02
     22
    823DIST_SUBDIRS += schedsim_smpsimple
    9 SUBDIRS += schedsim_smppriority
    1024DIST_SUBDIRS += schedsim_smppriority
    11 SUBDIRS += schedsim_smppriority_affinity
    1225DIST_SUBDIRS += schedsim_smppriority_affinity
     26DIST_SUBDIRS += schedsim_cluster01
     27DIST_SUBDIRS += schedsim_cluster02
    1328endif
    1429
  • schedsim/shell/schedsim_priority/config.c

    rac03e9a r6f48a61  
    11#include <rtems.h>
     2#include <schedsim_shell.h>
     3
     4shell_scheduler_name shell_scheduler_list[] = {
     5""
     6};
    27
    38#define CONFIGURE_INIT
  • schedsim/shell/schedsim_simple/config.c

    rac03e9a r6f48a61  
    11#include <rtems.h>
     2#include <schedsim_shell.h>
     3
     4shell_scheduler_name shell_scheduler_list[] = {
     5""
     6};
    27
    38#define CONFIGURE_INIT
  • schedsim/shell/schedsim_smppriority/config.c

    rac03e9a r6f48a61  
    66
    77#include <rtems.h>
     8#include <schedsim_shell.h>
     9
     10shell_scheduler_name shell_scheduler_list[] = {
     11""
     12};
    813
    914#define CONFIGURE_INIT
  • schedsim/shell/schedsim_smppriority_affinity/config.c

    rac03e9a r6f48a61  
    66
    77#include <rtems.h>
     8#include <schedsim_shell.h>
     9
     10shell_scheduler_name shell_scheduler_list[] = {
     11""
     12};
    813
    914#define CONFIGURE_INIT
  • schedsim/shell/schedsim_smpsimple/config.c

    rac03e9a r6f48a61  
    66
    77#include <rtems.h>
     8#include <schedsim_shell.h>
     9
     10shell_scheduler_name shell_scheduler_list[] = {
     11""
     12};
    813
    914#define CONFIGURE_INIT
  • schedsim/shell/shared/Makefile.am

    rac03e9a r6f48a61  
    4949libschedsim_a_SOURCES += main_taskpriority.c
    5050libschedsim_a_SOURCES += main_taskresume.c
     51libschedsim_a_SOURCES += main_taskscheduler.c
    5152libschedsim_a_SOURCES += main_tasksuspend.c
    5253libschedsim_a_SOURCES += main_taskwakeafter.c
  • schedsim/shell/shared/commands.c

    rac03e9a r6f48a61  
    2929extern rtems_shell_cmd_t rtems_shell_TASK_MODE_Command;
    3030extern rtems_shell_cmd_t rtems_shell_TASK_PRIORITY_Command;
     31extern rtems_shell_cmd_t rtems_shell_TASK_SET_SCHEDULER_Command;
    3132extern rtems_shell_cmd_t rtems_shell_TASK_SUSPEND_Command;
    3233extern rtems_shell_cmd_t rtems_shell_TASK_RESUME_Command;
     
    6364  &rtems_shell_TASK_MODE_Command,
    6465  &rtems_shell_TASK_PRIORITY_Command,
     66  &rtems_shell_TASK_SET_SCHEDULER_Command,
    6567  &rtems_shell_TASK_SUSPEND_Command,
    6668  &rtems_shell_TASK_RESUME_Command,
  • schedsim/shell/shared/main_rtemsinit.c

    rac03e9a r6f48a61  
    3333)
    3434{
     35  int i;
     36
    3537#if defined(RTEMS_SMP)
    3638  long cpus = 1;
     
    4446  Schedsim_Maximum_CPUs_From_Command_Line = cpus;
    4547#endif
     48
     49  for (i=0; strcmp("", shell_scheduler_list[i]) != 0; i++)
     50  {
     51    printf("Scheduler %d: %s\n", i, shell_scheduler_list[i]);
     52  }
    4653
    4754  //
  • schedsim/shell/shared/schedsim_shell.h

    rac03e9a r6f48a61  
    2525extern "C" {
    2626#endif
     27
     28#define SCHED_NAME(i) rtems_build_name(' ', ' ', ' ', (char) ('A' + (i)))
     29
     30typedef char * shell_scheduler_name;
     31extern shell_scheduler_name shell_scheduler_list[];
    2732
    2833Thread_Control *get_thread_executing(void);
Note: See TracChangeset for help on using the changeset viewer.