perf tools: Fix handling of wildcards in tracepoint event selectors