Back to home page

LXR

 
 

    


File indexing completed on 2025-05-11 08:24:19

0001 /*
0002  * Copyright (c) 2016 embedded brains GmbH & Co. KG
0003  *
0004  * The license and distribution terms for this file may be
0005  * found in the file LICENSE in this distribution or at
0006  * http://www.rtems.org/license/LICENSE.
0007  */
0008 
0009 #ifdef HAVE_CONFIG_H
0010 #include "config.h"
0011 #endif
0012 
0013 #include <rtems/shell.h>
0014 #include <rtems/shellconfig.h>
0015 #include <rtems/cpuuse.h>
0016 #include <rtems/printer.h>
0017 
0018 static int rtems_shell_main_cpuinfo(int argc, char **argv)
0019 {
0020   rtems_printer printer;
0021 
0022   rtems_print_printer_fprintf(&printer, stdout);
0023   rtems_cpu_info_report(&printer);
0024 
0025   return 0;
0026 }
0027 
0028 rtems_shell_cmd_t rtems_shell_CPUINFO_Command = {
0029   .name = "cpuinfo",
0030   .usage = "cpuinfo",
0031   .topic = "rtems",
0032   .command = rtems_shell_main_cpuinfo
0033 };