[rtems commit] sapi: Add profiling report begin/end message

Sebastian Huber sebh at rtems.org
Tue Sep 2 12:12:34 UTC 2014


Module:    rtems
Branch:    master
Commit:    fe826e23d44843aaeb2fca71095203b46938c6e9
Changeset: http://git.rtems.org/rtems/commit/?id=fe826e23d44843aaeb2fca71095203b46938c6e9

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue Sep  2 14:10:19 2014 +0200

sapi: Add profiling report begin/end message

---

 cpukit/sapi/src/testextension.c |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/cpukit/sapi/src/testextension.c b/cpukit/sapi/src/testextension.c
index 0a1cd87..5221aaf 100644
--- a/cpukit/sapi/src/testextension.c
+++ b/cpukit/sapi/src/testextension.c
@@ -30,7 +30,12 @@ void rtems_test_fatal_extension(
   (void) code;
 
 #if defined(RTEMS_PROFILING)
-  if (rtems_get_current_processor() == 0) {
+  if ( rtems_get_current_processor() == 0 ) {
+    printk(
+      "\n*** PROFILING REPORT BEGIN %s ***\n",
+      rtems_test_name
+    );
+
     rtems_profiling_report_xml(
       rtems_test_name,
       printk_plugin,
@@ -39,9 +44,8 @@ void rtems_test_fatal_extension(
       "  "
     );
 
-    /* Add some stuff to help broken debuggers */
     printk(
-      "*** PROFILING DONE %s ***\n",
+      "*** PROFILING REPORT END %s ***\n",
       rtems_test_name
     );
   }



More information about the vc mailing list