X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Fltt%2Fevent.h;h=697b400ea4c5a08e1e7a8d2761010bb34870b3fa;hb=e8353e0cf5f07edd8ec6a75897f8475c0fbfa250;hp=3bb05a90b1ed0a9664785b3525369460b1a98815;hpb=c37440c8ca246648f25fcb2c16292af9404b00d8;p=lttv.git diff --git a/ltt/branches/poly/ltt/event.h b/ltt/branches/poly/ltt/event.h index 3bb05a90..697b400e 100644 --- a/ltt/branches/poly/ltt/event.h +++ b/ltt/branches/poly/ltt/event.h @@ -1,13 +1,13 @@ #ifndef _LTT_EVENT_H #define _LTT_EVENT_H -#include #include #include #include -#include #include -#include +#include +#include +#include /* * Structure LttEvent and LttEventPosition must begin with the _exact_ same @@ -104,4 +104,9 @@ double ltt_event_get_double(LttEvent *e, struct marker_field *f); gchar *ltt_event_get_string(LttEvent *e, struct marker_field *f); +static inline LttCycleCount ltt_event_cycle_count(const LttEvent *e) +{ + return e->tsc; +} + #endif //_LTT_EVENT_H