projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'fix-libpmem' of https://github.com/lukaszstolarczuk/fio
[fio.git]
/
os
/
os-netbsd.h
diff --git
a/os/os-netbsd.h
b/os/os-netbsd.h
index abc1d3cb70120b25244ff80e8833e1023f6f602a..624c7fa5096daf40d646886ec38a6058f26061c5 100644
(file)
--- a/
os/os-netbsd.h
+++ b/
os/os-netbsd.h
@@
-35,6
+35,12
@@
#define fio_swap32(x) bswap32(x)
#define fio_swap64(x) bswap64(x)
#define fio_swap32(x) bswap32(x)
#define fio_swap64(x) bswap64(x)
+#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
+
static inline int blockdev_size(struct fio_file *f, unsigned long long *bytes)
{
struct disklabel dl;
static inline int blockdev_size(struct fio_file *f, unsigned long long *bytes)
{
struct disklabel dl;