Lines Matching defs:check
56 static int reg_event(int fd, int *check, int bit, const char *value)
63 reg.enable_addr = (__u64)check;
64 reg.enable_size = sizeof(*check);
72 static int unreg_event(int fd, int *check, int bit)
78 unreg.disable_addr = (__u64)check;
107 static int parse_abi(int *check, const char *value)
121 ret = reg_event(fd, check, 31, value + 2);
124 if (unreg_event(fd, check, 31) == -1)
133 static int parse(int *check, const char *value)
135 int abi_ret = parse_abi(check, value);
145 static int check_match(int *check, const char *first, const char *second, bool *match)
153 if (reg_event(fd, check, 31, first) == -1)
156 if (reg_event(fd, check, 30, second) == -1) {
169 unreg_event(fd, check, 31);
170 unreg_event(fd, check, 30);
182 ASSERT_NE(-1, check_match(&self->check, x, y, &match)); \
189 ASSERT_NE(-1, check_match(&self->check, x, y, &match)); \
193 #define TEST_PARSE(x) ASSERT_NE(-1, parse(&self->check, x))
195 #define TEST_NPARSE(x) ASSERT_EQ(-1, parse(&self->check, x))
198 int check;