[PATCH 4.14 133/135] perf/x86/intel: Generalize dynamic constraint creation