On Thu, 20 Sep 2018 16:26:11 +0300 "Yordan Karadzhov (VMware)" <y.karadz@xxxxxxxxx> wrote: > On 20.09.2018 06:24, Steven Rostedt wrote: > >> /** Special mask used whene filtering events. */ > >> KS_EVENT_VIEW_FILTER_MASK = 1 << 2, > >> + > >> + /** > >> + * Use this mask to check if the content of the entry has been accessed > >> + * by a plugin-defined function. > >> + */ > >> + KS_PLUGIN_UNTOUCHED_MASK = 1 << 7 > > Why the jump to 7? > > The "visible" field of the entry will use 8 bits. I know that it is > uint16_t now, but my plan is to use 8 of its bits for the stream_id field. > > Currently we use the first 3 bits as different visibility flags and we > have 4 unused bits available for adding more visibility flags in the > future. Because the PLUGIN_UNTOUCHED flag has a different meaning I > decided to place it at the very end. > > Is this a problem? No, it just seems out of place. Can you add a comment after the VIEW_FILTER_MASK stating that the next 4 bits are reserved for more VIEW bits. -- Steve