From c8f7b4e6ca8c9d1c17f2bf6a6278bc4d406b6835 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 26 Nov 2008 16:38:06 +0000 Subject: 2008-11-26 Joel Sherrill * 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. --- cpukit/score/include/rtems/score/watchdog.h | 40 ++++++++++++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) (limited to 'cpukit/score/include/rtems/score/watchdog.h') 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 #endif -- cgit v1.2.3