mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
trace: Use notrace for short
The attribute syntax is quite verbose. Use the macro provided for this purpose. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
5b958dea5c
commit
33c60a38bb
9 changed files with 22 additions and 25 deletions
|
@ -137,7 +137,7 @@ struct arch_global_data {
|
|||
|
||||
#define DECLARE_GLOBAL_DATA_PTR extern struct global_data *global_data_ptr
|
||||
# else
|
||||
static inline __attribute__((no_instrument_function)) gd_t *get_fs_gd_ptr(void)
|
||||
static inline notrace gd_t *get_fs_gd_ptr(void)
|
||||
{
|
||||
gd_t *gd_ptr;
|
||||
|
||||
|
|
|
@ -71,7 +71,7 @@ static inline unsigned long long native_read_tscp(unsigned int *aux)
|
|||
#define EAX_EDX_RET(val, low, high) "=A" (val)
|
||||
#endif
|
||||
|
||||
static inline __attribute__((no_instrument_function))
|
||||
static inline notrace
|
||||
unsigned long long native_read_msr(unsigned int msr)
|
||||
{
|
||||
DECLARE_ARGS(val, low, high);
|
||||
|
|
|
@ -108,7 +108,7 @@ void board_init_f_r(void) __attribute__ ((noreturn));
|
|||
int arch_misc_init(void);
|
||||
|
||||
/* Read the time stamp counter */
|
||||
static inline __attribute__((no_instrument_function)) uint64_t rdtsc(void)
|
||||
static inline notrace uint64_t rdtsc(void)
|
||||
{
|
||||
uint32_t high, low;
|
||||
__asm__ __volatile__("rdtsc" : "=a" (low), "=d" (high));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue