source: rtems-schedsim/schedsim/shell/shared/commands.c @ cc1a54a

Last change on this file since cc1a54a was cc1a54a, checked in by Joel Sherrill <joel.sherrill@…>, on 05/22/14 at 15:19:55

Enhance cpus command to do validation of executing threads.

This patch enhances the cpus command such that it can take a list
of expected threads to be executing and validate that they are
executing on the expected cores.

The cpus command was moved to the shared directory.

The documentation was updated.

  • Property mode set to 100644
File size: 2.6 KB
RevLine 
[abb18dc]1/*
2 *  BASED UPON SOURCE IN RTEMS, MODIFIED FOR SIMULATOR
3 *
[a2aad55]4 *  COPYRIGHT (c) 1989-2013.
[abb18dc]5 *  On-Line Applications Research Corporation (OAR).
6 *
7 *  The license and distribution terms for this file may be
8 *  found in the file LICENSE in this distribution or at
9 *  http://www.rtems.com/license/LICENSE.
10 */
11
12#include "shell.h"
13#include <stdio.h>
14
15extern rtems_shell_cmd_t rtems_shell_ECHO_Command;
16extern rtems_shell_cmd_t rtems_shell_HELP_Command;
17
18extern rtems_shell_cmd_t rtems_shell_RTEMS_INIT_Command;
19extern rtems_shell_cmd_t rtems_shell_TASK_CREATE_Command;
20extern rtems_shell_cmd_t rtems_shell_TASK_DELETE_Command;
21extern rtems_shell_cmd_t rtems_shell_TASK_MODE_Command;
22extern rtems_shell_cmd_t rtems_shell_TASK_PRIORITY_Command;
23extern rtems_shell_cmd_t rtems_shell_TASK_SUSPEND_Command;
24extern rtems_shell_cmd_t rtems_shell_TASK_RESUME_Command;
25extern rtems_shell_cmd_t rtems_shell_TASK_WAKE_AFTER_Command;
[156cb91]26#if RTEMS_SMP
27  extern rtems_shell_cmd_t rtems_shell_TASK_GET_AFFINITY_Command;
28  extern rtems_shell_cmd_t rtems_shell_TASK_SET_AFFINITY_Command;
29#endif
[abb18dc]30
31extern rtems_shell_cmd_t rtems_shell_CLOCK_TICK_Command;
32
33extern rtems_shell_cmd_t rtems_shell_SEMAPHORE_CREATE_Command;
34extern rtems_shell_cmd_t rtems_shell_SEMAPHORE_DELETE_Command;
35extern rtems_shell_cmd_t rtems_shell_SEMAPHORE_OBTAIN_Command;
36extern rtems_shell_cmd_t rtems_shell_SEMAPHORE_RELEASE_Command;
37extern rtems_shell_cmd_t rtems_shell_SEMAPHORE_FLUSH_Command;
38
39extern rtems_shell_cmd_t rtems_shell_TASK_EXECUTING_Command;
40extern rtems_shell_cmd_t rtems_shell_TASK_HEIR_Command;
[cc1a54a]41extern rtems_shell_cmd_t rtems_shell_CPUS_Command;
[abb18dc]42
43rtems_shell_cmd_t *rtems_shell_Initial_commands[] = {
44  /* Generic Commands */
45  &rtems_shell_ECHO_Command,
46  &rtems_shell_HELP_Command,
47
48  /* RTEMS Classic API Type Commands */
49  &rtems_shell_RTEMS_INIT_Command,
50  &rtems_shell_TASK_CREATE_Command,
51  &rtems_shell_TASK_DELETE_Command,
52  &rtems_shell_TASK_MODE_Command,
53  &rtems_shell_TASK_PRIORITY_Command,
54  &rtems_shell_TASK_SUSPEND_Command,
55  &rtems_shell_TASK_RESUME_Command,
56  &rtems_shell_TASK_WAKE_AFTER_Command,
[156cb91]57  #if RTEMS_SMP
58    &rtems_shell_TASK_GET_AFFINITY_Command,
59    &rtems_shell_TASK_SET_AFFINITY_Command,
60  #endif
[abb18dc]61
62  &rtems_shell_CLOCK_TICK_Command,
63
64  &rtems_shell_SEMAPHORE_CREATE_Command,
65  &rtems_shell_SEMAPHORE_DELETE_Command,
66  &rtems_shell_SEMAPHORE_OBTAIN_Command,
67  &rtems_shell_SEMAPHORE_RELEASE_Command,
68  &rtems_shell_SEMAPHORE_FLUSH_Command,
69
70  /* RTEMS Helper Commands */
71  &rtems_shell_TASK_EXECUTING_Command,
72  &rtems_shell_TASK_HEIR_Command,
[cc1a54a]73  &rtems_shell_CPUS_Command,
[abb18dc]74  NULL
75};
76
77rtems_shell_alias_t *rtems_shell_Initial_aliases[] = {
78  NULL
79};
Note: See TracBrowser for help on using the repository browser.