Changeset 694bd9f in rtems


Ignore:
Timestamp:
Jan 7, 2008, 5:46:25 PM (13 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.9, 5, master
Children:
0e97a7f
Parents:
c961c06b
Message:

2008-01-07 Joel Sherrill <joel.sherrill@…>

  • libmisc/Makefile.am: Add new files.
  • libmisc/shell/internal.h: Prototype for rtems_shell_print_heap_info()
  • libmisc/shell/main_mallocinfo.c: Use rtems_shell_print_heap_info().
  • libmisc/shell/shellconfig.h: Add wkspace command.
  • libmisc/shell/main_wkspaceinfo.c, libmisc/shell/print_heapinfo.c: New files.
Location:
cpukit
Files:
2 added
5 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    rc961c06b r694bd9f  
     12008-01-07      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * libmisc/Makefile.am: Add new files.
     4        * libmisc/shell/internal.h: Prototype for rtems_shell_print_heap_info()
     5        * libmisc/shell/main_mallocinfo.c: Use rtems_shell_print_heap_info().
     6        * libmisc/shell/shellconfig.h: Add wkspace command.
     7        * libmisc/shell/main_wkspaceinfo.c,
     8        libmisc/shell/print_heapinfo.c: New files.
     9
    1102008-01-07      Joel Sherrill <joel.sherrill@oarcorp.com>
    211
  • cpukit/libmisc/Makefile.am

    rc961c06b r694bd9f  
    6262
    6363## shell
    64 
    6564if LIBSHELL
    6665noinst_LIBRARIES += libshell.a
     
    8786    shell/utils-cp.c shell/err.c shell/errx.c shell/verr.c shell/verrx.c \
    8887    shell/vwarn.c shell/vwarnx.c shell/warn.c shell/warnx.c \
    89     shell/fts.c
     88    shell/fts.c shell/print_heapinfo.c shell/main_wkspaceinfo.c
    9089endif
    9190
  • cpukit/libmisc/shell/internal.h

    rc961c06b r694bd9f  
    3434void rtems_shell_initialize_command_set(void);
    3535
    36 int rtems_shell_libc_mounter (const char*                driver,
    37                               const char*                path,
    38                               rtems_shell_filesystems_t* fs,
    39                               rtems_filesystem_options_t options);
     36int rtems_shell_libc_mounter(
     37  const char*                driver,
     38  const char*                path,
     39  rtems_shell_filesystems_t* fs,
     40  rtems_filesystem_options_t options
     41);
     42
     43void rtems_shell_print_heap_info(
     44  const char       *c,
     45  Heap_Information *h
     46);
    4047
    4148#endif
  • cpukit/libmisc/shell/main_mallocinfo.c

    rc961c06b r694bd9f  
    5050
    5151      malloc_info( &info );
    52       printit( "free", &info.Free );
    53       printit( "used", &info.Used );
     52      rtems_shell_print_heap_info( "free", &info.Free );
     53      rtems_shell_print_heap_info( "used", &info.Used );
    5454      return 0;
    5555    } else if ( !strcmp( argv[1], "stats" ) ) {
  • cpukit/libmisc/shell/shellconfig.h

    rc961c06b r694bd9f  
    5454extern rtems_shell_cmd_t rtems_shell_STACKUSE_Command;
    5555extern rtems_shell_cmd_t rtems_shell_PERIODUSE_Command;
     56extern rtems_shell_cmd_t rtems_shell_WKSPACE_INFO_Command;
    5657extern rtems_shell_cmd_t rtems_shell_MALLOC_INFO_Command;
     58extern rtems_shell_cmd_t rtems_shell_JOEL_Command;
    5759
    5860extern rtems_shell_cmd_t *rtems_shell_Initial_commands[];
     
    288290      &rtems_shell_PERIODUSE_Command,
    289291    #endif
     292    #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
     293         !defined(CONFIGURE_SHELL_COMMAND_WKSPACE_INFO)) || \
     294        defined(CONFIGURE_SHELL_COMMAND_WKSPACE_INFO)
     295      &rtems_shell_WKSPACE_INFO_Command,
     296    #endif
     297
    290298
    291299    /*
     
    298306    #endif
    299307
     308    &rtems_shell_JOEL_Command,
    300309    /*
    301310     *  User defined shell commands
Note: See TracChangeset for help on using the changeset viewer.