On Mon, 18 Nov 2024 08:37:06 +0100 Tomasz Duszynski <tduszyn...@marvell.com> wrote:
> + > + /* events are matched against occurrences of e=ev1[,ev2,..] pattern */ > + ret = regcomp(®, "e=([_[:alnum:]-],?)+", REG_EXTENDED); > + if (ret) { > + PMU_LOG(ERR, "Failed to compile event matching regexp"); > + return -EINVAL; > + } > + > + for (;;) { > + if (regexec(®, pattern, 1, &rmatch, 0)) > + break; > + As with log parameters. Regex is harder to work with than a glob based syntax.