[rtems commit] sapi: Report profiling only if enabled for tests

Sebastian Huber sebh at rtems.org
Tue Apr 29 06:00:10 UTC 2014


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

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue Apr 29 07:48:09 2014 +0200

sapi: Report profiling only if enabled for tests

---

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

diff --git a/cpukit/sapi/src/testextension.c b/cpukit/sapi/src/testextension.c
index 0264ef6..0a1cd87 100644
--- a/cpukit/sapi/src/testextension.c
+++ b/cpukit/sapi/src/testextension.c
@@ -29,6 +29,7 @@ void rtems_test_fatal_extension(
   (void) is_internal;
   (void) code;
 
+#if defined(RTEMS_PROFILING)
   if (rtems_get_current_processor() == 0) {
     rtems_profiling_report_xml(
       rtems_test_name,
@@ -44,4 +45,5 @@ void rtems_test_fatal_extension(
       rtems_test_name
     );
   }
+#endif
 }




More information about the vc mailing list