fio_plugin: Use CLOCK_MONOTONIC for FreeBSD
In order for fio_plugin to compile a replacement is needed for CLOCK_MONOTONIC_RAW, since FreeBSD does not support it. In that case CLOCK_MONOTONIC is used. Change-Id: I234ce4d932baf9c5399a46f9f4676315351e720c Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/458072 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
This commit is contained in:
parent
7d6705f833
commit
9b96749f66
@ -49,6 +49,12 @@
|
|||||||
#include "fio.h"
|
#include "fio.h"
|
||||||
#include "optgroup.h"
|
#include "optgroup.h"
|
||||||
|
|
||||||
|
/* FreeBSD is missing CLOCK_MONOTONIC_RAW,
|
||||||
|
* so alternative is provided. */
|
||||||
|
#ifndef CLOCK_MONOTONIC_RAW /* Defined in glibc bits/time.h */
|
||||||
|
#define CLOCK_MONOTONIC_RAW CLOCK_MONOTONIC
|
||||||
|
#endif
|
||||||
|
|
||||||
struct spdk_fio_options {
|
struct spdk_fio_options {
|
||||||
void *pad;
|
void *pad;
|
||||||
char *conf;
|
char *conf;
|
||||||
|
@ -46,6 +46,12 @@
|
|||||||
#include "fio.h"
|
#include "fio.h"
|
||||||
#include "optgroup.h"
|
#include "optgroup.h"
|
||||||
|
|
||||||
|
/* FreeBSD is missing CLOCK_MONOTONIC_RAW,
|
||||||
|
* so alternative is provided. */
|
||||||
|
#ifndef CLOCK_MONOTONIC_RAW /* Defined in glibc bits/time.h */
|
||||||
|
#define CLOCK_MONOTONIC_RAW CLOCK_MONOTONIC
|
||||||
|
#endif
|
||||||
|
|
||||||
#define NVME_IO_ALIGN 4096
|
#define NVME_IO_ALIGN 4096
|
||||||
|
|
||||||
static bool g_spdk_env_initialized;
|
static bool g_spdk_env_initialized;
|
||||||
|
Loading…
Reference in New Issue
Block a user