%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
| Server IP : 14.207.165.8 / Your IP : 216.73.216.26 Web Server : Apache/2.4.18 (Ubuntu) System : Linux 246 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 User : root ( 0) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/thread-self/root/lib/modules/4.4.0-112-generic/build/arch/blackfin/include/asm/ |
Upload File : |
/*
* Blackfin ftrace code
*
* Copyright 2009 Analog Devices Inc.
* Licensed under the GPL-2 or later.
*/
#ifndef __ASM_BFIN_FTRACE_H__
#define __ASM_BFIN_FTRACE_H__
#define MCOUNT_INSN_SIZE 6 /* sizeof "[++sp] = rets; call __mcount;" */
#ifndef __ASSEMBLY__
#ifdef CONFIG_DYNAMIC_FTRACE
extern void _mcount(void);
#define MCOUNT_ADDR ((unsigned long)_mcount)
static inline unsigned long ftrace_call_adjust(unsigned long addr)
{
return addr;
}
struct dyn_arch_ftrace {
/* No extra data needed for Blackfin */
};
#endif
#ifdef CONFIG_FRAME_POINTER
#include <linux/mm.h>
extern inline void *return_address(unsigned int level)
{
unsigned long *endstack, *fp, *ret_addr;
unsigned int current_level = 0;
if (level == 0)
return __builtin_return_address(0);
fp = (unsigned long *)__builtin_frame_address(0);
endstack = (unsigned long *)PAGE_ALIGN((unsigned long)&level);
while (((unsigned long)fp & 0x3) == 0 && fp &&
(fp + 1) < endstack && current_level < level) {
fp = (unsigned long *)*fp;
current_level++;
}
if (((unsigned long)fp & 0x3) == 0 && fp &&
(fp + 1) < endstack)
ret_addr = (unsigned long *)*(fp + 1);
else
ret_addr = NULL;
return ret_addr;
}
#else
extern inline void *return_address(unsigned int level)
{
return NULL;
}
#endif /* CONFIG_FRAME_POINTER */
#define ftrace_return_address(n) return_address(n)
#endif /* __ASSEMBLY__ */
#endif