Ignore:
File:
1 edited

Legend:

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

    r6eef3c4 r181a746  
    6868#include <sysinfo/sysinfo.h>
    6969#include <symtab.h>
     70#include <synch/workqueue.h>
     71#include <synch/rcu.h>
    7072#include <errno.h>
    7173
     
    449451};
    450452
     453/* Data and methods for the 'workq' command */
     454static int cmd_workq(cmd_arg_t *argv);
     455static cmd_info_t workq_info = {
     456        .name = "workq",
     457        .description = "Show global workq information.",
     458        .func = cmd_workq,
     459        .argc = 0
     460};
     461
     462/* Data and methods for the 'workq' command */
     463static int cmd_rcu(cmd_arg_t *argv);
     464static cmd_info_t rcu_info = {
     465        .name = "rcu",
     466        .description = "Show RCU run-time statistics.",
     467        .func = cmd_rcu,
     468        .argc = 0
     469};
     470
    451471/* Data and methods for 'ipc' command */
    452472static int cmd_ipc(cmd_arg_t *argv);
     
    512532        &physmem_info,
    513533        &reboot_info,
     534        &rcu_info,
    514535        &sched_info,
    515536        &set4_info,
     
    522543        &uptime_info,
    523544        &version_info,
     545        &workq_info,
    524546        &zones_info,
    525547        &zone_info,
     
    10151037}
    10161038
     1039/** Prints information about the global work queue.
     1040 *
     1041 * @param argv Ignores
     1042 *
     1043 * @return Always 1
     1044 */
     1045int cmd_workq(cmd_arg_t *argv)
     1046{
     1047        workq_global_print_info();
     1048        return 1;
     1049}
     1050
     1051/** Prints RCU statistics.
     1052 *
     1053 * @param argv Ignores
     1054 *
     1055 * @return Always 1
     1056 */
     1057int cmd_rcu(cmd_arg_t *argv)
     1058{
     1059        rcu_print_stat();
     1060        return 1;
     1061}
     1062
    10171063/** Command for listing memory zones
    10181064 *
Note: See TracChangeset for help on using the changeset viewer.