Changes in kernel/generic/src/console/cmd.c [6eef3c4:181a746] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/console/cmd.c
r6eef3c4 r181a746 68 68 #include <sysinfo/sysinfo.h> 69 69 #include <symtab.h> 70 #include <synch/workqueue.h> 71 #include <synch/rcu.h> 70 72 #include <errno.h> 71 73 … … 449 451 }; 450 452 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 = 0 460 }; 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 = 0 469 }; 470 451 471 /* Data and methods for 'ipc' command */ 452 472 static int cmd_ipc(cmd_arg_t *argv); … … 512 532 &physmem_info, 513 533 &reboot_info, 534 &rcu_info, 514 535 &sched_info, 515 536 &set4_info, … … 522 543 &uptime_info, 523 544 &version_info, 545 &workq_info, 524 546 &zones_info, 525 547 &zone_info, … … 1015 1037 } 1016 1038 1039 /** Prints information about the global work queue. 1040 * 1041 * @param argv Ignores 1042 * 1043 * @return Always 1 1044 */ 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 Ignores 1054 * 1055 * @return Always 1 1056 */ 1057 int cmd_rcu(cmd_arg_t *argv) 1058 { 1059 rcu_print_stat(); 1060 return 1; 1061 } 1062 1017 1063 /** Command for listing memory zones 1018 1064 *
Note:
See TracChangeset
for help on using the changeset viewer.