| /linux/tools/testing/selftests/bpf/ |
| H A D | test_progs.c | 72 env.test_state->stdout_saved = stdout; in stdio_hijack_init() 111 stdout = env.test_state->stdout_saved; in stdio_restore_cleanup() 112 stderr = env.test_state->stdout_saved; 114 if (env.test_state->stdout_saved) in stdio_restore() 115 fclose(env.test_state->stdout_saved); in stdio_restore() 116 env.test_state->stdout_saved = NULL; in stdio_restore() 349 static void print_test_result(const struct prog_test_def *test, const struct test_state *test_state) in print_test_result() 351 int skipped_cnt = test_state->skip_cnt; in print_test_result() 352 int subtests_cnt = test_state in print_test_result() 346 print_test_result(const struct prog_test_def * test,const struct test_state * test_state) print_test_result() argument 403 dump_test_log(const struct prog_test_def * test,const struct test_state * test_state,bool skip_ok_subtests,bool par_exec_result,json_writer_t * w) dump_test_log() argument 526 struct test_state *test_state = env.test_state; test__end_subtest() local 1907 struct test_state *test_state = &test_states[i]; free_test_states() local [all...] |
| H A D | test_progs.h | 83 struct test_state { 116 struct test_state *test_state; /* current running test state */ 82 struct test_state { global() struct 90 subtest_statestest_state global() argument 91 subtest_numtest_state global() argument 115 struct test_state *test_state; /* current running test state */ global() member
|
| /linux/tools/testing/selftests/x86/ |
| H A D | nx_stack.c | 97 static volatile int test_state = 0; variable 123 if (test_state == 0) { in sigsegv() 130 test_state = 1; in sigsegv() 131 } else if (test_state == 1) { in sigsegv() 139 test_state = 2; in sigsegv() 140 } else if (test_state == 2) { in sigsegv() 145 test_state = 3; in sigsegv()
|
| /linux/kernel/power/ |
| H A D | suspend_test.c | 186 suspend_state_t test_state; in test_suspend() local 192 for (test_state = PM_SUSPEND_MIN; test_state < PM_SUSPEND_MAX; test_state++) { in test_suspend() 193 const char *state_label = pm_states[test_state]; in test_suspend() 198 if (test_state == PM_SUSPEND_MAX) { in test_suspend() 215 test_wakealarm(rtc, test_state); in test_suspend()
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | prog_tests_framework.c | 6 static void clear_test_state(struct test_state *state) in clear_test_state() 15 struct test_state *state = env.test_state; in test_prog_tests_framework()
|
| /linux/tools/usb/ffs-aio-example/multibuff/host_app/ |
| H A D | test.c | 48 struct test_state { struct 59 int test_init(struct test_state *state) in test_init() argument 145 void test_exit(struct test_state *state) in test_exit() 156 struct test_state state; in main()
|
| /linux/tools/usb/ffs-aio-example/simple/host_app/ |
| H A D | test.c | 48 struct test_state { struct 59 int test_init(struct test_state *state) in test_init() argument 145 void test_exit(struct test_state *state) in test_exit() 156 struct test_state state; in main()
|
| /linux/drivers/hv/ |
| H A D | hv_debugfs.c | 88 struct dentry *test_state; in hv_debug_set_test_state() local 90 test_state = debugfs_create_file(status, 0644, root, in hv_debug_set_test_state() 93 if (IS_ERR(test_state)) { in hv_debug_set_test_state() 95 return PTR_ERR(test_state); in hv_debug_set_test_state()
|
| /linux/lib/kunit/ |
| H A D | kunit-test.c | 810 struct driver_test_state *test_state = kunit_kzalloc(test, sizeof(*test_state), GFP_KERNEL); in kunit_device_driver_test() local 812 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, test_state); in kunit_device_driver_test() 814 test->priv = test_state; in kunit_device_driver_test() 829 KUNIT_ASSERT_TRUE(test, test_state->driver_device_probed); in kunit_device_driver_test() 832 devm_add_action(test_device, test_dev_action, &test_state->action_was_run); in kunit_device_driver_test() 834 KUNIT_EXPECT_EQ(test, test_state->action_was_run, 0); in kunit_device_driver_test() 840 KUNIT_ASSERT_TRUE(test, test_state->driver_device_removed); in kunit_device_driver_test() 843 test_state->driver_device_probed = false; in kunit_device_driver_test() 853 KUNIT_ASSERT_TRUE(test, test_state->driver_device_probed); in kunit_device_driver_test()
|
| /linux/tools/testing/selftests/proc/ |
| H A D | proc-maps-race.c | 56 enum test_state { enum 103 enum test_state curr_state; 171 static void wait_for_state(struct vma_modifier_info *mod_info, enum test_state state) in wait_for_state() 179 static void signal_state(struct vma_modifier_info *mod_info, enum test_state state) in signal_state()
|
| /linux/drivers/platform/mellanox/ |
| H A D | mlxbf-bootctl.c | 261 int test_state; in lifecycle_state_show() local 270 test_state = status_bits & MLXBF_BOOTCTL_SB_TEST_MASK; in lifecycle_state_show() 277 if (test_state) { in lifecycle_state_show()
|
| /linux/drivers/misc/ |
| H A D | kgdbts.c | 171 struct test_state { struct 179 static struct test_state ts; argument
|