|
@@ -252,7 +252,18 @@ static int filter_pred_none(struct filter_pred *pred, void *event,
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
-/* Basic regex callbacks */
|
|
|
+/*
|
|
|
+ * regex_match_foo - Basic regex callbacks
|
|
|
+ *
|
|
|
+ * @str: the string to be searched
|
|
|
+ * @r: the regex structure containing the pattern string
|
|
|
+ * @len: the length of the string to be searched (including '\0')
|
|
|
+ *
|
|
|
+ * Note:
|
|
|
+ * - @str might not be NULL-terminated if it's of type DYN_STRING
|
|
|
+ * or STATIC_STRING
|
|
|
+ */
|
|
|
+
|
|
|
static int regex_match_full(char *str, struct regex *r, int len)
|
|
|
{
|
|
|
if (strncmp(str, r->pattern, len) == 0)
|