2020-04-02 23:48:27 +02:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
2011-09-02 23:23:41 +02:00
|
|
|
|
|
|
|
#ifndef __TRACE_H
|
|
|
|
#define __TRACE_H
|
|
|
|
|
2019-09-13 09:51:04 +02:00
|
|
|
#if !ENV_ROMSTAGE_OR_BEFORE && CONFIG(TRACE)
|
2011-09-02 23:23:41 +02:00
|
|
|
|
2017-03-07 23:31:19 +01:00
|
|
|
void __cyg_profile_func_enter(void *, void *)
|
2017-07-13 02:20:27 +02:00
|
|
|
__attribute__((no_instrument_function));
|
2011-09-02 23:23:41 +02:00
|
|
|
|
2017-03-07 23:31:19 +01:00
|
|
|
void __cyg_profile_func_exit(void *, void *)
|
2017-07-13 02:20:27 +02:00
|
|
|
__attribute__((no_instrument_function));
|
2011-09-02 23:23:41 +02:00
|
|
|
|
|
|
|
extern volatile int trace_dis;
|
|
|
|
|
|
|
|
#define DISABLE_TRACE do { trace_dis = 1; } while (0);
|
|
|
|
#define ENABLE_TRACE do { trace_dis = 0; } while (0);
|
2017-07-13 02:20:27 +02:00
|
|
|
#define DISABLE_TRACE_ON_FUNCTION __attribute__((no_instrument_function));
|
2011-09-02 23:23:41 +02:00
|
|
|
|
|
|
|
#else /* !CONFIG_TRACE */
|
|
|
|
|
|
|
|
#define DISABLE_TRACE
|
|
|
|
#define ENABLE_TRACE
|
|
|
|
#define DISABLE_TRACE_ON_FUNCTION
|
|
|
|
|
|
|
|
#endif
|
2019-09-13 09:51:04 +02:00
|
|
|
|
2011-09-02 23:23:41 +02:00
|
|
|
#endif
|