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
4242 select THREAD_INFO_IN_TASK
4343 select HAVE_FUNCTION_TRACER
4444 select HAVE_FUNCTION_GRAPH_TRACER
45+ select HAVE_FTRACE_MCOUNT_RECORD
4546 help
4647 Andes(nds32) Linux support.
4748
scripts/recordmcount.pl+3−0
@@ -389,6 +389,9 @@ if ($arch eq "x86_64") { · 388 unmodified lines
389389 $mcount_regex = "^\\s*([0-9a-fA-F]+):\\sR_RISCV_CALL\\s_mcount\$";
390390 $type = ".quad";
391391 $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;
392395 } else {
393396 die "Arch $arch is not supported with CONFIG_FTRACE_MCOUNT_RECORD";
394397 }