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