The following changes since commit 7ceefc0914b9ff721047b4dc8be54625d43f577c: idle-prof: Fix segment fault issue when run with '--idle-prof' and multiple output format normal,json (2018-06-07 20:27:25 -0600) are available in the git repository at: git://git.kernel.dk/fio.git master for you to fetch changes up to ab5643cb04dac549b2202231d5c6e33339b7fe7d: stat: fix --bandwidth-log segfault (2018-06-08 08:31:20 -0600) ---------------------------------------------------------------- Igor Konopko (1): stat: fix --bandwidth-log segfault stat.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) --- Diff of recent changes: diff --git a/stat.c b/stat.c index 58edf04..d5240d9 100644 --- a/stat.c +++ b/stat.c @@ -2207,12 +2207,14 @@ static struct io_logs *get_cur_log(struct io_log *iolog) * submissions, flag 'td' as needing a log regrow and we'll take * care of it on the submission side. */ - if (iolog->td->o.io_submit_mode == IO_MODE_OFFLOAD || + if ((iolog->td && iolog->td->o.io_submit_mode == IO_MODE_OFFLOAD) || !per_unit_log(iolog)) return regrow_log(iolog); - iolog->td->flags |= TD_F_REGROW_LOGS; - assert(iolog->pending->nr_samples < iolog->pending->max_samples); + if (iolog->td) + iolog->td->flags |= TD_F_REGROW_LOGS; + if (iolog->pending) + assert(iolog->pending->nr_samples < iolog->pending->max_samples); return iolog->pending; } -- To unsubscribe from this list: send the line "unsubscribe fio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html