Messages in this thread | | | Date | Fri, 15 Nov 2013 12:01:02 +0800 | Subject | Re: [PATCH v2] dynamic_debug: add wildcard support to filter files/functions/modules | From | Changbin Du <> |
| |
2013/11/7 Joe Perches <joe@perches.com>: > On Thu, 2013-11-07 at 11:11 +0800, Changbin Du wrote: >> 2013/11/1 Joe Perches <joe@perches.com>: >> match_<foo> functions in lib/parser.c just do simple match, they >> doesn't support wildcards. >> So it's not useful for us. > > It's not meant to be useful so much as be a possible > generic location for your match_regex function. > I misunderstood you. This is a appropriate file to place the matching function. I have moved it to this file.
I checked the regex_match_foo functions in trace_events_filter.c. Per my reading, I think it's a little tedious, and only support '*' character. They are glued with tracing framework. So i gave up to re-used them.
I will send new version patch set to you later.
Thanks! Du, Changbin
| |