On Thu, 29 Jul 2021 08:09:07 +0300 "Tzvetomir Stoyanov (VMware)" <tz.stoyanov@xxxxxxxxx> wrote: > > + if (handle->file_version < 7) > + add_section(handle, TRACECMD_OPTION_FTRACE_EVENTS, 0, 0, > + lseek64(handle->fd, 0, SEEK_CUR)); > + I really hate these "magic number 7"s. Perhaps we should add flags, like "SECTIONED" with a bit more meaning. if (handle->flags & HANDLE_FL_SECTIONED) section_add(...); -- Steve