4.115
Last change
on this file since 6e93c836 was
99be750,
checked in by Sebastian Huber <sebastian.huber@…>, on 04/29/14 at 05:48:09
|
sapi: Report profiling only if enabled for tests
|
-
Property mode set to
100644
|
File size:
941 bytes
|
Line | |
---|
1 | /* |
---|
2 | * Copyright (c) 2014 embedded brains GmbH. All rights reserved. |
---|
3 | * |
---|
4 | * embedded brains GmbH |
---|
5 | * Dornierstr. 4 |
---|
6 | * 82178 Puchheim |
---|
7 | * Germany |
---|
8 | * <rtems@embedded-brains.de> |
---|
9 | * |
---|
10 | * The license and distribution terms for this file may be |
---|
11 | * found in the file LICENSE in this distribution or at |
---|
12 | * http://www.rtems.org/license/LICENSE. |
---|
13 | */ |
---|
14 | |
---|
15 | #ifdef HAVE_CONFIG_H |
---|
16 | #include "config.h" |
---|
17 | #endif |
---|
18 | |
---|
19 | #include <rtems/test.h> |
---|
20 | #include <rtems/profiling.h> |
---|
21 | |
---|
22 | void rtems_test_fatal_extension( |
---|
23 | rtems_fatal_source source, |
---|
24 | bool is_internal, |
---|
25 | rtems_fatal_code code |
---|
26 | ) |
---|
27 | { |
---|
28 | (void) source; |
---|
29 | (void) is_internal; |
---|
30 | (void) code; |
---|
31 | |
---|
32 | #if defined(RTEMS_PROFILING) |
---|
33 | if (rtems_get_current_processor() == 0) { |
---|
34 | rtems_profiling_report_xml( |
---|
35 | rtems_test_name, |
---|
36 | printk_plugin, |
---|
37 | NULL, |
---|
38 | 1, |
---|
39 | " " |
---|
40 | ); |
---|
41 | |
---|
42 | /* Add some stuff to help broken debuggers */ |
---|
43 | printk( |
---|
44 | "*** PROFILING DONE %s ***\n", |
---|
45 | rtems_test_name |
---|
46 | ); |
---|
47 | } |
---|
48 | #endif |
---|
49 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.