linux/arch/microblaze/include/asm/ftrace.h
<<
>>
Prefs
   1/* SPDX-License-Identifier: GPL-2.0 */
   2#ifndef _ASM_MICROBLAZE_FTRACE
   3#define _ASM_MICROBLAZE_FTRACE
   4
   5#ifdef CONFIG_FUNCTION_TRACER
   6
   7#define MCOUNT_ADDR             ((unsigned long)(_mcount))
   8#define MCOUNT_INSN_SIZE        8 /* sizeof mcount call */
   9
  10#ifndef __ASSEMBLY__
  11extern void _mcount(void);
  12extern void ftrace_call_graph(void);
  13#endif
  14
  15#ifdef CONFIG_DYNAMIC_FTRACE
  16/* relocation of mcount call site is the same as the address */
  17static inline unsigned long ftrace_call_adjust(unsigned long addr)
  18{
  19        return addr;
  20}
  21
  22struct dyn_arch_ftrace {
  23};
  24#endif /* CONFIG_DYNAMIC_FTRACE */
  25
  26#endif /* CONFIG_FUNCTION_TRACER */
  27#endif /* _ASM_MICROBLAZE_FTRACE */
  28