[PATCH 4.18 01/44] perf/core: Add sanity check to deal with pinned event failure