History

nds32/ftrace: Add RECORD_MCOUNT support

Recognize NDS32 object files in recordmcount.pl.

Zong Li committed 8 years ago

Commit fbf58a51 parent 1e9b14c2 files · +4 −0Browse files

Unified · Split

2 files
  1. arch/nds32/Kconfig +1 −0
  2. scripts/recordmcount.pl +3 −0
arch/nds32/Kconfig+1−0
@@ -42,6 +42,7 @@ config NDS32 · 41 unmodified lines
42 select THREAD_INFO_IN_TASK42 select THREAD_INFO_IN_TASK
43 select HAVE_FUNCTION_TRACER43 select HAVE_FUNCTION_TRACER
44 select HAVE_FUNCTION_GRAPH_TRACER44 select HAVE_FUNCTION_GRAPH_TRACER
45 select HAVE_FTRACE_MCOUNT_RECORD
45 help46 help
46 Andes(nds32) Linux support.47 Andes(nds32) Linux support.
47 48
scripts/recordmcount.pl+3−0
@@ -389,6 +389,9 @@ if ($arch eq "x86_64") { · 388 unmodified lines
389 $mcount_regex = "^\\s*([0-9a-fA-F]+):\\sR_RISCV_CALL\\s_mcount\$";389 $mcount_regex = "^\\s*([0-9a-fA-F]+):\\sR_RISCV_CALL\\s_mcount\$";
390 $type = ".quad";390 $type = ".quad";
391 $alignment = 2;391 $alignment = 2;
392} elsif ($arch eq "nds32") {
393 $mcount_regex = "^\\s*([0-9a-fA-F]+):\\s*R_NDS32_HI20_RELA\\s+_mcount\$";
394 $alignment = 2;
392} else {395} else {
393 die "Arch $arch is not supported with CONFIG_FTRACE_MCOUNT_RECORD";396 die "Arch $arch is not supported with CONFIG_FTRACE_MCOUNT_RECORD";
394}397}