server/client: don't use __ conversion functions if not needed

Signed-off-by: Jens Axboe <axboe@fb.com>
engines/libaio: fix wrong setting of wait_start

Signed-off-by: Jens Axboe <axboe@fb.com>
crc/test: fix potential div by zero

Signed-off-by: Jens Axboe <axboe@fb.com>
sha256: cast shift to uint64_t

Signed-off-by: Jens Axboe <axboe@fb.com>
t/dedupe: fix bogus items NULL compare

Signed-off-by: Jens Axboe <axboe@fb.com>
t/btrace2fio: fix fd leak on error

Signed-off-by: Jens Axboe <axboe@fb.com>
client: fix potential NULL dereference

Signed-off-by: Jens Axboe <axboe@fb.com>
Get rid if --header-file argument for lex

Since we now wrap the lexer_input() call, should be safe to just
get rid of the lexer.h define since we don't need size_t/yy_size_t.

Signed-off-by: Jens Axboe <axboe@fb.com>
engines/net: get rid of conversion warning on clang/OSX

Signed-off-by: Jens Axboe <axboe@fb.com>
BSD Yacc doesn't understand --no-lines, so use -l instead

Signed-off-by: Jens Axboe <axboe@fb.com>
Add some build assert macros

Stolen from the linux kernel.

Signed-off-by: Jens Axboe <axboe@fb.com>
stat: ensure that the fp fields are 64-bit aligned

Signed-off-by: Jens Axboe <axboe@fb.com>
fio: add alignment check for fp fields

Signed-off-by: Jens Axboe <axboe@fb.com>
Add alignment to thread_options_pack for proper fp alignment

Signed-off-by: Jens Axboe <axboe@fb.com>
Fix typo in alignment check

It checks percentile_list twice and forgets latency_percentile
in the thread_options_pack structure. Add alignment after the
32-bit sync_file_range to make it align properly.

Signed-off-by: Jens Axboe <axboe@fb.com>
compiler: improve gcc 4.x compile time check

Signed-off-by: Jens Axboe <axboe@fb.com>
t/dedupe: fix init of all thread variables

->dupes wasn't initialized, for instance. Just memset the
whole thing, so we don't run into this again.

Signed-off-by: Jens Axboe <axboe@fb.com>
Fix exit being slowed by disk util stat time

Add a cv/lock to handle exit of the disk util thread. This is a
lot cleaner than the adhoc method that was used before, and it
means that we can signal the exit immediately instead of waiting
for DISKUTIL_MSEC to pass.

Signed-off-by: Jens Axboe <axboe@fb.com>
Get rid of (now unused) disk_util_mutex

Signed-off-by: Jens Axboe <axboe@fb.com>
backend: remove debug du thread exit notice

Signed-off-by: Jens Axboe <axboe@fb.com>