Changeset View
Changeset View
Standalone View
Standalone View
sbin/nvmecontrol/perftest.c
Show First 20 Lines • Show All 69 Lines • ▼ Show 20 Lines | print_perftest(struct nvme_io_test *io_test, bool perthread) | ||||
if (perthread) | if (perthread) | ||||
for (i = 0; i < io_test->num_threads; i++) | for (i = 0; i < io_test->num_threads; i++) | ||||
printf("\t%3d: %8ju IO/s\n", i, | printf("\t%3d: %8ju IO/s\n", i, | ||||
(uintmax_t)io_test->io_completed[i]/io_test->time); | (uintmax_t)io_test->io_completed[i]/io_test->time); | ||||
} | } | ||||
static void | static void | ||||
perftest(struct nvme_function *nf, int argc, char *argv[]) | perftest(const struct nvme_function *nf, int argc, char *argv[]) | ||||
{ | { | ||||
struct nvme_io_test io_test; | struct nvme_io_test io_test; | ||||
int fd; | int fd; | ||||
int opt; | int opt; | ||||
char *p; | char *p; | ||||
u_long ioctl_cmd = NVME_IO_TEST; | u_long ioctl_cmd = NVME_IO_TEST; | ||||
bool nflag, oflag, sflag, tflag; | bool nflag, oflag, sflag, tflag; | ||||
int perthread = 0; | int perthread = 0; | ||||
▲ Show 20 Lines • Show All 93 Lines • Show Last 20 Lines |