Move {is,load}_blktrace() to a new header blktrace.h
authorTomohiro Kusumi <tkusumi@tuxera.com>
Tue, 23 May 2017 18:44:45 +0000 (21:44 +0300)
committerJens Axboe <axboe@fb.com>
Wed, 24 May 2017 02:02:42 +0000 (20:02 -0600)
commita3e594123de4a010776b6fc2aaac75de35c5251a
tree92a5b76327ee78d7e4b3b54e32c5fb9725df4d57
parent484b0b659566d04dc4d7305b120216708e8bbe31
Move {is,load}_blktrace() to a new header blktrace.h

This commit does exactly the same as what cgroup.h does for cgroup
support.

Since blktrace is Linux specific feature and api compiled only on
Linux and Android, these two could be defined in blktrace.h rather
than in os/os.h which is basically intended to be something generic
whose implementation vary depending on supported platforms.

The reason for adding a new header blktrace.h instead of using
blktrace_api.h is because blktrace_api.h seems to have been added
for blktrace.c to include which gets compiled only on Linux where
blktrace apis are basically guaranteed to exist (unless really old
kernels), whereas these prototypes or inline functions are needed
by all platforms.

Signed-off-by: Tomohiro Kusumi <tkusumi@tuxera.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
blktrace.c
blktrace.h [new file with mode: 0644]
fio.h
iolog.c
os/os.h