perf/x86: Fix filter_events() bug with event mappings