idle-prof: Fix segment fault issue when run with '--idle-prof' and multiple output...
authorFriendy.Su@sony.com <Friendy.Su@sony.com>
Fri, 8 Jun 2018 02:27:25 +0000 (20:27 -0600)
committerJens Axboe <axboe@kernel.dk>
Fri, 8 Jun 2018 02:27:25 +0000 (20:27 -0600)
commit7ceefc0914b9ff721047b4dc8be54625d43f577c
treebded411189515224d0eadefc7396fc3da4da2e2a
parenta43f4461d5716c4c46018dd45cecf0a896d05dbd
idle-prof: Fix segment fault issue when run with '--idle-prof' and multiple output format normal,json

Original issue:

./fio --output-format=normal,json --idle-prof=system jobfile.job

job1: (g=0): rw=write, bs=(R) 4096B-4096B, (W) 4096B-4096B, (T) 4096B-4096B, ioengine=sync, iodepth=1
fio-3.7-19-ga43f
Starting 1 process
Segmentation fault (core dumped)

Fix solution:

do fio_idle_prof_cleanup() after all formats of output shown.

Signed-off-by: friendy-su <friendy.su@sony.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
idletime.c
idletime.h
stat.c