1 /*
2  * Copyright (c) 2001-2019, Arm Limited and Contributors. All rights reserved.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 
7 #include <stdio.h>
8 #include <stdlib.h>
9 #include <stdint.h>
10 #include <string.h>
11 
12 #include <limits.h>
13 
14 /************* Include Files ****************/
15 
16 /* local */
17 #include "run_integration_test.h"
18 #include "run_integration_profiler.h"
19 
runIt_perfTypeStr(runItPerfType_t type,char * pStr,uint32_t buffLen)20 char* runIt_perfTypeStr(runItPerfType_t type, char* pStr, uint32_t buffLen)
21 {
22     (void) type;
23     (void) pStr;
24     (void) buffLen;
25     return NULL;
26 }
27 
runIt_perfTypeFromStr(const char * typeStr,const char * paramStr)28 runItPerfType_t runIt_perfTypeFromStr(const char* typeStr, const char* paramStr)
29 {
30     (void) typeStr;
31     (void) paramStr;
32     return PERF_TYPE_TEST_NOT_SET;
33 }
34 /* END - DO NOT CHANGE */
35 
36 /**
37  * @brief   initialise performance test mechanism
38  *
39  * @param[in]
40  * *
41  * @return None
42  */
runIt_perfInit(void)43 void runIt_perfInit(void)
44 {
45 }
46 
47 /**
48  * @brief   terminates resources used for performance tests
49  *
50  * @param[in]
51  * *
52  * @return None
53  */
runIt_perfFin(void)54 void runIt_perfFin(void)
55 {
56     // nothing to be done
57 }
58 
59 /**
60  * register api to DB
61  *
62  * @param func          address of function
63  * @param name          name of function
64  * @param param         param ti distinguish between flows
65  */
runIt_perfEntryInit(const char * name,const char * param,uint8_t isHw)66 void runIt_perfEntryInit(const char* name, const char* param, uint8_t isHw)
67 {
68     (void) name;
69     (void) param;
70     (void) isHw;
71 }
72 
73 /**
74  * @brief   opens new entry in perf buffer to record new entry
75  *
76  * @param[in] entryType -  entry type (defined in cc_pal_perf.h) to be recorded in buffer
77  *
78  * @return Returns a non-zero value in case of failure
79  */
runIt_perfOpenNewEntry(runItPerfType_t entryType)80 runItPerfData_t runIt_perfOpenNewEntry(runItPerfType_t entryType)
81 {
82     (void) entryType;
83 
84     return PERF_TYPE_TEST_NOT_SET;
85 }
86 
87 /**
88  * @brief   closes entry in perf buffer previously opened by runIt_perfOpenNewEntry
89  *
90  * @param[in] idx -  index of the entry to be closed, the return value of runIt_perfOpenNewEntry
91  * @param[in] entryType -  entry type (defined in cc_pal_perf.h) to be recorded in buffer
92  *
93  * @return Returns a non-zero value in case of failure
94  */
runIt_perfCloseEntry(runItPerfData_t idx,runItPerfType_t entryType)95 void runIt_perfCloseEntry(runItPerfData_t idx, runItPerfType_t entryType)
96 {
97     (void) idx;
98     (void) entryType;
99 }
100 
101 /**
102  * @brief   dumps the performance buffer
103  *
104  * @param[in] None
105  *
106  * @return None
107  */
runIt_perfDump(void)108 void runIt_perfDump(void)
109 {
110 }
111 
112