| /spdk/test/dd/ |
| H A D | basic_rw.sh | 12 local count size 23 count=$((0xffff / bs)) 24 count=$((count == 0 ? 1 : count)) 25 size=$((count * bs)) 41 --count="$count" \ 52 local count seek skip data data_check 55 ((count = seek = skip = 1)) 68 --count="$count" \
|
| H A D | bdev_to_bdev.sh | 22 --count="$count" \ 30 --count=1 \ 86 --count=256 102 --count=64 113 count=$(((test_file0_size / bs) + 1))
|
| /spdk/lib/json/ |
| H A D | json_write.c | 196 int count; in spdk_json_write_uint8() local 199 count = snprintf(buf, sizeof(buf), "%" PRIu8, val); in spdk_json_write_uint8() 200 if (count <= 0 || (size_t)count >= sizeof(buf)) { return fail(w); } in spdk_json_write_uint8() 201 return emit(w, buf, count); in spdk_json_write_uint8() 208 int count; in spdk_json_write_uint16() local 211 count = snprintf(buf, sizeof(buf), "%" PRIu16, val); in spdk_json_write_uint16() 212 if (count <= 0 || (size_t)count >= sizeof(buf)) { return fail(w); } in spdk_json_write_uint16() 213 return emit(w, buf, count); in spdk_json_write_uint16() 220 int count; in spdk_json_write_int32() local 223 count = snprintf(buf, sizeof(buf), "%" PRId32, val); in spdk_json_write_int32() [all …]
|
| /spdk/test/ftl/ |
| H A D | upgrade_shutdown.sh | 32 count=$((size / bs)) 40 tcp_dd --if=/dev/urandom --ob=ftln1 --bs="$bs" --count="$count" --qd="$qd" --seek="$seek" 41 seek=$((seek + count)) 44 tcp_dd --ib=ftln1 --of="${testdir}/file" --bs="$bs" --count="$count" --qd="$qd" --skip="$skip" 45 skip=$((skip + count)) 99 tcp_dd --ib=ftln1 --of="${testdir}/file" --bs="$bs" --count="$count" --qd="${qd}" --skip="$skip" 100 skip=$((skip + count))
|
| H A D | dirty_shutdown.sh | 75 $spdk_dd -m 0x2 --if=/dev/urandom --of=$testdir/testfile --bs=$block_size --count=$data_size 77 $spdk_dd -m 0x2 --if=$testdir/testfile --of=/dev/nbd0 --bs=$block_size --count=$data_size --oflag=d… 87 $spdk_dd --if=/dev/urandom --of=$testdir/testfile2 --bs=$block_size --count=$chunk_size 88 $spdk_dd --if=$testdir/testfile2 --ob=ftl0 --count=$chunk_size --seek=$data_size --json=$testdir/co… 93 $spdk_dd --ib=ftl0 --of=$testdir/testfile --count=$data_size --json=$testdir/config/ftl.json 95 $spdk_dd --ib=ftl0 --of=$testdir/testfile2 --count=$chunk_size --skip=$data_size --json=$testdir/co…
|
| /spdk/test/bdev/ |
| H A D | nbd_common.sh | 60 # return = count of spdk nbd devices 65 count=$(echo "${nbd_disks_name}" | grep -c /dev/nbd || true) 66 echo $count 76 dd if=/dev/urandom of=$tmp_file bs=4096 count=256 78 dd if=$tmp_file of=$i bs=4096 count=256 oflag=direct 95 count=$(nbd_get_count $rpc_server) 96 if [ $count -ne ${#nbd_list[@]} ]; then 104 count=$(nbd_get_count $rpc_server) 105 if [ $count -ne 0 ]; then 122 count [all...] |
| /spdk/examples/util/zipf/ |
| H A D | zipf.c | 18 print_bucket(void *ctx, uint64_t start, uint64_t end, uint64_t count, in print_bucket() argument 24 if (count == 0) { in print_bucket() 30 printf("%24s: %9.4f%% (%9ju)\n", range, so_far_pct, count); in print_bucket() 39 int range, count, i; in main() local 48 count = spdk_strtol(argv[3], 10); in main() 50 if (range <= 0 || count <= 0) { in main() 65 for (i = 0; i < count; i++) { in main()
|
| /spdk/lib/ftl/utils/ |
| H A D | ftl_mempool.c | 24 size_t count; member 76 struct ftl_mempool *ftl_mempool_create(size_t count, size_t size, in ftl_mempool_create() argument 83 assert(count > 0); in ftl_mempool_create() 97 mp->count = count; in ftl_mempool_create() 103 mp->buffer_size = mp->element_size * mp->count; in ftl_mempool_create() 112 for (i = 0; i < count; i++, buffer += mp->element_size) { in ftl_mempool_create() 165 ftl_mempool_create_ext(void *buffer, size_t count, size_t size, size_t alignment) in ftl_mempool_create_ext() argument 171 assert(count > 0); in ftl_mempool_create_ext() 181 mp->count = count; in ftl_mempool_create_ext() 187 inuse_buf_sz = spdk_divide_round_up(mp->count, 8); in ftl_mempool_create_ext() [all …]
|
| /spdk/test/common/lib/ |
| H A D | test_env.c | 296 size_t count; in spdk_mempool_create() 302 spdk_mempool_create(const char *name, size_t count, in spdk_mempool_create() 314 mp->count = count; in spdk_mempool_free() 338 if (mp && mp->count == 0) { in spdk_mempool_get() 350 mp->count--; in spdk_mempool_get_bulk() argument 357 spdk_mempool_get_bulk(struct spdk_mempool *mp, void **ele_arr, size_t count) in spdk_mempool_get_bulk() 361 if (test_mp && test_mp->count < count) { in spdk_mempool_get_bulk() 365 for (size_t i = 0; i < count; in spdk_mempool_get_bulk() 289 size_t count; global() member 295 spdk_mempool_create(const char * name,size_t count,size_t ele_size,size_t cache_size,int socket_id) spdk_mempool_create() argument 379 spdk_mempool_put_bulk(struct spdk_mempool * mp,void ** ele_arr,size_t count) spdk_mempool_put_bulk() argument 409 size_t count; global() member 414 spdk_ring_create(enum spdk_ring_type type,size_t count,int socket_id) spdk_ring_create() argument 453 spdk_ring_enqueue(struct spdk_ring * ring,void ** objs,size_t count,size_t * free_space) spdk_ring_enqueue() argument 480 spdk_ring_dequeue(struct spdk_ring * ring,void ** objs,size_t count) spdk_ring_dequeue() argument [all...] |
| H A D | test_iobuf.c | 76 uint32_t *count; in spdk_iobuf_get() 85 count = &g_iobuf.large_pool_count; in spdk_iobuf_get() 88 count = &g_iobuf.small_pool_count; in spdk_iobuf_get() 98 if (*count == 0) { in spdk_iobuf_get() 109 (*count)--; in spdk_iobuf_put() 119 uint32_t *count; in spdk_iobuf_put() 125 count = &g_iobuf.large_pool_count; in spdk_iobuf_put() 128 count = &g_iobuf.small_pool_count; in spdk_iobuf_put() 141 (*count)++; 71 uint32_t *count; spdk_iobuf_get() local 111 uint32_t *count; spdk_iobuf_put() local
|
| /spdk/lib/env_ocf/ |
| H A D | mpool.c | 89 uint32_t count) in env_mpool_get_allocator() argument 93 if (unlikely(count == 0)) { in env_mpool_get_allocator() 97 idx = 31 - __builtin_clz(count); in env_mpool_get_allocator() 99 if (__builtin_ffs(count) <= idx) { in env_mpool_get_allocator() 111 env_mpool_new(struct env_mpool *mpool, uint32_t count) in env_mpool_new() argument 115 size_t size = mpool->hdr_size + (mpool->elem_size * count); in env_mpool_new() 117 allocator = env_mpool_get_allocator(mpool, count); in env_mpool_new() 130 void *items, uint32_t count) in env_mpool_del() argument 134 allocator = env_mpool_get_allocator(mpool, count); in env_mpool_del()
|
| /spdk/scripts/perf/pm/ |
| H A D | collect-vmstat | 16 Usage: $0 [-h] [-c count] [-d dir] [-l] [-p prefix] [-r reprint_header_count] 19 -c - Execute count times. 0 is the default and it means to run 24 -r - Stat count after which header should be re-printed. Default is 20. 81 local count=$1 interval=$2 reprint_header=${3:-20} _count 86 _count=$count 87 while ((stat_idx = stat_idx == reprint_header ? 1 : ++stat_idx, count <= 0 ? 1 : _count--)); do 107 count=0 115 c) count=$OPTARG ;; 143 _vmstat "$count" "$interval" "$reprint_header"
|
| H A D | collect-cpu-load | 16 Usage: $0 [-h] [-c count] [-d dir] [-l] [-p prefix] [cpu0 cpu1 ...] 19 -c - Execute count times. 0 is the default and it means to run 47 count=0 54 c) count=$OPTARG ;; 83 _get_cpu_time "$count" "" 1 "$interval" "${cpus[@]}"
|
| /spdk/test/app/histogram_perf/ |
| H A D | histogram_perf.c | 34 uint64_t tsc[128], t, end_tsc, count; in main() local 59 count = 0; in main() 64 spdk_histogram_data_tally(h, t - tsc[count % 128]); in main() 65 count++; in main() 71 printf("count = %ju\n", count); in main()
|
| /spdk/lib/ftl/ |
| H A D | ftl_reloc.c | 77 uint64_t count); 109 size_t i, count; in ftl_reloc_init() local 127 count = SPDK_COUNTOF(reloc->move_queue); in ftl_reloc_init() 128 for (i = 0; i < count; ++i) { in ftl_reloc_init() 212 mv->rq->iter.count = 0; in move_set_state() 300 assert(rq->iter.idx + rq->iter.count <= rq->num_blocks); in move_advance_rq() 302 for (i = 0; i < rq->iter.count; i++) { in move_advance_rq() 322 rq->iter.idx += rq->iter.count; in move_advance_rq() 326 move_init_entries(struct ftl_rq *rq, uint64_t idx, uint64_t count) in move_init_entries() argument 331 assert(idx + count <= rq->num_blocks); in move_init_entries() [all …]
|
| H A D | ftl_io.h | 209 uint64_t idx, uint64_t count); 222 uint32_t count; member 289 ftl_rq_entry_loop_assert(struct ftl_rq *rq, struct ftl_rq_entry *entry, uint32_t count) in ftl_rq_entry_loop_assert() argument 293 assert(count <= rq->num_blocks); in ftl_rq_entry_loop_assert() 298 #define FTL_RQ_ENTRY_LOOP_FROM(rq, from, entry, count) \ argument 300 (entry) < (&(rq)->entries[count]) && ftl_rq_entry_loop_assert(rq, entry, count); (entry)++) 302 #define FTL_RQ_ENTRY_LOOP(rq, entry, count) \ argument 303 FTL_RQ_ENTRY_LOOP_FROM(rq, (rq)->entries, entry, count)
|
| /spdk/module/accel/error/ |
| H A D | accel_error.c | 15 uint64_t count; member 106 info->count++; in accel_error_inject_channel() 108 if (info->count <= info->opts.count) { in accel_error_inject_channel() 113 info->count = 0; in accel_error_inject_channel() 189 info->count = 0; in accel_error_unregister_cb() 208 curr->count = 0; 210 if (curr->count == 0) { in accel_error_get_io_channel() 239 errch->injects[i].count = 0; in accel_error_write_config_json() 341 spdk_json_write_named_uint64(w, "count", opt [all...] |
| /spdk/lib/ftl/upgrade/ |
| H A D | ftl_layout_upgrade.c | 58 .count = FTL_SB_VERSION_CURRENT, 63 .count = FTL_SB_VERSION_CURRENT, 69 .count = FTL_BAND_VERSION_CURRENT, 74 .count = FTL_BAND_VERSION_CURRENT, 80 .count = FTL_NVC_VERSION_CURRENT, 85 .count = FTL_NVC_VERSION_CURRENT, 92 .count = FTL_P2L_VERSION_CURRENT, 97 .count = FTL_P2L_VERSION_CURRENT, 102 .count = FTL_P2L_VERSION_CURRENT, 107 .count [all...] |
| /spdk/include/spdk/ |
| H A D | histogram_data.h | 69 uint64_t *count; in __spdk_histogram_increment() local 71 count = &h->bucket[(range << SPDK_HISTOGRAM_BUCKET_SHIFT(h)) + index]; in __spdk_histogram_increment() 72 (*count)++; in __spdk_histogram_increment() 150 typedef void (*spdk_histogram_data_fn)(void *ctx, uint64_t start, uint64_t end, uint64_t count, 157 uint64_t i, j, count, so_far, total; in spdk_histogram_data_iterate() local 173 count = __spdk_histogram_get_count(histogram, i, j); in spdk_histogram_data_iterate() 174 so_far += count; in spdk_histogram_data_iterate() 177 fn(ctx, last_bucket, bucket, count, total, so_far); in spdk_histogram_data_iterate()
|
| /spdk/test/unit/lib/bdev/raid/concat.c/ |
| H A D | concat_ut.c | 49 int count; member 73 int i = g_req_records.count; in spdk_bdev_readv_blocks_ext() 78 g_req_records.count++; in spdk_bdev_readv_blocks_ext() 93 int i = g_req_records.count; in spdk_bdev_writev_blocks_ext() 98 g_req_records.count++; in spdk_bdev_writev_blocks_ext() 113 int i = g_req_records.count; in spdk_bdev_unmap_blocks() 118 g_req_records.count++; in spdk_bdev_unmap_blocks() 132 int i = g_req_records.count; in spdk_bdev_flush_blocks() 137 g_req_records.count++; in spdk_bdev_flush_blocks() 169 g_req_records.count = 0; in init_globals() [all …]
|
| /spdk/lib/idxd/ |
| H A D | idxd.c | 433 op->count = 1; in _idxd_prep_command() 473 op->count = 1; in _idxd_prep_batch_cmd() 655 int rc, count; in spdk_idxd_submit_copy() local 669 count = 0; in spdk_idxd_submit_copy() 691 first_op->count++; in spdk_idxd_submit_copy() 695 count++; in spdk_idxd_submit_copy() 718 chan->batch->index -= count; in spdk_idxd_submit_copy() 731 int rc, count; in spdk_idxd_submit_dualcast() local 754 count = 0; in spdk_idxd_submit_dualcast() 782 first_op->count in spdk_idxd_submit_dualcast() 829 int rc, count; spdk_idxd_submit_compare() local 904 int rc, count; spdk_idxd_submit_fill() local 984 int rc, count; spdk_idxd_submit_crc32c() local 1079 int rc, count; spdk_idxd_submit_copy_crc32c() local 1470 int rc, count = 0; spdk_idxd_submit_dif_check() local 1653 int rc, count = 0; spdk_idxd_submit_dif_insert() local 1772 int rc, count = 0; spdk_idxd_submit_dif_strip() local [all...] |
| /spdk/scripts/ |
| H A D | histogram.py | 34 count = int.from_bytes(histogram[index:index + 8], 'little') variable 35 so_far += count 47 if count > 0: 48 print("%9.3f - %9.3f: %9.4f%% (%9u)" % (start, end, so_far_pct, count))
|
| /spdk/lib/util/ |
| H A D | zipf.c | 31 uint64_t i, calc, count; in zeta() local 53 count = spdk_min(ZIPF_ZETA_ESTIMATE, range - i); in zeta() 55 inc2 = zeta_increment(i + count, theta); in zeta() 56 zetan += (inc1 + inc2) * count / 2; in zeta() 57 i += count; in zeta()
|
| /spdk/test/unit/include/spdk/histogram_data.h/ |
| H A D | histogram_ut.c | 25 check_values(void *ctx, uint64_t start, uint64_t end, uint64_t count, in check_values() argument 30 if (count == 0) { in check_values() 34 CU_ASSERT(so_far == (g_total + count)); in check_values() 51 count -= g_number_of_merged_histograms; in check_values() 57 CU_ASSERT(count == 0); in check_values()
|
| /spdk/test/lvol/ |
| H A D | snapshot_clone.sh | 25 count=$((lvol_size / LVS_DEFAULT_CLUSTER_SIZE / 2)) 26 dd if=/dev/urandom of=/dev/nbd0 oflag=direct bs="$LVS_DEFAULT_CLUSTER_SIZE" count=$count 30 count=$((lvol_size / LVS_DEFAULT_CLUSTER_SIZE)) 31 dd if=/dev/urandom of=/dev/nbd0 oflag=direct bs="$LVS_DEFAULT_CLUSTER_SIZE" count=$count 41 count=$((lvol_size / LVS_DEFAULT_CLUSTER_SIZE)) 42 dd if=/dev/urandom of=/dev/nbd0 oflag=direct bs="$LVS_DEFAULT_CLUSTER_SIZE" count=$count && false 58 count=$((lvol_size / LVS_DEFAULT_CLUSTER_SIZE / 2)) 59 … if=/dev/urandom of="$lvol_nbd1" oflag=direct seek=$count bs="$LVS_DEFAULT_CLUSTER_SIZE" count=$co… 635 …md5_2=$(dd if=/dev/nbd2 bs=$MALLOC_BS count=$two_clusters_block_count skip=$three_clusters_block_c… 661 md5_lvol2_1=$(dd if=/dev/nbd2 bs=$MALLOC_BS count=$three_clusters_block_count | md5sum) [all …]
|