Rev 1474 | Rev 1582 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1474 | Rev 1573 | ||
---|---|---|---|
Line 56... | Line 56... | ||
56 | #include <main/version.h> |
56 | #include <main/version.h> |
57 | #include <mm/slab.h> |
57 | #include <mm/slab.h> |
58 | #include <proc/scheduler.h> |
58 | #include <proc/scheduler.h> |
59 | #include <proc/thread.h> |
59 | #include <proc/thread.h> |
60 | #include <proc/task.h> |
60 | #include <proc/task.h> |
- | 61 | #include <ipc/ipc.h> |
|
61 | 62 | ||
62 | /** Data and methods for 'help' command. */ |
63 | /** Data and methods for 'help' command. */ |
63 | static int cmd_help(cmd_arg_t *argv); |
64 | static int cmd_help(cmd_arg_t *argv); |
64 | static cmd_info_t help_info = { |
65 | static cmd_info_t help_info = { |
65 | .name = "help", |
66 | .name = "help", |
Line 298... | Line 299... | ||
298 | .description = "List of memory zones.", |
299 | .description = "List of memory zones.", |
299 | .func = cmd_zones, |
300 | .func = cmd_zones, |
300 | .argc = 0 |
301 | .argc = 0 |
301 | }; |
302 | }; |
302 | 303 | ||
- | 304 | /** Data and methods for 'ipc_task' command */ |
|
- | 305 | static int cmd_ipc_task(cmd_arg_t *argv); |
|
- | 306 | static cmd_arg_t ipc_task_argv = { |
|
- | 307 | .type = ARG_TYPE_INT, |
|
- | 308 | }; |
|
- | 309 | static cmd_info_t ipc_task_info = { |
|
- | 310 | .name = "ipc_task", |
|
- | 311 | .description = "Show memory zone structure.", |
|
- | 312 | .func = cmd_ipc_task, |
|
- | 313 | .argc = 1, |
|
- | 314 | .argv = &ipc_task_argv |
|
- | 315 | }; |
|
- | 316 | ||
303 | /** Data and methods for 'zone' command */ |
317 | /** Data and methods for 'zone' command */ |
304 | static int cmd_zone(cmd_arg_t *argv); |
318 | static int cmd_zone(cmd_arg_t *argv); |
305 | static cmd_arg_t zone_argv = { |
319 | static cmd_arg_t zone_argv = { |
306 | .type = ARG_TYPE_INT, |
320 | .type = ARG_TYPE_INT, |
307 | }; |
321 | }; |
Line 345... | Line 359... | ||
345 | &cpus_info, |
359 | &cpus_info, |
346 | &desc_info, |
360 | &desc_info, |
347 | &exit_info, |
361 | &exit_info, |
348 | &halt_info, |
362 | &halt_info, |
349 | &help_info, |
363 | &help_info, |
- | 364 | &ipc_task_info, |
|
350 | &set4_info, |
365 | &set4_info, |
351 | &slabs_info, |
366 | &slabs_info, |
352 | &symaddr_info, |
367 | &symaddr_info, |
353 | &sched_info, |
368 | &sched_info, |
354 | &threads_info, |
369 | &threads_info, |
Line 684... | Line 699... | ||
684 | int cmd_zone(cmd_arg_t * argv) { |
699 | int cmd_zone(cmd_arg_t * argv) { |
685 | zone_print_one(argv[0].intval); |
700 | zone_print_one(argv[0].intval); |
686 | return 1; |
701 | return 1; |
687 | } |
702 | } |
688 | 703 | ||
- | 704 | /** Command for printing task ipc details |
|
- | 705 | * |
|
- | 706 | * @param argv Integer argument from cmdline expected |
|
- | 707 | * |
|
- | 708 | * return Always 1 |
|
- | 709 | */ |
|
- | 710 | int cmd_ipc_task(cmd_arg_t * argv) { |
|
- | 711 | ipc_print_task(argv[0].intval); |
|
- | 712 | return 1; |
|
- | 713 | } |
|
- | 714 | ||
- | 715 | ||
689 | /** Command for listing processors. |
716 | /** Command for listing processors. |
690 | * |
717 | * |
691 | * @param argv Ignored. |
718 | * @param argv Ignored. |
692 | * |
719 | * |
693 | * return Always 1. |
720 | * return Always 1. |