From 0874d7dd594dab1a7214c66117eb25db57fc5c02 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 3 Feb 2017 13:58:19 +0100 Subject: c-user: Add SMP profiling --- c-user/symmetric_multiprocessing_services.rst | 58 +++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) (limited to 'c-user') diff --git a/c-user/symmetric_multiprocessing_services.rst b/c-user/symmetric_multiprocessing_services.rst index 80e3f8c..b043bf8 100644 --- a/c-user/symmetric_multiprocessing_services.rst +++ b/c-user/symmetric_multiprocessing_services.rst @@ -2,6 +2,7 @@ .. COMMENT: COPYRIGHT (c) 2014. .. COMMENT: On-Line Applications Research Corporation (OAR). +.. COMMENT: Copyright (c) 2017 embedded brains GmbH. .. COMMENT: All rights reserved. Symmetric Multiprocessing (SMP) @@ -599,6 +600,63 @@ processors. :width: 400 :align: center +Profiling +--------- + +To identify the bottlenecks in the system, support for profiling of low-level +synchronization is optionally available. The profiling support is a BSP build +time configuration option (``--enable-profiling``) and is implemented with an +acceptable overhead, even for production systems. A low-overhead counter for +short time intervals must be provided by the hardware. + +Profiling reports are generated in XML for most test programs of the RTEMS +testsuite (more than 500 test programs). This gives a good sample set for +statistics. For example the maximum thread dispatch disable time, the maximum +interrupt latency or lock contention can be determined. + +.. code-block:: xml + + + + 36636 + 5065 + 3846635988 + + 759395 + 8772 + 13668 + 6221 + 6757072 + 1086 + + + 39408 + 5060 + 3842749508 + + 759391 + 8412 + 15868 + 3525 + 3814476 + 1082 + + + + 7092 + 10984 + 2320 + 199 + 3523939244 + 302545596 + 1518758 + 759399 + 759359 + 0 + 0 + + + Scheduler Helping Protocol -------------------------- -- cgit v1.2.3