Changes in kernel/generic/src/console/cmd.c [181a746:6eef3c4] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/console/cmd.c
r181a746 r6eef3c4 68 68 #include <sysinfo/sysinfo.h> 69 69 #include <symtab.h> 70 #include <synch/workqueue.h>71 #include <synch/rcu.h>72 70 #include <errno.h> 73 71 … … 451 449 }; 452 450 453 /* Data and methods for the 'workq' command */454 static int cmd_workq(cmd_arg_t *argv);455 static cmd_info_t workq_info = {456 .name = "workq",457 .description = "Show global workq information.",458 .func = cmd_workq,459 .argc = 0460 };461 462 /* Data and methods for the 'workq' command */463 static int cmd_rcu(cmd_arg_t *argv);464 static cmd_info_t rcu_info = {465 .name = "rcu",466 .description = "Show RCU run-time statistics.",467 .func = cmd_rcu,468 .argc = 0469 };470 471 451 /* Data and methods for 'ipc' command */ 472 452 static int cmd_ipc(cmd_arg_t *argv); … … 532 512 &physmem_info, 533 513 &reboot_info, 534 &rcu_info,535 514 &sched_info, 536 515 &set4_info, … … 543 522 &uptime_info, 544 523 &version_info, 545 &workq_info,546 524 &zones_info, 547 525 &zone_info, … … 1037 1015 } 1038 1016 1039 /** Prints information about the global work queue.1040 *1041 * @param argv Ignores1042 *1043 * @return Always 11044 */1045 int 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 Ignores1054 *1055 * @return Always 11056 */1057 int cmd_rcu(cmd_arg_t *argv)1058 {1059 rcu_print_stat();1060 return 1;1061 }1062 1063 1017 /** Command for listing memory zones 1064 1018 *
Note:
See TracChangeset
for help on using the changeset viewer.