[PATCH openEuler-1.0-LTS v4 048/292] Intel: perf/x86/intel: Extract memory code PEBS parser for reuse