Lines Matching refs:check
56 static int reg_event(int fd, int *check, int bit, const char *value) in reg_event() argument
63 reg.enable_addr = (__u64)check; in reg_event()
64 reg.enable_size = sizeof(*check); in reg_event()
72 static int unreg_event(int fd, int *check, int bit) in unreg_event() argument
78 unreg.disable_addr = (__u64)check; in unreg_event()
107 static int parse_abi(int *check, const char *value) in parse_abi() argument
121 ret = reg_event(fd, check, 31, value + 2); in parse_abi()
124 if (unreg_event(fd, check, 31) == -1) in parse_abi()
133 static int parse(int *check, const char *value) in parse() argument
135 int abi_ret = parse_abi(check, value); in parse()
145 static int check_match(int *check, const char *first, const char *second, bool *match) in check_match() argument
153 if (reg_event(fd, check, 31, first) == -1) in check_match()
156 if (reg_event(fd, check, 30, second) == -1) { in check_match()
169 unreg_event(fd, check, 31); in check_match()
170 unreg_event(fd, check, 30); in check_match()
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; in FIXTURE() local