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.
Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/458072 (master)
(cherry picked from commit 9b96749f66
)
Change-Id: Ie2f7c5b2f19e473a37983856a37370a879b0e3f3
Signed-off-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/462512
This commit is contained in:
parent
82f691be43
commit
50a116dbe5
@ -49,6 +49,12 @@
|
||||
#include "fio.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 {
|
||||
void *pad;
|
||||
char *conf;
|
||||
|
@ -45,6 +45,12 @@
|
||||
#include "fio.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
|
||||
|
||||
static bool g_spdk_env_initialized;
|
||||
|
Loading…
Reference in New Issue
Block a user