Lines Matching refs:check
40 static int reg_event(int fd, int *check, int bit, const char *value) in reg_event() argument
47 reg.enable_addr = (__u64)check; in reg_event()
48 reg.enable_size = sizeof(*check); in reg_event()
56 static int unreg_event(int fd, int *check, int bit) in unreg_event() argument
62 unreg.disable_addr = (__u64)check; in unreg_event()
67 static int parse(int *check, const char *value) in parse() argument
81 ret = reg_event(fd, check, 31, value + 2); in parse()
84 if (unreg_event(fd, check, 31) == -1) in parse()
93 static int check_match(int *check, const char *first, const char *second, bool *match) in check_match() argument
101 if (reg_event(fd, check, 31, first) == -1) in check_match()
104 if (reg_event(fd, check, 30, second) == -1) { in check_match()
117 unreg_event(fd, check, 31); in check_match()
118 unreg_event(fd, check, 30); in check_match()
130 ASSERT_NE(-1, check_match(&self->check, x, y, &match)); \
137 ASSERT_NE(-1, check_match(&self->check, x, y, &match)); \
141 #define TEST_PARSE(x) ASSERT_NE(-1, parse(&self->check, x))
143 #define TEST_NPARSE(x) ASSERT_EQ(-1, parse(&self->check, x))
146 int check; in FIXTURE() local