| 58 | |
| 59 | #ifdef MSH_USING_BUILT_IN_COMMANDS |
| 60 | static int cmd_ps(int argc, char **argv) |
| 61 | { |
| 62 | extern long list_thread(void); |
| 63 | extern int list_module(void); |
| 64 | |
| 65 | #ifdef RT_USING_MODULE |
| 66 | if ((argc == 2) && (strcmp(argv[1], "-m") == 0)) |
| 67 | list_module(); |
| 68 | else |
| 69 | #endif |
| 70 | list_thread(); |
| 71 | return 0; |
| 72 | } |
| 73 | MSH_CMD_EXPORT_ALIAS(cmd_ps, ps, List threads in the system); |
| 74 | |
| 75 | #ifdef RT_USING_HEAP |
nothing calls this directly
no test coverage detected