X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=libust%2Ftracercore.h;h=52f75ec82352fca4ebddb7fde5245ecb39aef14d;hb=12e81b07455a1aef2e2bcc73004f14a7b73596fa;hp=3113383cfd69184e52cd06f1a81f3b47566f8472;hpb=31607b38d9c0df726f9f100483f2a9d32ac4ceb9;p=ust.git diff --git a/libust/tracercore.h b/libust/tracercore.h index 3113383..52f75ec 100644 --- a/libust/tracercore.h +++ b/libust/tracercore.h @@ -42,8 +42,7 @@ struct ltt_traces { extern struct ltt_traces ltt_traces; /* Keep track of trap nesting inside LTT */ -//ust// DECLARE_PER_CPU(unsigned int, ltt_nesting); -extern unsigned int ltt_nesting; +extern __thread int ltt_nesting; typedef int (*ltt_run_filter_functor)(void *trace, uint16_t eID); //typedef int (*ltt_run_filter_functor)(void *, __u16); @@ -53,39 +52,4 @@ extern ltt_run_filter_functor ltt_run_filter; extern void ltt_filter_register(ltt_run_filter_functor func); extern void ltt_filter_unregister(void); -#if defined(CONFIG_LTT) && defined(CONFIG_LTT_ALIGNMENT) - -/* - * Calculate the offset needed to align the type. - * size_of_type must be non-zero. - */ -static inline unsigned int ltt_align(size_t align_drift, size_t size_of_type) -{ - size_t alignment = min(sizeof(void *), size_of_type); - return (alignment - align_drift) & (alignment - 1); -} -/* Default arch alignment */ -#define LTT_ALIGN - -static inline int ltt_get_alignment(void) -{ - return sizeof(void *); -} - -#else - -static inline unsigned int ltt_align(size_t align_drift, - size_t size_of_type) -{ - return 0; -} - -#define LTT_ALIGN __attribute__((packed)) - -static inline int ltt_get_alignment(void) -{ - return 0; -} -#endif /* defined(CONFIG_LTT) && defined(CONFIG_LTT_ALIGNMENT) */ - #endif /* UST_TRACERCORE_H */