[PATCH 5.0 23/25] perf/x86/intel: Generalize dynamic constraint creation