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)
committerSimon Marchi <simon.marchi@efficios.com>
Fri, 15 Nov 2019 18:08:12 +0000 (13:08 -0500)
commit30174f59ca102e1a3cff21521c901523597483ad
tree80add72e00fb9a135e4c3404cd48681cec300266
parent701a09030b59bfa464c03252e0c9acbcfac1fc94
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.024061 seconds and 4 git commands to generate.