Add support for star globbing patterns in event names
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 17 Feb 2017 09:26:59 +0000 (04:26 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 10 Mar 2017 16:29:27 +0000 (11:29 -0500)
commit196ec2df2bce805b8c26582f10f2964a8d1da443
treec958082a1f606b7ec3d3ffeb0cbd34405513cb40
parent3151a51df2b93554f3e4559a2e7ec08541e8674d
Add support for star globbing patterns in event names

This patch adds support for full star-only globbing patterns used in
the event names (enabler names).

strutils_star_glob_match() is always used to perform the match when
the enabler is LTTNG_ENABLER_STAR_GLOB. This enabler is set when it is
detected that its name contains at least one non-escaped star with
strutils_is_star_glob_pattern().

While exclusions could be checked before the enabler name match to this
date, they must now be checked after we know there's a match because the
intersection of exclusion names and event event name is not always
checked on the LTTng-tools side (too much complexity for too little
gain).

The match itself is performed by strutils_star_glob_match(), the same
function that the filter interpreter uses.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
include/lttng/ust-events.h
liblttng-ust/lttng-events.c
liblttng-ust/lttng-ust-abi.c
This page took 0.024932 seconds and 4 git commands to generate.