[PATCH openEuler-1.0-LTS] ftrace: Avoid potential division by zero in function_stat_show()