Rev 1053 | Rev 1072 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1053 | Rev 1060 | ||
---|---|---|---|
Line 51... | Line 51... | ||
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 | #include <proc/thread.h> |
- | 56 | #include <proc/task.h> |
|
56 | 57 | ||
57 | /** Data and methods for 'help' command. */ |
58 | /** Data and methods for 'help' command. */ |
58 | static int cmd_help(cmd_arg_t *argv); |
59 | static int cmd_help(cmd_arg_t *argv); |
59 | static cmd_info_t help_info = { |
60 | static cmd_info_t help_info = { |
60 | .name = "help", |
61 | .name = "help", |
Line 251... | Line 252... | ||
251 | .description = "List all threads", |
252 | .description = "List all threads", |
252 | .func = cmd_threads, |
253 | .func = cmd_threads, |
253 | .argc = 0 |
254 | .argc = 0 |
254 | }; |
255 | }; |
255 | 256 | ||
- | 257 | static int cmd_tasks(cmd_arg_t *argv); |
|
- | 258 | static cmd_info_t tasks_info = { |
|
- | 259 | .name = "tasks", |
|
- | 260 | .description = "List all tasks", |
|
- | 261 | .func = cmd_tasks, |
|
- | 262 | .argc = 0 |
|
- | 263 | }; |
|
- | 264 | ||
256 | 265 | ||
257 | static int cmd_sched(cmd_arg_t *argv); |
266 | static int cmd_sched(cmd_arg_t *argv); |
258 | static cmd_info_t sched_info = { |
267 | static cmd_info_t sched_info = { |
259 | .name = "scheduler", |
268 | .name = "scheduler", |
260 | .description = "List all scheduler information", |
269 | .description = "List all scheduler information", |
Line 336... | Line 345... | ||
336 | &set4_info, |
345 | &set4_info, |
337 | &slabs_info, |
346 | &slabs_info, |
338 | &symaddr_info, |
347 | &symaddr_info, |
339 | &sched_info, |
348 | &sched_info, |
340 | &threads_info, |
349 | &threads_info, |
- | 350 | &tasks_info, |
|
341 | &tlb_info, |
351 | &tlb_info, |
342 | &version_info, |
352 | &version_info, |
343 | &zones_info, |
353 | &zones_info, |
344 | &zone_info, |
354 | &zone_info, |
345 | &hello_info, |
355 | &hello_info, |
Line 626... | Line 636... | ||
626 | int cmd_threads(cmd_arg_t * argv) { |
636 | int cmd_threads(cmd_arg_t * argv) { |
627 | thread_print_list(); |
637 | thread_print_list(); |
628 | return 1; |
638 | return 1; |
629 | } |
639 | } |
630 | 640 | ||
- | 641 | /** Command for listings Task information |
|
- | 642 | * |
|
- | 643 | * @param argv Ignores |
|
- | 644 | * |
|
- | 645 | * @return Always 1 |
|
- | 646 | */ |
|
- | 647 | int cmd_tasks(cmd_arg_t * argv) { |
|
- | 648 | task_print_list(); |
|
- | 649 | return 1; |
|
- | 650 | } |
|
- | 651 | ||
631 | /** Command for listings Thread information |
652 | /** Command for listings Thread information |
632 | * |
653 | * |
633 | * @param argv Ignores |
654 | * @param argv Ignores |
634 | * |
655 | * |
635 | * @return Always 1 |
656 | * @return Always 1 |