/lib/ |
D | fault-inject.c | 18 int setup_fault_attr(struct fault_attr *attr, char *str) in setup_fault_attr() argument 33 attr->probability = probability; in setup_fault_attr() 34 attr->interval = interval; in setup_fault_attr() 35 atomic_set(&attr->times, times); in setup_fault_attr() 36 atomic_set(&attr->space, space); in setup_fault_attr() 42 static void fail_dump(struct fault_attr *attr) in fail_dump() argument 44 if (attr->verbose > 0 && __ratelimit(&attr->ratelimit_state)) { in fail_dump() 47 "space %d, times %d\n", attr->dname, in fail_dump() 48 attr->interval, attr->probability, in fail_dump() 49 atomic_read(&attr->space), in fail_dump() [all …]
|
D | fault-inject-usercopy.c | 6 struct fault_attr attr; member 8 .attr = FAULT_ATTR_INITIALIZER, 13 return setup_fault_attr(&fail_usercopy.attr, str); in setup_fail_usercopy() 24 &fail_usercopy.attr); in fail_usercopy_debugfs() 37 return should_fail(&fail_usercopy.attr, 1); in should_fail_usercopy()
|
D | test_firmware.c | 250 struct device_attribute *attr, in reset_store() argument 278 struct device_attribute *attr, in config_show() argument 335 struct device_attribute *attr, in config_name_store() argument 453 struct device_attribute *attr, in config_name_show() argument 461 struct device_attribute *attr, in config_upload_name_store() argument 479 struct device_attribute *attr, in config_upload_name_show() argument 487 struct device_attribute *attr, in config_num_requests_store() argument 509 struct device_attribute *attr, in config_num_requests_show() argument 517 struct device_attribute *attr, in config_into_buf_store() argument 526 struct device_attribute *attr, in config_into_buf_show() argument [all …]
|
D | test_kmod.c | 449 struct device_attribute *attr, in config_show() argument 554 struct device_attribute *attr, in trigger_config_store() argument 642 struct device_attribute *attr, in config_test_driver_store() argument 677 struct device_attribute *attr, in config_test_driver_show() argument 689 struct device_attribute *attr, in config_test_fs_store() argument 708 struct device_attribute *attr, in config_test_fs_show() argument 835 struct device_attribute *attr, in reset_store() argument 966 struct device_attribute *attr, in test_result_store() argument 977 struct device_attribute *attr, in config_num_threads_store() argument 989 struct device_attribute *attr, in config_num_threads_show() argument [all …]
|
D | kobject.c | 820 static ssize_t kobj_attr_show(struct kobject *kobj, struct attribute *attr, in kobj_attr_show() argument 826 kattr = container_of(attr, struct kobj_attribute, attr); in kobj_attr_show() 832 static ssize_t kobj_attr_store(struct kobject *kobj, struct attribute *attr, in kobj_attr_store() argument 838 kattr = container_of(attr, struct kobj_attribute, attr); in kobj_attr_store()
|
/lib/kunit/ |
D | attributes.c | 39 const char *(*to_string)(void *attr, bool *to_free); 40 int (*filter)(void *attr, const char *input, int *err); 51 static const char *attr_enum_to_string(void *attr, const char * const str_list[], bool *to_free) in attr_enum_to_string() argument 53 long val = (long)attr; in attr_enum_to_string() 61 static const char *attr_speed_to_string(void *attr, bool *to_free) in attr_speed_to_string() argument 63 return attr_enum_to_string(attr, speed_str_list, to_free); in attr_speed_to_string() 66 static const char *attr_string_to_string(void *attr, bool *to_free) in attr_string_to_string() argument 69 return (char *) attr; in attr_string_to_string() 104 static int attr_enum_filter(void *attr, const char *input, int *err, in attr_enum_filter() argument 108 long test_val = (long)attr; in attr_enum_filter() [all …]
|
D | executor_test.c | 145 .attr.speed = KUNIT_SPEED_SLOW }, 162 subsuite[1]->attr.speed = KUNIT_SPEED_SLOW; // Set suite attribute in filter_attr_test()
|
D | test.c | 393 enum kunit_speed speed = test_case->attr.speed; in kunit_run_case_check_speed()
|