aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorZong Li <zong@andestech.com>2018-08-15 10:57:16 +0800
committerGreentime Hu <greentime@andestech.com>2018-09-04 14:45:18 +0800
commitfbf58a52ac088669dfa930e557d0303a9fbb7e17 (patch)
tree3e57a47778873666841022dc3b6329a60e8ac327 /scripts
parentnds32/ftrace: Support static function graph tracer (diff)
downloadlinux-dev-fbf58a52ac088669dfa930e557d0303a9fbb7e17.tar.xz
linux-dev-fbf58a52ac088669dfa930e557d0303a9fbb7e17.zip
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>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/recordmcount.pl3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/recordmcount.pl b/scripts/recordmcount.pl
index fe06e77c15eb..f599031260d5 100755
--- a/scripts/recordmcount.pl
+++ b/scripts/recordmcount.pl
@@ -389,6 +389,9 @@ if ($arch eq "x86_64") {
$mcount_regex = "^\\s*([0-9a-fA-F]+):\\sR_RISCV_CALL\\s_mcount\$";
$type = ".quad";
$alignment = 2;
+} elsif ($arch eq "nds32") {
+ $mcount_regex = "^\\s*([0-9a-fA-F]+):\\s*R_NDS32_HI20_RELA\\s+_mcount\$";
+ $alignment = 2;
} else {
die "Arch $arch is not supported with CONFIG_FTRACE_MCOUNT_RECORD";
}