2015-02-12 18:06:34 +01:00
|
|
|
/*
|
2013-06-22 05:11:53 +02:00
|
|
|
* Copyright (C) 2013 INRIA.
|
|
|
|
*
|
2014-07-31 19:45:27 +02:00
|
|
|
* This file is subject to the terms and conditions of the GNU Lesser
|
|
|
|
* General Public License v2.1. See the file LICENSE in the top level
|
|
|
|
* directory for more details.
|
2015-02-12 18:06:34 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @ingroup sys_shell_commands
|
2013-06-22 05:11:53 +02:00
|
|
|
* @{
|
2015-02-12 18:06:34 +01:00
|
|
|
*
|
|
|
|
* @file
|
|
|
|
* @brief Shell commands for the PS module
|
|
|
|
*
|
|
|
|
* @author Oliver Hahm <oliver.hahm@inria.fr>
|
|
|
|
*
|
2013-06-22 05:11:53 +02:00
|
|
|
* @}
|
|
|
|
*/
|
|
|
|
|
2013-02-08 17:37:02 +01:00
|
|
|
#include "ps.h"
|
2022-05-31 23:27:27 +02:00
|
|
|
#include "shell.h"
|
2013-02-08 17:37:02 +01:00
|
|
|
|
2022-06-08 08:51:38 +02:00
|
|
|
static int _ps_handler(int argc, char **argv)
|
2013-06-22 05:11:53 +02:00
|
|
|
{
|
2014-02-21 19:10:24 +01:00
|
|
|
(void) argc;
|
|
|
|
(void) argv;
|
2013-08-08 18:34:51 +02:00
|
|
|
|
2015-04-17 10:02:54 +02:00
|
|
|
ps();
|
2015-03-20 08:51:45 +01:00
|
|
|
|
|
|
|
return 0;
|
2013-02-08 17:37:02 +01:00
|
|
|
}
|
2022-05-31 23:27:27 +02:00
|
|
|
|
|
|
|
SHELL_COMMAND(ps, "Prints information about running threads.", _ps_handler);
|