Changeset a4203273 in rtems for cpukit/sapi


Ignore:
Timestamp:
Oct 23, 2014, 1:39:28 PM (5 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
17889b2
Parents:
866a6fc
Message:

sapi: Report only if not an SMP shutdown response

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/sapi/src/testextension.c

    r866a6fc ra4203273  
    2020#include <rtems/profiling.h>
    2121
     22#if defined(RTEMS_SMP)
     23#include <rtems/score/smpimpl.h>
     24#endif
     25
     26#if defined(RTEMS_PROFILING)
     27static bool should_report(
     28  rtems_fatal_source source,
     29  rtems_fatal_code code
     30)
     31{
     32#if defined(RTEMS_SMP)
     33  return source != RTEMS_FATAL_SOURCE_SMP
     34    || code != SMP_FATAL_SHUTDOWN_RESPONSE;
     35#else
     36  (void) source;
     37  (void) code;
     38
     39  return true;
     40#endif
     41}
     42#endif
     43
    2244void rtems_test_fatal_extension(
    2345  rtems_fatal_source source,
     
    2648)
    2749{
    28   (void) source;
    2950  (void) is_internal;
    30   (void) code;
    3151
    3252#if defined(RTEMS_PROFILING)
    33   if ( rtems_get_current_processor() == 0 ) {
     53  if ( should_report( source, code ) ) {
    3454    printk(
    3555      "\n*** PROFILING REPORT BEGIN %s ***\n",
Note: See TracChangeset for help on using the changeset viewer.