[PATCH 7/7] score: Hide SMP lock profiling impl if disabled

Sebastian Huber sebastian.huber at embedded-brains.de
Fri Jun 26 07:12:41 UTC 2015



On 26/06/15 09:07, Chris Johns wrote:
>> >
>>> >>
>>> >>I looked into adding some SMP stats to top not long ago I found there
>>> >>was nothing I report on unless profiling was on and if I turned on
>>> >>profiling I got too much such as timing and other nice features.
>>> >>
>>> >>I could not see how to show how many context switches each core had, how
>>> >>many interrupts each core serviced.
>> >
>> >We can enable such things individually.
>> >
> Then may I suggest we default them to always so code that references
> these values can avoid the condition compile options to get at them.
>

There is no conditional stuff in the user API <rtems/profiling.h>. You 
just get zero values or nothing at all.

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.




More information about the devel mailing list