Replace __attribute__((no_instrument_function)) with noinstrument_function;

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2021-07-27 20:32:59 +08:00 committed by Gustavo Henrique Nihei
parent 7bcd29dae0
commit 69df58c2e8
17 changed files with 26 additions and 18 deletions

View file

@ -98,7 +98,7 @@ static inline void eoss3_fpuconfig(void);
#ifdef CONFIG_ARMV7M_STACKCHECK
/* we need to get r10 set before we can allow instrumentation calls */
void __start(void) __attribute__ ((no_instrument_function));
void __start(void) noinstrument_function;
#endif
/****************************************************************************

View file

@ -81,7 +81,7 @@ static inline void imxrt_fpuconfig(void);
#ifdef CONFIG_ARMV7M_STACKCHECK
/* we need to get r10 set before we can allow instrumentation calls */
void __start(void) __attribute__ ((no_instrument_function));
void __start(void) noinstrument_function;
#endif
/****************************************************************************

View file

@ -95,7 +95,7 @@ const uintptr_t g_idle_topstack = HEAP_BASE;
#ifdef CONFIG_ARMV7M_STACKCHECK
/* we need to get r10 set before we can allow instrumentation calls */
void __start(void) __attribute__ ((no_instrument_function));
void __start(void) noinstrument_function;
#endif
/****************************************************************************

View file

@ -184,7 +184,7 @@ static inline void lpc17_40_fpuconfig(void)
#ifdef CONFIG_ARMV7M_STACKCHECK
/* we need to get r10 set before we can allow instrumentation calls */
void __start(void) __attribute__ ((no_instrument_function));
void __start(void) noinstrument_function;
#endif
/****************************************************************************

View file

@ -69,7 +69,7 @@
#ifdef CONFIG_ARMV7M_STACKCHECK
/* we need to get r10 set before we can allow instrumentation calls */
void __start(void) __attribute__ ((no_instrument_function));
void __start(void) noinstrument_function;
#endif
/****************************************************************************

View file

@ -42,7 +42,7 @@ const hal_irq_api_t sys_irq_api =
/* We need to get r10 set before we can allow instrumentation calls */
void __start(void) __attribute__((no_instrument_function));
void __start(void) noinstrument_function;
#endif
void __start(void)
{

View file

@ -79,7 +79,7 @@ static inline void sam_fpuconfig(void);
#ifdef CONFIG_ARMV7M_STACKCHECK
/* We need to get r10 set before we can allow instrumentation calls */
void __start(void) __attribute__ ((no_instrument_function));
void __start(void) noinstrument_function;
#endif
/****************************************************************************

View file

@ -81,7 +81,7 @@ static inline void sam_fpu_configure(void);
#ifdef CONFIG_ARMV7M_STACKCHECK
/* We need to get r10 set before we can allow instrumentation calls */
void __start(void) __attribute__ ((no_instrument_function));
void __start(void) noinstrument_function;
#endif
/****************************************************************************

View file

@ -94,7 +94,7 @@ static inline void sam_fpuconfig(void);
#ifdef CONFIG_ARMV7M_STACKCHECK
/* we need to get r10 set before we can allow instrumentation calls */
void __start(void) __attribute__ ((no_instrument_function));
void __start(void) noinstrument_function;
#endif
/****************************************************************************

View file

@ -100,7 +100,7 @@ static inline void stm32_fpuconfig(void);
#ifdef CONFIG_ARMV7M_STACKCHECK
/* we need to get r10 set before we can allow instrumentation calls */
void __start(void) __attribute__ ((no_instrument_function));
void __start(void) noinstrument_function;
#endif
/****************************************************************************

View file

@ -94,7 +94,7 @@ static inline void stm32_fpuconfig(void);
#ifdef CONFIG_ARMV7M_STACKCHECK
/* we need to get r10 set before we can allow instrumentation calls */
void __start(void) __attribute__ ((no_instrument_function));
void __start(void) noinstrument_function;
#endif
/****************************************************************************

View file

@ -109,7 +109,7 @@ static inline void stm32_fpuconfig(void);
#ifdef CONFIG_ARMV7M_STACKCHECK
/* we need to get r10 set before we can allow instrumentation calls */
void __start(void) __attribute__ ((no_instrument_function));
void __start(void) noinstrument_function;
#endif
/****************************************************************************

View file

@ -109,7 +109,7 @@ static inline void stm32l4_fpuconfig(void);
#ifdef CONFIG_ARMV7M_STACKCHECK
/* we need to get r10 set before we can allow instrumentation calls */
void __start(void) __attribute__ ((no_instrument_function));
void __start(void) noinstrument_function;
#endif
/****************************************************************************

View file

@ -111,7 +111,7 @@ static inline void stm32l5_fpuconfig(void);
#ifdef CONFIG_ARMV8M_STACKCHECK
/* we need to get r10 set before we can allow instrumentation calls */
void __start(void) __attribute__ ((no_instrument_function));
void __start(void) noinstrument_function;
#endif
/****************************************************************************

View file

@ -117,7 +117,7 @@ const uintptr_t g_idle_topstack = HEAP_BASE;
#ifdef CONFIG_ARMV7M_STACKCHECK
/* we need to get r10 set before we can allow instrumentation calls */
void __start(void) __attribute__ ((no_instrument_function));
void __start(void) noinstrument_function;
#endif
/****************************************************************************

View file

@ -97,7 +97,7 @@ extern void bl602_boardinitialize(void);
* Name: boot2_get_flash_addr
****************************************************************************/
uint32_t __attribute__((no_instrument_function)) boot2_get_flash_addr(void)
uint32_t noinstrument_function boot2_get_flash_addr(void)
{
extern uint8_t __boot2_flash_cfg_src;
@ -107,7 +107,7 @@ uint32_t __attribute__((no_instrument_function)) boot2_get_flash_addr(void)
}
#ifdef CONFIG_STACK_OVERFLOW_CHECK
void __attribute__(((no_instrument_function))) locate_code(".tcm_code")
void noinstrument_function locate_code(".tcm_code")
__cyg_profile_func_enter(void *this_fn, void *call_site)
{
register uintptr_t *sp;
@ -149,7 +149,7 @@ __cyg_profile_func_enter(void *this_fn, void *call_site)
return;
}
void __attribute__((no_instrument_function)) locate_code(".tcm_code")
void noinstrument_function locate_code(".tcm_code")
__cyg_profile_func_exit(void *this_fn, void *call_site)
{
return;

View file

@ -143,6 +143,10 @@
# define inline_function __attribute__ ((always_inline,no_instrument_function))
# define noinline_function __attribute__ ((noinline))
/* The noinstrument_function attribute informs GCC don't instrument it */
# define noinstrument_function __attribute__ ((no_instrument_function))
/* Some versions of GCC have a separate __syslog__ format.
* http://mail-index.netbsd.org/source-changes/2015/10/14/msg069435.html
* Use it if available. Otherwise, assume __printf__ accepts %m.
@ -398,6 +402,7 @@
# define inline_function
# define noinline_function
# define noinstrument_function
# define printflike(a, b)
# define sysloglike(a, b)
@ -530,6 +535,7 @@
# define naked_function
# define inline_function
# define noinline_function
# define noinstrument_function
# define printflike(a, b)
# define sysloglike(a, b)
# define scanflike(a, b)
@ -634,6 +640,7 @@
# define naked_function
# define inline_function
# define noinline_function
# define noinstrument_function
# define printflike(a, b)
# define sysloglike(a, b)
# define scanflike(a, b)
@ -693,6 +700,7 @@
# define naked_function
# define inline_function
# define noinline_function
# define noinstrument_function
# define printflike(a, b)
# define sysloglike(a, b)
# define scanflike(a, b)