diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-11-26 16:38:06 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-11-26 16:38:06 +0000 |
commit | c8f7b4e6ca8c9d1c17f2bf6a6278bc4d406b6835 (patch) | |
tree | 905e6115a43c8a635388f24a1c4b4adf055333ea /cpukit/score/include/rtems/score/watchdog.h | |
parent | 2008-11-26 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-c8f7b4e6ca8c9d1c17f2bf6a6278bc4d406b6835.tar.bz2 |
2008-11-26 Joel Sherrill <joel.sherrill@oarcorp.com>
* score/Makefile.am, score/include/rtems/score/watchdog.h: Add
_Watchdog_Report and _Watchdog_Report_chain as debug assist routines.
They are NOT to be used in directives.
* score/src/watchdogreport.c, score/src/watchdogreportchain.c:
New files.
Diffstat (limited to '')
-rw-r--r-- | cpukit/score/include/rtems/score/watchdog.h | 40 |
1 files changed, 39 insertions, 1 deletions
diff --git a/cpukit/score/include/rtems/score/watchdog.h b/cpukit/score/include/rtems/score/watchdog.h index a1259ab4c4..5cc1498d5b 100644 --- a/cpukit/score/include/rtems/score/watchdog.h +++ b/cpukit/score/include/rtems/score/watchdog.h @@ -240,11 +240,49 @@ void _Watchdog_Insert ( * * @param[in] header is the watchdog chain to tickle */ - void _Watchdog_Tickle ( Chain_Control *header ); +/** + * @brief Report Information on a Single Watchdog Instance + * + * This method prints a one line report on the watchdog instance + * provided. The @a name may be used to identify the watchdog and + * a space will be printed after @a name if it is not NULL. + * + * @param[in] name is a string to prefix the line with. If NULL, + * nothing is printed. + * @param[in] watch is the watchdog instance to be printed. + * + * @note This is a debug routine. It uses printk() and prudence should + * exercised when using it. + */ +void _Watchdog_Report( + const char *name, + Watchdog_Control *watch +); + +/** + * @brief Report Information on a Watchdog Chain + * + * This method prints report on the watchdog chain provided. + * The @a name may be used to identify the watchdog chain and + * a space will be printed after @a name if it is not NULL. + * + * @param[in] name is a string to prefix the line with. If NULL, + * nothing is printed. + * @param[in] watch is the watchdog chain to be printed. + * + * @note This is a debug routine. It uses printk() and prudence should + * exercised when using it. It also disables interrupts so the + * chain can be traversed in a single atomic pass. + */ +void _Watchdog_Report_chain( + const char *name, + Chain_Control *header +); + #ifndef __RTEMS_APPLICATION__ #include <rtems/score/watchdog.inl> #endif |