5
Last change
on this file since f97536d was
f97536d,
checked in by Sebastian Huber <sebastian.huber@…>, on 10/16/15 at 06:21:48
|
basdefs.h: Add and use RTEMS_UNUSED
|
-
Property mode set to
100644
|
File size:
1.0 KB
|
Line | |
---|
1 | /* |
---|
2 | * stackuse Command Implementation |
---|
3 | * |
---|
4 | * COPYRIGHT (c) 1989-2008. |
---|
5 | * On-Line Applications Research Corporation (OAR). |
---|
6 | * |
---|
7 | * The license and distribution terms for this file may be |
---|
8 | * found in the file LICENSE in this distribution or at |
---|
9 | * http://www.rtems.org/license/LICENSE. |
---|
10 | */ |
---|
11 | |
---|
12 | #ifdef HAVE_CONFIG_H |
---|
13 | #include "config.h" |
---|
14 | #endif |
---|
15 | |
---|
16 | #include <stdio.h> |
---|
17 | |
---|
18 | #include <rtems.h> |
---|
19 | #include <rtems/stackchk.h> |
---|
20 | #include <rtems/shell.h> |
---|
21 | #include "internal.h" |
---|
22 | |
---|
23 | static int rtems_shell_main_stackuse( |
---|
24 | int argc RTEMS_UNUSED, |
---|
25 | char *argv[] RTEMS_UNUSED |
---|
26 | ) |
---|
27 | { |
---|
28 | rtems_stack_checker_report_usage_with_plugin( |
---|
29 | stdout, |
---|
30 | (rtems_printk_plugin_t)fprintf |
---|
31 | ); |
---|
32 | return 0; |
---|
33 | } |
---|
34 | |
---|
35 | rtems_shell_cmd_t rtems_shell_STACKUSE_Command = { |
---|
36 | "stackuse", /* name */ |
---|
37 | "print per thread stack usage", /* usage */ |
---|
38 | "rtems", /* topic */ |
---|
39 | rtems_shell_main_stackuse, /* command */ |
---|
40 | NULL, /* alias */ |
---|
41 | NULL /* next */ |
---|
42 | }; |
---|
Note: See
TracBrowser
for help on using the repository browser.