mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 10:40:15 +02:00 
			
		
		
		
	nds32/ftrace: Add RECORD_MCOUNT support
Recognize NDS32 object files in recordmcount.pl. Signed-off-by: Zong Li <zong@andestech.com> Acked-by: Greentime Hu <greentime@andestech.com> Signed-off-by: Greentime Hu <greentime@andestech.com>
This commit is contained in:
		
							parent
							
								
									1e9b14c0d9
								
							
						
					
					
						commit
						fbf58a52ac
					
				
					 2 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
					@ -42,6 +42,7 @@ config NDS32
 | 
				
			||||||
	select THREAD_INFO_IN_TASK
 | 
						select THREAD_INFO_IN_TASK
 | 
				
			||||||
	select HAVE_FUNCTION_TRACER
 | 
						select HAVE_FUNCTION_TRACER
 | 
				
			||||||
	select HAVE_FUNCTION_GRAPH_TRACER
 | 
						select HAVE_FUNCTION_GRAPH_TRACER
 | 
				
			||||||
 | 
						select HAVE_FTRACE_MCOUNT_RECORD
 | 
				
			||||||
	help
 | 
						help
 | 
				
			||||||
	  Andes(nds32) Linux support.
 | 
						  Andes(nds32) Linux support.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -389,6 +389,9 @@ if ($arch eq "x86_64") {
 | 
				
			||||||
    $mcount_regex = "^\\s*([0-9a-fA-F]+):\\sR_RISCV_CALL\\s_mcount\$";
 | 
					    $mcount_regex = "^\\s*([0-9a-fA-F]+):\\sR_RISCV_CALL\\s_mcount\$";
 | 
				
			||||||
    $type = ".quad";
 | 
					    $type = ".quad";
 | 
				
			||||||
    $alignment = 2;
 | 
					    $alignment = 2;
 | 
				
			||||||
 | 
					} elsif ($arch eq "nds32") {
 | 
				
			||||||
 | 
					    $mcount_regex = "^\\s*([0-9a-fA-F]+):\\s*R_NDS32_HI20_RELA\\s+_mcount\$";
 | 
				
			||||||
 | 
					    $alignment = 2;
 | 
				
			||||||
} else {
 | 
					} else {
 | 
				
			||||||
    die "Arch $arch is not supported with CONFIG_FTRACE_MCOUNT_RECORD";
 | 
					    die "Arch $arch is not supported with CONFIG_FTRACE_MCOUNT_RECORD";
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue