Lines Matching refs:config
120 struct test_config config; member
171 struct test_config *config = &test_dev->config; in kmod_test_done_check() local
176 if (test_dev->done == config->num_threads) { in kmod_test_done_check()
187 struct test_config *config = &test_dev->config; in test_kmod_put_module() local
192 switch (config->test_case) { in test_kmod_put_module()
210 struct test_config *config = &test_dev->config; in run_request() local
212 switch (config->test_case) { in run_request()
214 info->ret_sync = request_module("%s", config->test_driver); in run_request()
217 info->fs_sync = get_fs_type(config->test_fs); in run_request()
241 struct test_config *config = &test_dev->config; in tally_work_test() local
244 switch (config->test_case) { in tally_work_test()
261 info->thread_idx, info->fs_sync ? config->test_fs : in tally_work_test()
282 struct test_config *config = &test_dev->config; in tally_up_work() local
292 for (idx=0; idx < config->num_threads; idx++) { in tally_up_work()
303 config->test_result = err_ret; in tally_up_work()
341 struct test_config *config = &test_dev->config; in test_dev_kmod_stop_tests() local
349 for (i=0; i < config->num_threads; i++) { in test_dev_kmod_stop_tests()
379 struct test_config *config = &test_dev->config; in try_requests() local
384 for (idx=0; idx < config->num_threads; idx++) { in try_requests()
416 struct test_config *config = &test_dev->config; in run_test_driver() local
419 test_case_str(config->test_case), in run_test_driver()
420 config->test_case); in run_test_driver()
422 config->test_driver); in run_test_driver()
424 config->num_threads); in run_test_driver()
426 config->num_threads - 1); in run_test_driver()
433 struct test_config *config = &test_dev->config; in run_test_fs_type() local
436 test_case_str(config->test_case), in run_test_fs_type()
437 config->test_case); in run_test_fs_type()
439 config->test_fs); in run_test_fs_type()
441 config->num_threads); in run_test_fs_type()
443 config->num_threads - 1); in run_test_fs_type()
453 struct test_config *config = &test_dev->config; in config_show() local
464 config->num_threads); in config_show()
468 test_case_str(config->test_case), in config_show()
469 config->test_case); in config_show()
471 if (config->test_driver) in config_show()
474 config->test_driver); in config_show()
479 if (config->test_fs) in config_show()
482 config->test_fs); in config_show()
491 static DEVICE_ATTR_RO(config);
499 struct test_config *config = &test_dev->config; in __trigger_config_run() local
503 switch (config->test_case) { in __trigger_config_run()
511 config->test_case); in __trigger_config_run()
518 struct test_config *config = &test_dev->config; in trigger_config_run() local
528 config->test_result); in trigger_config_run()
601 static int config_copy_test_driver_name(struct test_config *config, in config_copy_test_driver_name() argument
605 return __kstrncpy(&config->test_driver, name, count, GFP_KERNEL); in config_copy_test_driver_name()
609 static int config_copy_test_fs(struct test_config *config, const char *name, in config_copy_test_fs() argument
612 return __kstrncpy(&config->test_fs, name, count, GFP_KERNEL); in config_copy_test_fs()
615 static void __kmod_config_free(struct test_config *config) in __kmod_config_free() argument
617 if (!config) in __kmod_config_free()
620 kfree_const(config->test_driver); in __kmod_config_free()
621 config->test_driver = NULL; in __kmod_config_free()
623 kfree_const(config->test_fs); in __kmod_config_free()
624 config->test_fs = NULL; in __kmod_config_free()
629 struct test_config *config; in kmod_config_free() local
634 config = &test_dev->config; in kmod_config_free()
637 __kmod_config_free(config); in kmod_config_free()
646 struct test_config *config = &test_dev->config; in config_test_driver_store() local
651 kfree_const(config->test_driver); in config_test_driver_store()
652 config->test_driver = NULL; in config_test_driver_store()
654 copied = config_copy_test_driver_name(config, buf, count); in config_test_driver_store()
681 struct test_config *config = &test_dev->config; in config_test_driver_show() local
684 config->test_driver); in config_test_driver_show()
693 struct test_config *config = &test_dev->config; in config_test_fs_store() local
698 kfree_const(config->test_fs); in config_test_fs_store()
699 config->test_fs = NULL; in config_test_fs_store()
701 copied = config_copy_test_fs(config, buf, count); in config_test_fs_store()
712 struct test_config *config = &test_dev->config; in config_test_fs_show() local
715 config->test_fs); in config_test_fs_show()
724 struct test_config *config = &test_dev->config; in trigger_config_run_type() local
730 kfree_const(config->test_driver); in trigger_config_run_type()
731 config->test_driver = NULL; in trigger_config_run_type()
732 copied = config_copy_test_driver_name(config, test_str, in trigger_config_run_type()
736 kfree_const(config->test_fs); in trigger_config_run_type()
737 config->test_fs = NULL; in trigger_config_run_type()
738 copied = config_copy_test_fs(config, test_str, in trigger_config_run_type()
746 config->test_case = test_case; in trigger_config_run_type()
768 struct test_config *config = &test_dev->config; in kmod_config_sync_info() local
773 config->num_threads)); in kmod_config_sync_info()
798 struct test_config *config = &test_dev->config; in __kmod_config_init() local
801 __kmod_config_free(config); in __kmod_config_init()
803 copied = config_copy_test_driver_name(config, TEST_START_DRIVER, in __kmod_config_init()
808 copied = config_copy_test_fs(config, TEST_START_TEST_FS, in __kmod_config_init()
813 config->num_threads = kmod_init_test_thread_limit(); in __kmod_config_init()
814 config->test_result = 0; in __kmod_config_init()
815 config->test_case = TEST_START_TEST_CASE; in __kmod_config_init()
829 __kmod_config_free(config); in __kmod_config_init()
865 unsigned int *config, in test_dev_config_update_uint_sync() argument
878 old_val = *config; in test_dev_config_update_uint_sync()
879 *(unsigned int *)config = val; in test_dev_config_update_uint_sync()
883 *(unsigned int *)config = old_val; in test_dev_config_update_uint_sync()
899 unsigned int *config, in test_dev_config_update_uint_range() argument
914 *config = val; in test_dev_config_update_uint_range()
923 int *config) in test_dev_config_update_int() argument
933 *config = val; in test_dev_config_update_int()
941 int config) in test_dev_config_show_int() argument
946 val = config; in test_dev_config_show_int()
954 unsigned int config) in test_dev_config_show_uint() argument
959 val = config; in test_dev_config_show_uint()
970 struct test_config *config = &test_dev->config; in test_result_store() local
973 &config->test_result); in test_result_store()
981 struct test_config *config = &test_dev->config; in config_num_threads_store() local
984 &config->num_threads, in config_num_threads_store()
993 struct test_config *config = &test_dev->config; in config_num_threads_show() local
995 return test_dev_config_show_int(test_dev, buf, config->num_threads); in config_num_threads_show()
1004 struct test_config *config = &test_dev->config; in config_test_case_store() local
1007 &config->test_case, in config_test_case_store()
1017 struct test_config *config = &test_dev->config; in config_test_case_show() local
1019 return test_dev_config_show_uint(test_dev, buf, config->test_case); in config_test_case_show()
1028 struct test_config *config = &test_dev->config; in test_result_show() local
1030 return test_dev_config_show_int(test_dev, buf, config->test_result); in test_result_show()
1038 TEST_KMOD_DEV_ATTR(config),