summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
804bb9a)
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
pthread_condattr_t attr;
int clear_state;
pthread_condattr_t attr;
int clear_state;
+ if (!td->o.use_thread) {
+ td->pid = getpid();
+ } else
+ td->pid = gettid();
dprint(FD_PROCESS, "jobs pid=%d started\n", (int) td->pid);
dprint(FD_PROCESS, "jobs pid=%d started\n", (int) td->pid);
#define FIO_HAVE_TRIM
#define FIO_HAVE_BINJECT
#define FIO_HAVE_CLOCK_MONOTONIC
#define FIO_HAVE_TRIM
#define FIO_HAVE_BINJECT
#define FIO_HAVE_CLOCK_MONOTONIC
/*
* Can only enable this for newer glibcs, or the header and defines are
/*
* Can only enable this for newer glibcs, or the header and defines are
return syscall(__NR_ioprio_set, which, who, ioprio);
}
return syscall(__NR_ioprio_set, which, who, ioprio);
}
+static inline int gettid(void)
+{
+ return syscall(__NR_gettid);
+}
+
/*
* Just check for SPLICE_F_MOVE, if that isn't there, assume the others
* aren't either.
/*
* Just check for SPLICE_F_MOVE, if that isn't there, assume the others
* aren't either.
+#ifndef FIO_HAVE_GETTID
+static inline int gettid(void)
+{
+ return getpid();
+}
+#endif
+