ctf: assert that msg iter and medium seek offset is valid
authorSimon Marchi <simon.marchi@efficios.com>
Tue, 5 Nov 2019 20:22:39 +0000 (15:22 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 15 Nov 2019 21:10:12 +0000 (16:10 -0500)
commitebe4c684d397992e70455847890cc2fe13d2b79d
treeb8d856cc3e186d34f701585973a45b9b18c75dbd
parent9a4c10a7ffe8c63592898e108b02afa125d893d1
ctf: assert that msg iter and medium seek offset is valid

I don't think there is ever a valid situation for `offset` to have an
invalid value in ctf_msg_iter_seek or medop_seek.  If the user of the
iterator (e.g.  fs.c) thinks it's cool enough to seek, it should know
about the underlying medium it used to create the msg iter and make sure
not to seek at an invalid position.

This allows removing the INVAL values in enum ctf_msg_iter_medium_status
and enum ctf_msg_iter_status.

Change-Id: I19d48fe751aebf21e60c5cbc16127919a5fa72f3
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
src/plugins/ctf/common/msg-iter/msg-iter.c
src/plugins/ctf/common/msg-iter/msg-iter.h
src/plugins/ctf/fs-src/data-stream-file.c
src/plugins/ctf/lttng-live/lttng-live.c
This page took 0.024425 seconds and 4 git commands to generate.