Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset b3631bc in mainline


Ignore:
Timestamp:
2010-04-17T01:02:53Z (12 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master
Children:
af7a26b
Parents:
9528be02
Message:

add sysinfo kconsole command

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/console/cmd.c

    r9528be02 rb3631bc  
    6666#include <ipc/irq.h>
    6767#include <ipc/event.h>
     68#include <sysinfo/sysinfo.h>
    6869#include <symtab.h>
    6970#include <errno.h>
     
    387388};
    388389
     390static int cmd_sysinfo(cmd_arg_t *argv);
     391static cmd_info_t sysinfo_info = {
     392        .name = "sysinfo",
     393        .description = "Dump sysinfo.",
     394        .func = cmd_sysinfo,
     395        .argc = 0
     396};
     397
    389398/* Data and methods for 'zones' command */
    390399static int cmd_zones(cmd_arg_t *argv);
     
    475484        &set4_info,
    476485        &slabs_info,
     486        &sysinfo_info,
    477487        &symaddr_info,
    478488        &sched_info,
     
    868878}
    869879
     880/** Command for dumping sysinfo
     881 *
     882 * @param argv Ignores
     883 *
     884 * @return Always 1
     885 */
     886int cmd_sysinfo(cmd_arg_t * argv)
     887{
     888        sysinfo_dump(NULL, 0);
     889        return 1;
     890}
     891
    870892
    871893/** Command for listings Thread information
Note: See TracChangeset for help on using the changeset viewer.