[rtems commit] sapi: Add profiling report for tests

Sebastian Huber sebh at rtems.org
Tue Mar 25 12:34:10 UTC 2014


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

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Mon Mar 10 15:17:27 2014 +0100

sapi: Add profiling report for tests

---

 cpukit/sapi/src/testextension.c |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/cpukit/sapi/src/testextension.c b/cpukit/sapi/src/testextension.c
index be22d8c..76ac1e0 100644
--- a/cpukit/sapi/src/testextension.c
+++ b/cpukit/sapi/src/testextension.c
@@ -17,6 +17,7 @@
 #endif
 
 #include <rtems/test.h>
+#include <rtems/profiling.h>
 
 void rtems_test_fatal_extension(
   rtems_fatal_source source,
@@ -27,4 +28,14 @@ void rtems_test_fatal_extension(
   (void) source;
   (void) is_internal;
   (void) code;
+
+  if (rtems_smp_get_current_processor() == 0) {
+    rtems_profiling_report_xml(
+      rtems_test_name,
+      printk_plugin,
+      NULL,
+      1,
+      "  "
+    );
+  }
 }




More information about the vc mailing list