testcases
test_fn_t testcases[] = {
for (i = 0; i < ARRAY_SIZE(testcases); i++) {
err = testcases[i](evsel, machine);
test_fn_t testcases[] = {
for (i = 0; i < ARRAY_SIZE(testcases); i++) {
err = testcases[i](evsel, machine);
} testcases[] = {
for (i = 0; i < ARRAY_SIZE(testcases); i++) {
testcases[i].offset, testcases[i].len);
testcases[i].offset, testcases[i].len);
static const struct testcase testcases[] = {
for (i = 0; i < ARRAY_SIZE(testcases); i++)
plan += *testcases[i].nr_sizes;
for (i = 0; i < ARRAY_SIZE(testcases); i++) {
const struct testcase *tc = &testcases[i];
testcases = malloc(sizeof(t));
memcpy(testcases, t, sizeof(t));
ret = run_test(testcases, sz_testcases);
static struct testcase *testcases;
return test_harness(testcases, "memcmp");
static struct testcases mmap_cases[] = {
static struct testcases inheritance_cases[] = {
int handle_pasid(struct testcases *test)
static struct testcases pasid_cases[] = {
int handle_max_bits(struct testcases *test)
static int handle_malloc(struct testcases *test)
static int handle_mmap(struct testcases *test)
static int handle_syscall(struct testcases *test)
static int get_user_syscall(struct testcases *test)
int handle_uring(struct testcases *test)
static int fork_test(struct testcases *test)
static int handle_execve(struct testcases *test)
static int handle_inheritance(struct testcases *test)
struct testcases *test = arg;
static int handle_thread(struct testcases *test)
int (*test_func)(struct testcases *test);
static int handle_thread_enable(struct testcases *test)
static void run_test(struct testcases *test, int count)
struct testcases *t = test + i;
static struct testcases uring_cases[] = {
static struct testcases malloc_cases[] = {
static struct testcases bits_cases[] = {
static struct testcases syscall_cases[] = {