source: rtems/c/src/libmisc/monitor/mon-extension.c @ 3a4ae6c

4.104.114.84.9
Last change on this file since 3a4ae6c was 3a4ae6c, checked in by Joel Sherrill <joel.sherrill@…>, on Sep 11, 1995 at 7:35:39 PM

The word "RTEMS" almost completely removed from the core.

Configuration Table Template file added and all tests
modified to use this. All gvar.h and conftbl.h files
removed from test directories.

Configuration parameter maximum_devices added.

Core semaphore and mutex handlers added and RTEMS API Semaphore
Manager updated to reflect this.

Initialization sequence changed to invoke API specific initialization
routines. Initialization tasks table now owned by RTEMS Tasks Manager.

Added user extension for post-switch.

Utilized user extensions to implement API specific functionality
like signal dispatching.

Added extensions to the System Initialization Thread so that an
API can register a function to be invoked while the system
is being initialized. These are largely equivalent to the
pre-driver and post-driver hooks.

Added the Modules file oar-go32_p5, modified oar-go32, and modified
the file make/custom/go32.cfg to look at an environment varable which
determines what CPU model is being used.

All BSPs updated to reflect named devices and clock driver's IOCTL
used by the Shared Memory Driver. Also merged clock isr into
main file and removed ckisr.c where possible.

Updated spsize to reflect new and moved variables.

Makefiles for the executive source and include files updated to show
break down of files into Core, RTEMS API, and Neither.

Header and inline files installed into subdirectory based on whether
logically in the Core or a part of the RTEMS API.

  • Property mode set to 100644
File size: 3.3 KB
Line 
1/*
2 *      @(#)extension.c 1.3 - 95/07/31
3 *     
4 *
5 * RTEMS Monitor extension support
6 *
7 *  $Id$
8 */
9
10#include <rtems.h>
11#include "monitor.h"
12
13#include <stdio.h>
14
15void
16rtems_monitor_extension_canonical(
17    rtems_monitor_extension_t *canonical_extension,
18    void                  *extension_void
19)
20{
21    Extension_Control     *rtems_extension = (Extension_Control *) extension_void;
22    rtems_extensions_table *e = &rtems_extension->Extension.Callouts;
23
24    rtems_monitor_symbol_canonical_by_value(&canonical_extension->create,
25                                            e->thread_create);
26
27    rtems_monitor_symbol_canonical_by_value(&canonical_extension->start,
28                                            e->thread_start);
29    rtems_monitor_symbol_canonical_by_value(&canonical_extension->restart,
30                                            e->thread_restart);
31    rtems_monitor_symbol_canonical_by_value(&canonical_extension->delete,
32                                            e->thread_delete);
33    rtems_monitor_symbol_canonical_by_value(&canonical_extension->tswitch,
34                                            e->thread_switch);
35    rtems_monitor_symbol_canonical_by_value(&canonical_extension->begin,
36                                            e->thread_begin);
37    rtems_monitor_symbol_canonical_by_value(&canonical_extension->exitted,
38                                            e->thread_exitted);
39    rtems_monitor_symbol_canonical_by_value(&canonical_extension->fatal,
40                                            e->fatal);
41}
42
43void
44rtems_monitor_extension_dump_header(
45    boolean verbose
46)
47{
48    printf("\
49  ID       NAME\n");
50/*23456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789
510         1         2         3         4         5         6         7       */
52           
53    rtems_monitor_separator();
54}
55
56
57/*
58 * Dump out the canonical form
59 */
60
61void
62rtems_monitor_extension_dump(
63    rtems_monitor_extension_t *monitor_extension,
64    boolean  verbose
65)
66{
67    unsigned32           length = 0;
68
69    length += rtems_monitor_dump_id(monitor_extension->id);
70    length += rtems_monitor_pad(11, length);
71    length += rtems_monitor_dump_name(monitor_extension->name);
72
73    length += rtems_monitor_pad(18, length);
74    length += printf("create: ");
75    length += rtems_monitor_symbol_dump(&monitor_extension->create, verbose);
76    length += printf(";  start: ");
77    length += rtems_monitor_symbol_dump(&monitor_extension->start, verbose);
78    length += printf(";  restart: ");
79    length += rtems_monitor_symbol_dump(&monitor_extension->restart, verbose);
80    length += printf("\n");
81    length = 0;
82
83    length += rtems_monitor_pad(18, length);
84    length += printf("delete: ");
85    length += rtems_monitor_symbol_dump(&monitor_extension->delete, verbose);
86    length += printf(";  switch: ");
87    length += rtems_monitor_symbol_dump(&monitor_extension->tswitch, verbose);
88    length += printf(";  begin: ");
89    length += rtems_monitor_symbol_dump(&monitor_extension->begin, verbose);
90    length += printf("\n");
91    length = 0;
92
93    length += rtems_monitor_pad(18, length);
94    length += printf("exitted: ");
95    length += rtems_monitor_symbol_dump(&monitor_extension->exitted, verbose);
96    length += printf(";  fatal: ");
97    length += rtems_monitor_symbol_dump(&monitor_extension->fatal, verbose);
98    length += printf("\n");
99    length = 0;
100    printf("\n");
101}
Note: See TracBrowser for help on using the repository browser.