Fixes: c47a5599eda3 ("perf tools: Fix pattern matching for same substring in different PMU type")
Signed-off-by: John Garry <john.garry@xxxxxxxxxx>
---
@Jin Yao, please test for your scenarios
For x86, the form uncore_pmu_{digits} or the uncore_pmu itself are supported. We don't have more complex case such as the name in the form aaa_bbbX_cccY. So my test didn't cover that complex form.
For my test, your patch works, thanks! :)