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)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Sat, 18 Feb 2017 22:48:10 +0000 (17:48 -0500)
commit81dd2394d98599f006e02808547e80233e3b3ce9
tree74312697a7bf849d2194dbb0ea65f0ab23812ba9
parent92f15087ccaa7c7db37902a57363d9f3e0e0ba5b
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>
include/lttng/ust-events.h
liblttng-ust/lttng-events.c
liblttng-ust/lttng-ust-abi.c
This page took 0.026249 seconds and 5 git commands to generate.