mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-21 02:49:14 +07:00
366dd4ea9d
Fix the FTRACE function tracer for 32- and 64-bit kernel. The former code was horribly broken. Reimplement most coding in assembly and utilize optimizations, e.g. put mcount() and ftrace_stub() into one L1 cacheline. Signed-off-by: Helge Deller <deller@gmx.de>
16 lines
300 B
C
16 lines
300 B
C
#ifndef _ASM_PARISC_FTRACE_H
|
|
#define _ASM_PARISC_FTRACE_H
|
|
|
|
#ifndef __ASSEMBLY__
|
|
extern void mcount(void);
|
|
|
|
#define MCOUNT_INSN_SIZE 4
|
|
|
|
extern unsigned long return_address(unsigned int);
|
|
|
|
#define ftrace_return_address(n) return_address(n)
|
|
|
|
#endif /* __ASSEMBLY__ */
|
|
|
|
#endif /* _ASM_PARISC_FTRACE_H */
|