Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\trace_events_filter.c Create Date:2022-07-28 12:24:44
Last Modify:2022-05-22 20:19:57 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:filter_build_regex

Proto:static void filter_build_regex(struct filter_pred *pred)

Type:void

Parameter:

TypeParameterName
struct filter_pred *pred
864  r = regex
866  type = MATCH_FULL
868  If op == OP_GLOB Then
869  type = lter_parse_regex - parse a basic regex*@buff: the raw regex*@len: length of the regex*@search: will point to the beginning of the string to compare*@not: tell whether the match will have to be inverted* This passes in a buffer containing a regex and this
870  len = strlen - Find the length of a string*@s: The string to be sized
871  memmove(pattern, search, len + 1)
876  Case type == MATCH_INDEX
877  Case type == MATCH_FULL
879  Break
880  Case type == MATCH_FRONT_ONLY
882  Break
883  Case type == MATCH_MIDDLE_ONLY
885  Break
886  Case type == MATCH_END_ONLY
888  Break
889  Case type == MATCH_GLOB
891  Break
Caller
NameDescribe
parse_predCalled when a predicate is encountered by predicate_parse()