projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
engines/io_uring: eliminate FDP memory corruption risk
[fio.git]
/
os
/
os-hpux.h
diff --git
a/os/os-hpux.h
b/os/os-hpux.h
index 43098ad72d86fcc40d6d8c2860d7fa62722d3b6d..9f3d76f50719736c998e76dbe4e30f1cfdd067e6 100644
(file)
--- a/
os/os-hpux.h
+++ b/
os/os-hpux.h
@@
-1,10
+1,12
@@
#ifndef FIO_OS_HPUX_H
#define FIO_OS_HPUX_H
#ifndef FIO_OS_HPUX_H
#define FIO_OS_HPUX_H
+#define FIO_OS os_hpux
+
#include <errno.h>
#include <unistd.h>
#include <sys/ioctl.h>
#include <errno.h>
#include <unistd.h>
#include <sys/ioctl.h>
-#include <
sys/
fcntl.h>
+#include <fcntl.h>
#include <sys/fadvise.h>
#include <sys/mman.h>
#include <sys/mpctl.h>
#include <sys/fadvise.h>
#include <sys/mman.h>
#include <sys/mpctl.h>
@@
-17,16
+19,9
@@
#include "../file.h"
#include "../file.h"
-#define FIO_HAVE_POSIXAIO
#define FIO_HAVE_ODIRECT
#define FIO_HAVE_ODIRECT
-#define FIO_USE_GENERIC_RAND
-#define FIO_HAVE_CLOCK_MONOTONIC
-#define FIO_HAVE_PSHARED_MUTEX
-#define FIO_HAVE_FADVISE
+#define FIO_USE_GENERIC_INIT_RANDOM_STATE
#define FIO_HAVE_CHARDEV_SIZE
#define FIO_HAVE_CHARDEV_SIZE
-#define FIO_HAVE_FALLOCATE
-#define FIO_HAVE_POSIXAIO_FSYNC
-#define FIO_HAVE_FDATASYNC
#define OS_MAP_ANON MAP_ANONYMOUS
#define OS_MSG_DONTWAIT 0
#define OS_MAP_ANON MAP_ANONYMOUS
#define OS_MSG_DONTWAIT 0
@@
-36,28
+31,25
@@
#define POSIX_MADV_RANDOM MADV_RANDOM
#define posix_madvise(ptr, sz, hint) madvise((ptr), (sz), (hint))
#define POSIX_MADV_RANDOM MADV_RANDOM
#define posix_madvise(ptr, sz, hint) madvise((ptr), (sz), (hint))
-#ifndef CLOCK_MONOTONIC
-#define CLOCK_MONOTONIC CLOCK_REALTIME
-#endif
-
#ifndef MSG_WAITALL
#define MSG_WAITALL 0x40
#endif
#ifndef MSG_WAITALL
#define MSG_WAITALL 0x40
#endif
-#ifdef LITTLE_ENDIAN
-#define FIO_LITTLE_ENDIAN
-#else
-#define FIO_BIG_ENDIAN
-#endif
-
#define FIO_USE_GENERIC_SWAP
#define FIO_OS_HAVE_AIOCB_TYPEDEF
#define FIO_USE_GENERIC_SWAP
#define FIO_OS_HAVE_AIOCB_TYPEDEF
+
+#ifdef CONFIG_PTHREAD_GETAFFINITY
+#define FIO_HAVE_GET_THREAD_AFFINITY
+#define fio_get_thread_affinity(mask) \
+ pthread_getaffinity_np(pthread_self(), sizeof(mask), &(mask))
+#endif
+
typedef struct aiocb64 os_aiocb_t;
static inline int blockdev_invalidate_cache(struct fio_file *f)
{
typedef struct aiocb64 os_aiocb_t;
static inline int blockdev_invalidate_cache(struct fio_file *f)
{
- return E
INVAL
;
+ return E
NOTSUP
;
}
static inline int blockdev_size(struct fio_file *f, unsigned long long *bytes)
}
static inline int blockdev_size(struct fio_file *f, unsigned long long *bytes)
@@
-96,9
+88,9
@@
static inline unsigned long long os_phys_mem(void)
return ret;
}
return ret;
}
-#define FIO_HAVE_CPU_
ONLINE
_SYSCONF
+#define FIO_HAVE_CPU_
CONF
_SYSCONF
-static inline unsigned int cpus_
online
(void)
+static inline unsigned int cpus_
configured
(void)
{
return mpctl(MPC_GETNUMSPUS, 0, NULL);
}
{
return mpctl(MPC_GETNUMSPUS, 0, NULL);
}