|
@@ -376,6 +376,11 @@ if ($arch eq "x86_64") {
|
|
$mcount_regex = "^\\s*([0-9a-fA-F]+):.*\\s__mcount\$";
|
|
$mcount_regex = "^\\s*([0-9a-fA-F]+):.*\\s__mcount\$";
|
|
$type = ".quad";
|
|
$type = ".quad";
|
|
$alignment = 8;
|
|
$alignment = 8;
|
|
|
|
+} elsif ($arch eq "riscv") {
|
|
|
|
+ $function_regex = "^([0-9a-fA-F]+)\\s+<([^.0-9][0-9a-zA-Z_\\.]+)>:";
|
|
|
|
+ $mcount_regex = "^\\s*([0-9a-fA-F]+):\\sR_RISCV_CALL\\s_mcount\$";
|
|
|
|
+ $type = ".quad";
|
|
|
|
+ $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";
|
|
}
|
|
}
|