riscv/ftrace: Add DYNAMIC_FTRACE_WITH_REGS support