Changeset 01cb554 in rtems


Ignore:
Timestamp:
Apr 12, 2016, 5:31:01 AM (4 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
dd2c57d4
Parents:
5e072f6d
git-author:
Sebastian Huber <sebastian.huber@…> (04/12/16 05:31:01)
git-committer:
Sebastian Huber <sebastian.huber@…> (05/31/16 08:10:36)
Message:

shell: Add CPUINFO command

Update #2723.

Location:
cpukit/libmisc
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libmisc/Makefile.am

    r5e072f6d r01cb554  
    3131libcpuuse_a_SOURCES = cpuuse/cpuusagereport.c cpuuse/cpuusagereset.c \
    3232     cpuuse/cpuuse.h cpuuse/cpuusagedata.c cpuuse/cpuusagetop.c
     33libcpuuse_a_SOURCES += cpuuse/cpuinforeport.c
    3334
    3435## devnull
     
    115116libshell_a_SOURCES += shell/main_cmdchown.c
    116117libshell_a_SOURCES += shell/main_cmdchmod.c
     118libshell_a_SOURCES += shell/main_cpuinfo.c
    117119libshell_a_SOURCES += shell/main_profreport.c
    118120
  • cpukit/libmisc/cpuuse/cpuuse.h

    r5e072f6d r01cb554  
    7474void rtems_cpu_usage_reset( void );
    7575
     76/**
     77 * @brief Reports per-processor information.
     78 *
     79 * @return The number of characters printed.
     80 */
     81int rtems_cpu_info_report( const rtems_printer *printer );
     82
    7683#ifdef __cplusplus
    7784}
  • cpukit/libmisc/shell/shellconfig.h

    r5e072f6d r01cb554  
    8181
    8282extern rtems_shell_cmd_t rtems_shell_SHUTDOWN_Command;
     83extern rtems_shell_cmd_t rtems_shell_CPUINFO_Command;
    8384extern rtems_shell_cmd_t rtems_shell_CPUUSE_Command;
    8485extern rtems_shell_cmd_t rtems_shell_TOP_Command;
     
    432433    #endif
    433434    #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
     435         !defined(CONFIGURE_SHELL_NO_COMMAND_CPUINFO)) || \
     436        defined(CONFIGURE_SHELL_COMMAND_CPUINFO)
     437      &rtems_shell_CPUINFO_Command,
     438    #endif
     439    #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \
    434440         !defined(CONFIGURE_SHELL_NO_COMMAND_CPUUSE)) || \
    435441        defined(CONFIGURE_SHELL_COMMAND_CPUUSE)
Note: See TracChangeset for help on using the changeset viewer.