X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=os%2Fos.h;h=cd2bb523bb9ef931f27ea123c3e239bcdc035518;hb=271067a6e278dafd62649257fe99ce536acfe7bb;hp=92b6950d305d077261633723b181f35e273b33ae;hpb=ecc314ba7c5f02b7e90ac1dfbce1a74cd4e6d6fe;p=fio.git diff --git a/os/os.h b/os/os.h index 92b6950d..cd2bb523 100644 --- a/os/os.h +++ b/os/os.h @@ -18,6 +18,8 @@ #include "os-mac.h" #elif defined(_AIX) #include "os-aix.h" +#elif defined(__hpux) +#include "os-hpux.h" #elif defined(__CYGWIN__) #include "os-windows.h" #else @@ -102,6 +104,14 @@ typedef unsigned long os_cpu_mask_t; #define fio_lookup_raw(dev, majdev, mindev) 1 #endif +#ifndef FIO_PREFERRED_ENGINE +#define FIO_PREFERRED_ENGINE "sync" +#endif + +#ifndef FIO_MAX_JOBS +#define FIO_MAX_JOBS 2048 +#endif + #ifndef FIO_HAVE_BLKTRACE static inline int is_blktrace(const char *fname) { @@ -170,4 +180,18 @@ static inline unsigned long long get_fs_size(const char *path) } #endif +#ifndef FIO_HAVE_CPU_ONLINE_SYSCONF +static inline unsigned int cpus_online(void) +{ + return sysconf(_SC_NPROCESSORS_ONLN); +} +#endif + +#ifndef FIO_HAVE_GETTID +static inline int gettid(void) +{ + return getpid(); +} +#endif + #endif