Rev 775 | Rev 788 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 775 | Rev 777 | ||
|---|---|---|---|
| Line 50... | Line 50... | ||
| 50 | #include <arch/mm/tlb.h> |
50 | #include <arch/mm/tlb.h> |
| 51 | #include <mm/frame.h> |
51 | #include <mm/frame.h> |
| 52 | #include <main/version.h> |
52 | #include <main/version.h> |
| 53 | #include <mm/slab.h> |
53 | #include <mm/slab.h> |
| 54 | #include <proc/scheduler.h> |
54 | #include <proc/scheduler.h> |
| - | 55 | #include <proc/thread.h> |
|
| 55 | 56 | ||
| 56 | /** Data and methods for 'help' command. */ |
57 | /** Data and methods for 'help' command. */ |
| 57 | static int cmd_help(cmd_arg_t *argv); |
58 | static int cmd_help(cmd_arg_t *argv); |
| 58 | static cmd_info_t help_info = { |
59 | static cmd_info_t help_info = { |
| 59 | .name = "help", |
60 | .name = "help", |
| Line 242... | Line 243... | ||
| 242 | .func = cmd_tlb, |
243 | .func = cmd_tlb, |
| 243 | .argc = 0, |
244 | .argc = 0, |
| 244 | .argv = NULL |
245 | .argv = NULL |
| 245 | }; |
246 | }; |
| 246 | 247 | ||
| - | 248 | static int cmd_threads(cmd_arg_t *argv); |
|
| - | 249 | static cmd_info_t threads_info = { |
|
| - | 250 | .name = "threads", |
|
| - | 251 | .description = "List all threads", |
|
| - | 252 | .func = cmd_threads, |
|
| - | 253 | .argc = 0 |
|
| - | 254 | }; |
|
| - | 255 | ||
| 247 | 256 | ||
| 248 | static int cmd_sched(cmd_arg_t *argv); |
257 | static int cmd_sched(cmd_arg_t *argv); |
| 249 | static cmd_info_t sched_info = { |
258 | static cmd_info_t sched_info = { |
| 250 | .name = "scheduler", |
259 | .name = "scheduler", |
| 251 | .description = "List all scheduler information", |
260 | .description = "List all scheduler information", |
| Line 318... | Line 327... | ||
| 318 | &help_info, |
327 | &help_info, |
| 319 | &set4_info, |
328 | &set4_info, |
| 320 | &slabs_info, |
329 | &slabs_info, |
| 321 | &symaddr_info, |
330 | &symaddr_info, |
| 322 | &sched_info, |
331 | &sched_info, |
| - | 332 | &threads_info, |
|
| 323 | &tlb_info, |
333 | &tlb_info, |
| 324 | &version_info, |
334 | &version_info, |
| 325 | &zones_info, |
335 | &zones_info, |
| 326 | &zone_info, |
336 | &zone_info, |
| 327 | NULL |
337 | NULL |
| Line 595... | Line 605... | ||
| 595 | int cmd_slabs(cmd_arg_t * argv) { |
605 | int cmd_slabs(cmd_arg_t * argv) { |
| 596 | slab_print_list(); |
606 | slab_print_list(); |
| 597 | return 1; |
607 | return 1; |
| 598 | } |
608 | } |
| 599 | 609 | ||
| - | 610 | ||
| - | 611 | /** Command for listings Thread information |
|
| - | 612 | * |
|
| - | 613 | * @param argv Ignores |
|
| - | 614 | * |
|
| - | 615 | * @return Always 1 |
|
| - | 616 | */ |
|
| - | 617 | int cmd_threads(cmd_arg_t * argv) { |
|
| - | 618 | thread_print_list(); |
|
| - | 619 | return 1; |
|
| - | 620 | } |
|
| - | 621 | ||
| 600 | /** Command for listings Thread information |
622 | /** Command for listings Thread information |
| 601 | * |
623 | * |
| 602 | * @param argv Ignores |
624 | * @param argv Ignores |
| 603 | * |
625 | * |
| 604 | * @return Always 1 |
626 | * @return Always 1 |