From fe6b3de1264616df789aa923eb8e7f88c8aba991 Mon Sep 17 00:00:00 2001 From: Jim Harris Date: Wed, 7 Mar 2018 21:51:34 -0700 Subject: [PATCH] test/overhead: allocate histograms for aio cases Fixes Github issue #236. Reported-by: Meng Wang Submitted-by: Meng Wang Signed-off-by: Jim Harris Change-Id: If205dd8446c61d101a869899680d2552838b9de3 Reviewed-on: https://review.gerrithub.io/403123 Reviewed-by: Daniel Verkamp Tested-by: SPDK Automated Test System Reviewed-by: Changpeng Liu --- test/lib/nvme/overhead/overhead.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/lib/nvme/overhead/overhead.c b/test/lib/nvme/overhead/overhead.c index 6acd3aaac..834a353a9 100644 --- a/test/lib/nvme/overhead/overhead.c +++ b/test/lib/nvme/overhead/overhead.c @@ -226,6 +226,8 @@ register_aio_file(const char *path) entry->u.aio.fd = fd; entry->size_in_ios = size / g_io_size_bytes; entry->io_size_blocks = g_io_size_bytes / blklen; + entry->submit_histogram = spdk_histogram_data_alloc(); + entry->complete_histogram = spdk_histogram_data_alloc(); snprintf(entry->name, sizeof(entry->name), "%s", path);