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()
135 static int parse(int *check, const char *value) in parse() argument
137 int abi_ret = parse_abi(check, value); in parse()
147 static int check_match(int *check, const char *first, const char *second, bool *match) in check_match() argument
155 if (reg_event(fd, check, 31, first) == -1) in check_match()
158 if (reg_event(fd, check, 30, second) == -1) { in check_match()
171 unreg_event(fd, check, 31); in check_match()
172 unreg_event(fd, check, 30); in check_match()
184 ASSERT_NE(-1, check_match(&self->check, x, y, &match)); \
191 ASSERT_NE(-1, check_match(&self->check, x, y, &match)); \
195 #define TEST_PARSE(x) ASSERT_NE(-1, parse(&self->check, x))
197 #define TEST_NPARSE(x) ASSERT_EQ(-1, parse(&self->check, x))
200 int check; in FIXTURE() local