[PATCH openEuler-5.10 17/56] profiling: fix shift-out-of-bounds bugs