void stress_set_shm_sysv_bytes(const char *optarg) { set_shm_sysv_bytes = true; opt_shm_sysv_bytes = (size_t)get_uint64_byte(optarg); check_range("shm-sysv-bytes", opt_shm_sysv_bytes, MIN_SHM_SYSV_BYTES, MAX_SHM_SYSV_BYTES); }
void stress_set_shm_sysv_segments(const char *optarg) { opt_shm_sysv_segments = true; opt_shm_sysv_segments = (size_t)get_uint64_byte(optarg); check_range("shm-sysv-segments", opt_shm_sysv_segments, MIN_SHM_SYSV_SEGMENTS, MAX_SHM_SYSV_SEGMENTS); }
void stress_set_shm_posix_bytes(const char *optarg) { set_shm_posix_bytes = true; opt_shm_posix_bytes = (size_t)get_uint64_byte(optarg); check_range("shm-bytes", opt_shm_posix_bytes, MIN_SHM_POSIX_BYTES, MAX_SHM_POSIX_BYTES); }
void stress_set_shm_posix_objects(const char *optarg) { opt_shm_posix_objects = true; opt_shm_posix_objects = (size_t)get_uint64_byte(optarg); check_range("shm-segments", opt_shm_posix_objects, MIN_SHM_POSIX_OBJECTS, MAX_SHM_POSIX_OBJECTS); }
void stress_set_hdd_write_size(const char *optarg) { set_hdd_write_size = true; opt_hdd_write_size = get_uint64_byte(optarg); check_range("hdd-write-size", opt_hdd_write_size, MIN_HDD_WRITE_SIZE, MAX_HDD_WRITE_SIZE); }
void stress_set_hdd_bytes(const char *optarg) { set_hdd_bytes = true; opt_hdd_bytes = get_uint64_byte(optarg); check_range("hdd-bytes", opt_hdd_bytes, MIN_HDD_BYTES, MAX_HDD_BYTES); }
/* * stress_set_mergesort_size() * set mergesort size */ void stress_set_mergesort_size(const void *optarg) { set_mergesort_size = true; opt_mergesort_size = get_uint64_byte(optarg); check_range("mergesort-size", opt_mergesort_size, MIN_MERGESORT_SIZE, MAX_MERGESORT_SIZE); }
void stress_set_pthread_max(const char *optarg) { set_pthread_max = true; opt_pthread_max = get_uint64_byte(optarg); check_range("pthread-max", opt_pthread_max, MIN_PTHREAD, MAX_PTHREAD); }
void stress_set_sendfile_size(const char *optarg) { set_sendfile_size = true; opt_sendfile_size = get_uint64_byte(optarg); check_range("sendfile-size", opt_sendfile_size, MIN_SENDFILE_SIZE, MAX_SENDFILE_SIZE); }
void stress_set_msync_bytes(const char *optarg) { set_msync_bytes = true; opt_msync_bytes = (size_t)get_uint64_byte(optarg); check_range("mmap-bytes", opt_msync_bytes, MIN_MSYNC_BYTES, MAX_MSYNC_BYTES); }
void stress_set_semaphore_posix_procs(const char *optarg) { set_semaphore_posix_procs = true; opt_semaphore_posix_procs = get_uint64_byte(optarg); check_range("sem-procs", opt_semaphore_posix_procs, MIN_SEMAPHORE_PROCS, MAX_SEMAPHORE_PROCS); }
void stress_set_fiemap_size(const char *optarg) { set_fiemap_size = true; opt_fiemap_size = get_uint64_byte(optarg); check_range("fiemap-size", opt_fiemap_size, MIN_FIEMAP_SIZE, MAX_FIEMAP_SIZE); }
/* * stress_set_vfork_max() * set maximum number of vforks allowed */ void stress_set_vfork_max(const char *optarg) { set_vfork_max = true; opt_vfork_max = get_uint64_byte(optarg); check_range("vfork-max", opt_vfork_max, MIN_VFORKS, MAX_VFORKS); }
/* * stress_set_bsearch_size() * set bsearch size from given option string */ void stress_set_bsearch_size(const char *optarg) { set_bsearch_size = true; opt_bsearch_size = get_uint64_byte(optarg); check_range("bsearch-size", opt_bsearch_size, MIN_BSEARCH_SIZE, MAX_BSEARCH_SIZE); }
void stress_set_vm_rw_bytes(const char *optarg) { set_vm_rw_bytes = true; opt_vm_rw_bytes = (size_t)get_uint64_byte(optarg); check_range("vm-rw-bytes", opt_vm_rw_bytes, MIN_VM_RW_BYTES, MAX_VM_RW_BYTES); }
void stress_set_copy_file_bytes(const char *optarg) { set_copy_file_bytes = true; opt_copy_file_bytes = get_uint64_byte(optarg); check_range("copy-file-bytes", opt_copy_file_bytes, MIN_COPY_FILE_BYTES, MAX_COPY_FILE_BYTES); }
void stress_set_vm_splice_bytes(const char *optarg) { set_vm_splice_bytes = true; opt_vm_splice_bytes = (size_t)get_uint64_byte(optarg); check_range("vm-splice-bytes", opt_vm_splice_bytes, MIN_VM_SPLICE_BYTES, MAX_VM_SPLICE_BYTES); }
/* * stress_set_bigheap_growth() * Set bigheap growth from given opt arg string */ void stress_set_bigheap_growth(const char *optarg) { set_bigheap_growth = true; opt_bigheap_growth = get_uint64_byte(optarg); check_range("bigheap-growth", opt_bigheap_growth, MIN_BIGHEAP_GROWTH, MAX_BIGHEAP_GROWTH); }
void stress_set_stream_L3_size(const char *optarg) { set_stream_L3_size = true; opt_stream_L3_size = get_uint64_byte(optarg); check_range("stream-L3-size", opt_stream_L3_size, MIN_STREAM_L3_SIZE, MAX_STREAM_L3_SIZE); }
static int stress_set_stream_L3_size(const char *opt) { uint64_t stream_L3_size; stream_L3_size = get_uint64_byte(opt); check_range_bytes("stream-L3-size", stream_L3_size, MIN_STREAM_L3_SIZE, MAX_STREAM_L3_SIZE); return set_setting("stream-L3-size", TYPE_ID_UINT64, &stream_L3_size); }
static int stress_set_sendfile_size(const char *opt) { int64_t sendfile_size; sendfile_size = get_uint64_byte(opt); check_range_bytes("sendfile-size", sendfile_size, MIN_SENDFILE_SIZE, MAX_SENDFILE_SIZE); return set_setting("sendfile-size", TYPE_ID_UINT64, &sendfile_size); }
void stress_set_matrix_size(const char *optarg) { uint64_t size; set_matrix_size = true; size = get_uint64_byte(optarg); check_range("matrix-size", size, MIN_MATRIX_SIZE, MAX_MATRIX_SIZE); opt_matrix_size = (size_t)size; }