[PATCH 384/429] riscv: ftrace: correct the condition logic in function graph tracer