Re: [RFC V2 1/3] perf, tools: Support wildcards on pmu name in dynamic pmu events
From: Andi Kleen
Date: Mon Mar 05 2018 - 12:55:40 EST
Agustin Vega-Frias <agustinv@xxxxxxxxxxxxxx> writes:
>
> An option to keep backward compatibility and consistency would be
> to wrap the pattern/string passed in *'s, that way we can just use
> fnmatch and have all the examples Jiri brought up work the same.
> With that in place we can actually also drop the explicit ignoring
> of the uncore_ prefix since the globbing would take care of that.
Prepending with * would seem dangerous, could result in false
matches. But adding it at the end should be ok.
-Andi