support O_DIRECT for file read/write benchmarks

This adds an option for enabling O_DIRECT for the uwrite, uread, and
ureadrand benchmarks and when we enable that we consequently disable
the "memory hog" code, which was unreliable on some platforms.

BUG=chrome-os-partner:30913
TEST=build punybench for link (x86) and veyron (armv7a) and -d flag
     works

Change-Id: I8270f2a58881675342fa54e730f98a8b72aae85b
Reviewed-on: https://chromium-review.googlesource.com/265475
Reviewed-by: Luigi Semenzato <semenzato@chromium.org>
Commit-Queue: Sonny Rao <sonnyrao@chromium.org>
Tested-by: Sonny Rao <sonnyrao@chromium.org>
3 files changed