Linux Perf
|
#include <linux/list.h>
#include <stdbool.h>
Go to the source code of this file.
Classes | |
struct | strfilter_node |
struct | strfilter |
Functions | |
struct strfilter * | strfilter__new (const char *rules, const char **err) |
int | strfilter__or (struct strfilter *filter, const char *rules, const char **err) |
int | strfilter__and (struct strfilter *filter, const char *rules, const char **err) |
bool | strfilter__compare (struct strfilter *filter, const char *str) |
void | strfilter__delete (struct strfilter *filter) |
char * | strfilter__string (struct strfilter *filter) |
int strfilter__and | ( | struct strfilter * | filter, |
const char * | rules, | ||
const char ** | err | ||
) |
strfilter__add - Append an additional rule by logical-and : Original string filter : Filter rule to be appended at left of the root of by using logical-and. : Pointer which points an error detected on
Parse and join it to the by using logical-and. Return 0 if success, or return the error code.
Definition at line 211 of file strfilter.c.
bool strfilter__compare | ( | struct strfilter * | filter, |
const char * | str | ||
) |
strfilter__compare - compare given string and a string filter : String filter : target string
Compare and . Return true if the str match the rule
Definition at line 238 of file strfilter.c.
void strfilter__delete | ( | struct strfilter * | filter | ) |
strfilter__delete - delete a string filter : String filter to delete
Delete .
Definition at line 28 of file strfilter.c.
struct strfilter* strfilter__new | ( | const char * | rules, |
const char ** | err | ||
) |
strfilter__new - Create a new string filter : Filter rule, which is a combination of glob expressions. : Pointer which points an error detected on
Parse and return new strfilter. Return NULL if an error detected. In that case, * will indicate where it is detected, and * is NULL if a memory allocation is failed.
Definition at line 159 of file strfilter.c.
int strfilter__or | ( | struct strfilter * | filter, |
const char * | rules, | ||
const char ** | err | ||
) |
strfilter__or - Append an additional rule by logical-or : Original string filter : Filter rule to be appended at left of the root of by using logical-or. : Pointer which points an error detected on
Parse and join it to the by using logical-or. Return 0 if success, or return the error code.
Definition at line 206 of file strfilter.c.
char* strfilter__string | ( | struct strfilter * | filter | ) |
strfilter__string - Reconstruct a rule string from filter : String filter to reconstruct
Reconstruct a rule string from . This will be good for debug messages. Note that returning string must be freed afterward.
Definition at line 297 of file strfilter.c.