[PATCH openEuler-1.0-LTS 09/25] ftrace: Optimize the allocation for mcount entries