[PATCH AUTOSEL 4.14 03/37] perf/core: Restore mmap record type correctly