#include <linux/module.h>
#include <linux/ctype.h>
#include <linux/mutex.h>
#include <linux/perf_event.h>
#include <linux/slab.h>
#include "trace.h"
#include "trace_output.h"
Go to the source code of this file.
|
enum | filter_op_ids {
OP_OR,
OP_AND,
OP_GLOB,
OP_NE,
OP_EQ,
OP_LT,
OP_LE,
OP_GT,
OP_GE,
OP_NONE,
OP_OPEN_PAREN
} |
|
enum | {
FILT_ERR_NONE,
FILT_ERR_INVALID_OP,
FILT_ERR_UNBALANCED_PAREN,
FILT_ERR_TOO_MANY_OPERANDS,
FILT_ERR_OPERAND_TOO_LONG,
FILT_ERR_FIELD_NOT_FOUND,
FILT_ERR_ILLEGAL_FIELD_OP,
FILT_ERR_ILLEGAL_INTVAL,
FILT_ERR_BAD_SUBSYS_FILTER,
FILT_ERR_TOO_MANY_PREDS,
FILT_ERR_MISSING_FIELD,
FILT_ERR_INVALID_FILTER,
FILT_ERR_IP_FIELD_ONLY
} |
|
enum | move_type {
MOVE_DOWN,
MOVE_UP_FROM_LEFT,
MOVE_UP_FROM_RIGHT,
MOVE_CHARGE_TYPE_ANON,
MOVE_CHARGE_TYPE_FILE,
NR_MOVE_TYPE
} |
|
enum | walk_return { WALK_PRED_ABORT,
WALK_PRED_PARENT,
WALK_PRED_DEFAULT
} |
|
#define DEFAULT_SYS_FILTER_MESSAGE |
Value:"### global filter ###\n" \
"# Use this to set filters for multiple events.\n" \
"# Only events with the given fields will be affected.\n" \
"# If no events are modified, an error message will be displayed here"
Definition at line 30 of file trace_events_filter.c.
#define DEFINE_COMPARISON_PRED |
( |
|
type | ) |
|
Value:
\
break; \
match = (*addr <=
val); \
break; \
break; \
match = (*addr >=
val); \
break; \
default: \
break; \
} \
\
}
Definition at line 139 of file trace_events_filter.c.
#define DEFINE_EQUALITY_PRED |
( |
|
size | ) |
|
- Enumerator:
FILT_ERR_NONE |
|
FILT_ERR_INVALID_OP |
|
FILT_ERR_UNBALANCED_PAREN |
|
FILT_ERR_TOO_MANY_OPERANDS |
|
FILT_ERR_OPERAND_TOO_LONG |
|
FILT_ERR_FIELD_NOT_FOUND |
|
FILT_ERR_ILLEGAL_FIELD_OP |
|
FILT_ERR_ILLEGAL_INTVAL |
|
FILT_ERR_BAD_SUBSYS_FILTER |
|
FILT_ERR_TOO_MANY_PREDS |
|
FILT_ERR_MISSING_FIELD |
|
FILT_ERR_INVALID_FILTER |
|
FILT_ERR_IP_FIELD_ONLY |
|
Definition at line 71 of file trace_events_filter.c.
- Enumerator:
OP_OR |
|
OP_AND |
|
OP_GLOB |
|
OP_NE |
|
OP_EQ |
|
OP_LT |
|
OP_LE |
|
OP_GT |
|
OP_GE |
|
OP_NONE |
|
OP_OPEN_PAREN |
|
Definition at line 36 of file trace_events_filter.c.
- Enumerator:
MOVE_DOWN |
|
MOVE_UP_FROM_LEFT |
|
MOVE_UP_FROM_RIGHT |
|
MOVE_CHARGE_TYPE_ANON |
|
MOVE_CHARGE_TYPE_FILE |
|
NR_MOVE_TYPE |
|
Definition at line 373 of file trace_events_filter.c.
DEFINE_COMPARISON_PRED |
( |
s64 |
| ) |
|
DEFINE_COMPARISON_PRED |
( |
u64 |
| ) |
|
DEFINE_COMPARISON_PRED |
( |
s32 |
| ) |
|
DEFINE_COMPARISON_PRED |
( |
u32 |
| ) |
|
DEFINE_COMPARISON_PRED |
( |
s16 |
| ) |
|
DEFINE_COMPARISON_PRED |
( |
u16 |
| ) |
|
DEFINE_COMPARISON_PRED |
( |
s8 |
| ) |
|
DEFINE_COMPARISON_PRED |
( |
u8 |
| ) |
|
DEFINE_EQUALITY_PRED |
( |
64 |
| ) |
|
DEFINE_EQUALITY_PRED |
( |
32 |
| ) |
|
DEFINE_EQUALITY_PRED |
( |
16 |
| ) |
|
DEFINE_EQUALITY_PRED |
( |
8 |
| ) |
|
filter_parse_regex - parse a basic regex : the raw regex : length of the regex : will point to the beginning of the string to compare : tell whether the match will have to be inverted
This passes in a buffer containing a regex and this function will set search to point to the search part of the buffer and return the type of search it is (see enum above). This does modify buff.
Returns enum type. search returns the pointer to use for comparison. not returns 1 if buff started with a '!' 0 otherwise.
Definition at line 309 of file trace_events_filter.c.