| 
									
										
										
										
											2008-05-22 14:31:07 -04:00
										 |  |  | #ifndef _ASM_POWERPC_FTRACE
 | 
					
						
							|  |  |  | #define _ASM_POWERPC_FTRACE
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-10-06 19:06:12 -04:00
										 |  |  | #ifdef CONFIG_FUNCTION_TRACER
 | 
					
						
							| 
									
										
										
										
											2008-06-21 23:47:27 +05:30
										 |  |  | #define MCOUNT_ADDR		((long)(_mcount))
 | 
					
						
							|  |  |  | #define MCOUNT_INSN_SIZE	4 /* sizeof mcount call */
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #ifndef __ASSEMBLY__
 | 
					
						
							| 
									
										
										
										
											2008-05-22 14:31:07 -04:00
										 |  |  | extern void _mcount(void); | 
					
						
							| 
									
										
										
										
											2008-11-14 16:21:19 -08:00
										 |  |  | 
 | 
					
						
							|  |  |  | #ifdef CONFIG_DYNAMIC_FTRACE
 | 
					
						
							|  |  |  | static inline unsigned long ftrace_call_adjust(unsigned long addr) | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |        /* reloction of mcount call site is the same as the address */ | 
					
						
							|  |  |  |        return addr; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | struct dyn_arch_ftrace { | 
					
						
							| 
									
										
										
										
											2008-11-14 20:47:03 -08:00
										 |  |  | 	struct module *mod; | 
					
						
							| 
									
										
										
										
											2008-11-14 16:21:19 -08:00
										 |  |  | }; | 
					
						
							|  |  |  | #endif /*  CONFIG_DYNAMIC_FTRACE */
 | 
					
						
							|  |  |  | #endif /* __ASSEMBLY__ */
 | 
					
						
							| 
									
										
										
										
											2008-05-22 14:31:07 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											2008-06-21 23:47:27 +05:30
										 |  |  | 
 | 
					
						
							|  |  |  | #endif /* _ASM_POWERPC_FTRACE */
 |