X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=backend.c;h=ac6ed3e45fc2c8cc319a6a614165214ae266464a;hp=23fa345b7e19496ae64af4a0bfa8983ddaefe794;hb=3310fcedbf11916c20aca6cffc20264a6e781e32;hpb=cbb1303c21eb43f59c4d2a4bf97a856eb8863773 diff --git a/backend.c b/backend.c index 23fa345b..ac6ed3e4 100644 --- a/backend.c +++ b/backend.c @@ -1575,7 +1575,7 @@ static int fork_main(int shmid, int offset) struct thread_data *td; void *data, *ret; -#ifndef __hpux +#if !defined(__hpux) && !defined(CONFIG_NO_SHM) data = shmat(shmid, NULL, 0); if (data == (void *) -1) { int __err = errno; @@ -2020,9 +2020,9 @@ int fio_backend(void) return 0; if (write_bw_log) { - setup_log(&agg_io_log[DDIR_READ], 0, IO_LOG_TYPE_BW); - setup_log(&agg_io_log[DDIR_WRITE], 0, IO_LOG_TYPE_BW); - setup_log(&agg_io_log[DDIR_TRIM], 0, IO_LOG_TYPE_BW); + setup_log(&agg_io_log[DDIR_READ], 0, IO_LOG_TYPE_BW, 0); + setup_log(&agg_io_log[DDIR_WRITE], 0, IO_LOG_TYPE_BW, 0); + setup_log(&agg_io_log[DDIR_TRIM], 0, IO_LOG_TYPE_BW, 0); } startup_mutex = fio_mutex_init(FIO_MUTEX_LOCKED);