Ignore:
File:
1 edited

Legend:

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

    raae365bc rbab75df6  
    7070#include <sysinfo/sysinfo.h>
    7171#include <symtab.h>
     72#include <synch/workqueue.h>
     73#include <synch/rcu.h>
    7274#include <errno.h>
    7375
     
    534536};
    535537
     538/* Data and methods for the 'workq' command */
     539static int cmd_workq(cmd_arg_t *argv);
     540static cmd_info_t workq_info = {
     541        .name = "workq",
     542        .description = "Show global workq information.",
     543        .func = cmd_workq,
     544        .argc = 0
     545};
     546
     547/* Data and methods for the 'workq' command */
     548static int cmd_rcu(cmd_arg_t *argv);
     549static cmd_info_t rcu_info = {
     550        .name = "rcu",
     551        .description = "Show RCU run-time statistics.",
     552        .func = cmd_rcu,
     553        .argc = 0
     554};
     555
    536556/* Data and methods for 'ipc' command */
    537557static int cmd_ipc(cmd_arg_t *argv);
     
    598618        &physmem_info,
    599619        &reboot_info,
     620        &rcu_info,
    600621        &sched_info,
    601622        &set4_info,
     
    607628        &uptime_info,
    608629        &version_info,
     630        &workq_info,
    609631        &zones_info,
    610632        &zone_info,
     
    12801302}
    12811303
     1304/** Prints information about the global work queue.
     1305 *
     1306 * @param argv Ignores
     1307 *
     1308 * @return Always 1
     1309 */
     1310int cmd_workq(cmd_arg_t *argv)
     1311{
     1312        workq_global_print_info();
     1313        return 1;
     1314}
     1315
     1316/** Prints RCU statistics.
     1317 *
     1318 * @param argv Ignores
     1319 *
     1320 * @return Always 1
     1321 */
     1322int cmd_rcu(cmd_arg_t *argv)
     1323{
     1324        rcu_print_stat();
     1325        return 1;
     1326}
     1327
    12821328/** Command for listing memory zones
    12831329 *
Note: See TracChangeset for help on using the changeset viewer.