X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=lttng-abi.c;h=f2b207cbac95aa9ced52b603242784ca90caaaf3;hb=4993071a89f88f92444cf62abdc0935efbc6c460;hp=40f96eb5d76dc6992dd6e6a311742593ed3b87c1;hpb=2470a237d7eda2c66432572cf534ac955b9e2957;p=lttng-modules.git diff --git a/lttng-abi.c b/lttng-abi.c index 40f96eb5..f2b207cb 100644 --- a/lttng-abi.c +++ b/lttng-abi.c @@ -51,6 +51,7 @@ #include #include #include +#include #include #include #include @@ -1068,8 +1069,12 @@ int lttng_abi_create_event(struct file *channel_file, || event_param->instrumentation == LTTNG_KERNEL_SYSCALL) { struct lttng_enabler *enabler; - if (event_param->name[strlen(event_param->name) - 1] == '*') { - enabler = lttng_enabler_create(LTTNG_ENABLER_WILDCARD, + if (strutils_is_star_glob_pattern(event_param->name)) { + /* + * If the event name is a star globbing pattern, + * we create the special star globbing enabler. + */ + enabler = lttng_enabler_create(LTTNG_ENABLER_STAR_GLOB, event_param, channel); } else { enabler = lttng_enabler_create(LTTNG_ENABLER_NAME,