X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=trunk%2Flttv%2Fltt%2Fevent.h;h=8293d15fcf59c59c010604d2527a8037e95a034c;hb=27828bc1b0010ee87c2f68e31fb77fd4ae39fa6b;hp=2574a271b04f653de53e63c92fb97ea8abc7cc89;hpb=d5662043c1570c860ee97af8d6cdd95af95a8c50;p=lttv.git diff --git a/trunk/lttv/ltt/event.h b/trunk/lttv/ltt/event.h index 2574a271..8293d15f 100644 --- a/trunk/lttv/ltt/event.h +++ b/trunk/lttv/ltt/event.h @@ -33,9 +33,7 @@ struct LttEvent { void *data; /* event data */ guint data_size; guint event_size; /* event_size field of the header : - used to verify data_size from facility. */ - uint32_t compact_data; - + used to verify data_size from marker. */ int count; /* the number of overflow of cycle count */ gint64 overflow_nsec; /* precalculated nsec for overflows */ }; @@ -49,12 +47,12 @@ struct LttEventPosition { uint64_t tsc; /* Current timestamp counter */ }; -static inline guint16 ltt_event_id(struct LttEvent *event) +static inline guint16 ltt_event_id(const struct LttEvent *event) { return event->event_id; } -static inline LttTime ltt_event_time(struct LttEvent *event) +static inline LttTime ltt_event_time(const struct LttEvent *event) { return event->event_time; }