[PATCH openEuler-5.10 02/71] perf mem: Introduce weak function perf_mem_events__ptr()