Otherwise we get garbage in ns_entry->zipf. If this is not-NULL, we use it for zipf random distribution and segfault since it's not-NULL but also not valid. So use calloc instead. Signed-off-by: Jim Harris <james.r.harris@intel.com> Change-Id: I0d13e21989b6f43e9f6f16736479395d1d6f0e77 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/16362 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com> Reviewed-by: Paul Luse <paul.e.luse@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Xiaodong Liu <xiaodong.liu@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com> |
||
---|---|---|
.. | ||
.gitignore | ||
Makefile | ||
perf.c | ||
README.md |
Compiling perf on FreeBSD
To use perf test on FreeBSD over NVMe-oF, explicitly link userspace library of HBA. For example, on a setup with Mellanox HBA,
LIBS += -lmlx5