| /spdk/test/dd/ |
| H A D | sparse.sh | 47 stat1_s=$(stat --printf='%s' $file1) 48 stat2_s=$(stat --printf='%s' $file2) 52 stat1_b=$(stat --printf='%b' $file1) 53 stat2_b=$(stat --printf='%b' $file2) 97 stat2_s=$(stat --printf='%s' $file2) 98 stat3_s=$(stat --printf='%s' $file3) 102 stat2_b=$(stat --printf='%b' $file2) 103 stat3_b=$(stat --printf='%b' $file3)
|
| H A D | posix.sh | 60 atime_if=$(stat --printf="%X" "$test_file0") 61 atime_of=$(stat --printf="%X" "$test_file1") 69 ((atime_if == $(stat --printf="%X" "$test_file0"))) 70 ((atime_of == $(stat --printf="%X" "$test_file1"))) 73 ((atime_if < $(stat --printf="%X" "$test_file0")))
|
| /spdk/test/scheduler/ |
| H A D | common.sh | 472 local stat=$2 stats astats 475 source <(grep '^cpu[0-9]' /proc/stat | sed 's/\([^ ]*\) \(.*\)/_\1=(\2)/') 481 case "$stat" in 505 local stats stat old_stats avg_load 549 # We skip first sample to have min 2 for stat comparison 567 for stat in "${!stats[@]}"; do 568 avg_load[stat]="stat_${stat}_${cpu}[@]" 569 sample_stats[stat]=$((stats[stat] [all...] |
| /spdk/lib/nvme/ |
| H A D | nvme_poll_group.c | 510 struct spdk_nvme_poll_group_stat *stat) 517 assert(stat); 519 for (i = 0; i < stat->num_transports; i++) { 521 if (nvme_transport_get_trtype(tgroup->transport) == stat->transport_stat[i]->trtype) { 522 nvme_transport_poll_group_free_stats(tgroup, stat->transport_stat[i]); 529 assert(freed_stats == stat->num_transports); 531 free(stat->transport_stat); 532 free(stat); 280 spdk_nvme_poll_group_free_stats(struct spdk_nvme_poll_group * group,struct spdk_nvme_poll_group_stat * stat) spdk_nvme_poll_group_free_stats() argument
|
| H A D | nvme_pcie_internal.h | 144 struct spdk_nvme_pcie_stat *stat; member 261 pqpair->stat->sq_shadow_doorbell_updates++; in nvme_pcie_qpair_ring_sq_doorbell() 270 pqpair->stat->sq_mmio_doorbell_updates++; in nvme_pcie_qpair_ring_sq_doorbell() 285 pqpair->stat->cq_shadow_doorbell_updates++; in nvme_pcie_qpair_ring_cq_doorbell() 293 pqpair->stat->cq_mmio_doorbell_updates++; in nvme_pcie_qpair_ring_cq_doorbell()
|
| H A D | nvme_pcie_common.c | 287 pqpair->stat = spdk_zmalloc(sizeof(*pqpair->stat), 64, NULL, SPDK_ENV_NUMA_ID_ANY, in nvme_pcie_qpair_insert_pending_admin_request() 289 if (!pqpair->stat) { in nvme_pcie_qpair_insert_pending_admin_request() 572 pqpair->stat = &group->stats; 575 if (pqpair->stat == NULL) { in nvme_pcie_ctrlr_disconnect_qpair() 576 pqpair->stat = calloc(1, sizeof(*pqpair->stat)); in nvme_pcie_ctrlr_disconnect_qpair() 577 if (!pqpair->stat) { in nvme_pcie_ctrlr_disconnect_qpair() 919 pqpair->stat->polls++; in nvme_pcie_qpair_process_completions() 978 pqpair->stat in nvme_pcie_qpair_process_completions() [all...] |
| /spdk/test/unit/lib/blobfs/blobfs_sync_ut/ |
| H A D | blobfs_sync_ut.c | 147 struct spdk_file_stat stat = {0}; in cache_read_after_write() local 173 rc = spdk_fs_file_stat(g_fs, channel, "testfile", &stat); in cache_read_after_write() 175 CU_ASSERT(sizeof(w_buf) == stat.size); in cache_read_after_write() 208 struct spdk_file_stat stat = {0}; in file_length() local 244 rc = spdk_fs_file_stat(g_fs, channel, "testfile", &stat); in file_length() 246 CU_ASSERT(buf_length == stat.size); in file_length() 261 rc = spdk_fs_file_stat(g_fs, channel, "testfile", &stat); in file_length() 263 CU_ASSERT(buf_length == stat.size); in file_length() 343 struct spdk_file_stat stat = {0}; in partial_buffer() local 387 rc = spdk_fs_file_stat(g_fs, channel, "testfile", &stat); in partial_buffer() [all …]
|
| /spdk/scripts/ |
| H A D | spdk-gpt.py | 9 import stat 14 return os.path.exists(block) and stat.S_ISBLK(os.stat(block).st_mode)
|
| H A D | iostat.py | 171 def read_bdev_stat(last_stat, stat, mb, use_upt, ext_info): argument 175 upt_cur = stat['ticks'] 177 upt_rate = stat['tick_rate'] 184 for bdev in stat['bdevs']: 272 for bdev in stat['bdevs']: 347 def io_stat_display(args, cpu_info, stat): argument 356 stat, _stat, args.mb_display, args.use_uptime, args.extended_display) 363 … bdev_stats = read_bdev_stat(stat, _stat, args.mb_display, args.use_uptime, args.extended_display)
|
| H A D | sync_dev_uevents.sh | 36 maj=$((0x$(stat --printf="%t" "/dev/${devs[dev]}"))) 37 min=$((0x$(stat --printf="%T" "/dev/${devs[dev]}")))
|
| H A D | posix.txt | 61 <sys/stat.h>
|
| /spdk/module/bdev/nvme/ |
| H A D | bdev_nvme_rpc.c | 1049 struct stat fw_stat; in apply_firmware_open_cb() 1164 struct spdk_nvme_transport_poll_group_stat *stat) 1171 for (i = 0; i < stat->rdma.num_devices; i++) { in rpc_bdev_nvme_rdma_stats() 1172 device_stats = &stat->rdma.device_stats[i]; in rpc_bdev_nvme_rdma_stats() argument 1190 struct spdk_nvme_transport_poll_group_stat *stat) in rpc_bdev_nvme_rdma_stats() 1192 spdk_json_write_named_uint64(w, "polls", stat->pcie.polls); in rpc_bdev_nvme_rdma_stats() 1193 spdk_json_write_named_uint64(w, "idle_polls", stat->pcie.idle_polls); in rpc_bdev_nvme_rdma_stats() 1194 spdk_json_write_named_uint64(w, "completions", stat->pcie.completions); in rpc_bdev_nvme_rdma_stats() 1195 spdk_json_write_named_uint64(w, "cq_mmio_doorbell_updates", stat->pcie.cq_mmio_doorbell_updates); 1197 stat 1198 rpc_bdev_nvme_pcie_stats(struct spdk_json_write_ctx * w,struct spdk_nvme_transport_poll_group_stat * stat) rpc_bdev_nvme_pcie_stats() argument 1215 rpc_bdev_nvme_tcp_stats(struct spdk_json_write_ctx * w,struct spdk_nvme_transport_poll_group_stat * stat) rpc_bdev_nvme_tcp_stats() argument 1231 struct spdk_nvme_poll_group_stat *stat; rpc_bdev_nvme_stats_per_channel() local 2555 struct spdk_bdev_io_stat stat; global() member [all...] |
| H A D | bdev_nvme.c | 816 io_path->stat = calloc(1, sizeof(struct spdk_bdev_io_stat)); in bdev_nvme_destroy_bdev_channel_cb() 817 if (io_path->stat == NULL) { 819 SPDK_ERRLOG("Failed to alloc io_path stat.\n"); in bdev_nvme_io_type_is_admin() 822 spdk_bdev_reset_io_stat(io_path->stat, SPDK_BDEV_RESET_STAT_MAXMIN); in bdev_nvme_io_type_is_admin() 831 free(io_path->stat); in bdev_nvme_io_type_is_admin() 898 if (nbdev->ref != 0 && io_path->nvme_ns->stat != NULL && io_path->stat != NULL) { 899 spdk_bdev_add_io_stat(io_path->nvme_ns->stat, io_path->stat); in nvme_ctrlr_is_failed() 1424 struct spdk_bdev_io_stat *stat; 1253 struct spdk_bdev_io_stat *stat; bdev_nvme_update_io_path_stat() local [all...] |
| H A D | bdev_nvme.h | 64 * record io path stat before destroyed. Allocation of stat is 68 struct spdk_bdev_io_stat *stat; 205 /* allocation of stat is decided by option io_path_stat of RPC bdev_nvme_set_options */ 206 struct spdk_bdev_io_stat *stat; 89 struct spdk_bdev_io_stat *stat; global() member 223 struct spdk_bdev_io_stat *stat; global() member
|
| /spdk/module/blobfs/bdev/ |
| H A D | blobfs_fuse.c | 56 fuse_getattr(const char *path, struct stat *stbuf, struct fuse_file_info *fi) in fuse_getattr() 58 struct spdk_file_stat stat; in fuse_getattr() local 67 rc = spdk_fs_file_stat(thd_bfuse->fs, thd_bfuse->channel, path, &stat); in fuse_getattr() 71 stbuf->st_size = stat.size; in fuse_getattr()
|
| /spdk/module/keyring/file/ |
| H A D | keyring.c | 20 struct stat st; in keyring_file_check_path() 28 rc = stat(path, &st); in keyring_file_check_path() 31 SPDK_ERRLOG("Could not stat key file '%s': %s\n", path, spdk_strerror(errsv)); in keyring_file_check_path()
|
| /spdk/lib/bdev/ |
| H A D | bdev_internal.h | 25 void bdev_free_io_stat(struct spdk_bdev_io_stat *stat);
|
| /spdk/include/spdk/ |
| H A D | blobfs.h | 72 typedef void (*spdk_file_stat_op_complete)(void *ctx, struct spdk_file_stat *stat, int fserrno); 189 const char *name, struct spdk_file_stat *stat);
|
| /spdk/lib/util/ |
| H A D | fd.c | 67 struct stat st; in spdk_fd_get_size()
|
| /spdk/lib/nvmf/ |
| H A D | rdma.c | 422 struct spdk_nvmf_rdma_poller_stat stat; 442 struct spdk_nvmf_rdma_poll_group_stat stat; 1007 qp_init_attr.stats = &rqpair->poller->stat.qp_stats; in nvmf_rdma_qpair_initialize() 2219 rgroup->stat.pending_data_buffer++; in nvmf_rdma_request_process() 2256 rqpair->poller->stat.pending_rdma_read++; in nvmf_rdma_request_process() 2411 rqpair->poller->stat.pending_rdma_write++; in nvmf_rdma_request_process() 2436 rqpair->poller->stat.pending_rdma_send++; in nvmf_rdma_request_process() 2476 rqpair->poller->stat.request_latency += spdk_get_ticks() - rdma_req->receive_tsc; in nvmf_rdma_opts_init() 3443 rqpair->poller->stat.pending_free_request++; in nvmf_rdma_destroy_drained_qpair() 4068 srq_init_attr.stats = &poller->stat in _nvmf_rdma_register_poller_in_group() 423 struct spdk_nvmf_rdma_poller_stat stat; global() member 443 struct spdk_nvmf_rdma_poll_group_stat stat; global() member [all...] |
| H A D | nvmf.c | 1342 assert(qpair->group->stat.current_admin_qpairs > 0); in _nvmf_qpair_destroy() 1343 qpair->group->stat.current_admin_qpairs--; in _nvmf_qpair_destroy() 1345 assert(qpair->group->stat.current_io_qpairs > 0); in _nvmf_qpair_destroy() 1346 qpair->group->stat.current_io_qpairs--; in _nvmf_qpair_destroy() 1897 spdk_json_write_named_uint32(w, "admin_qpairs", group->stat.admin_qpairs); in spdk_nvmf_poll_group_dump_stat() 1898 spdk_json_write_named_uint32(w, "io_qpairs", group->stat.io_qpairs); in spdk_nvmf_poll_group_dump_stat() 1899 spdk_json_write_named_uint32(w, "current_admin_qpairs", group->stat.current_admin_qpairs); in spdk_nvmf_poll_group_dump_stat() 1900 spdk_json_write_named_uint32(w, "current_io_qpairs", group->stat.current_io_qpairs); in spdk_nvmf_poll_group_dump_stat() 1901 spdk_json_write_named_uint64(w, "pending_bdev_io", group->stat.pending_bdev_io); in spdk_nvmf_poll_group_dump_stat() 1902 spdk_json_write_named_uint64(w, "completed_nvme_io", group->stat in spdk_nvmf_poll_group_dump_stat() [all...] |
| /spdk/test/unit/lib/nvme/nvme_pcie_common.c/ |
| H A D | nvme_pcie_common_ut.c | 313 pqpair.stat = NULL; in test_nvme_pcie_ctrlr_connect_qpair() 379 pqpair.stat = NULL; in test_nvme_pcie_ctrlr_connect_qpair() 425 pqpair.stat = NULL; in test_nvme_pcie_ctrlr_connect_qpair() 457 pqpair.stat = NULL; in test_nvme_pcie_ctrlr_connect_qpair() 501 pqpair.stat = NULL; in test_nvme_pcie_ctrlr_connect_qpair() 541 CU_ASSERT(pqpair->stat != NULL); in test_nvme_pcie_ctrlr_construct_admin_qpair()
|
| /spdk/lib/rocksdb/ |
| H A D | env_spdk.cc | 465 struct spdk_file_stat stat; in FileExists() local 470 rc = spdk_fs_file_stat(g_fs, g_sync_args.channel, name.c_str(), &stat); in FileExists() 497 struct spdk_file_stat stat; in GetFileSize() local 502 rc = spdk_fs_file_stat(g_fs, g_sync_args.channel, name.c_str(), &stat); in GetFileSize() 506 *size = stat.size; in GetFileSize()
|
| /spdk/test/vhost/integrity/ |
| H A D | integrity_vm.sh | 72 stats=($(cat /sys/block/$dev/stat))
|
| /spdk/scripts/perf/pm/ |
| H A D | collect-vmstat | 25 -t - How long to wait before each stat dump. Default is 1s.
|