X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=libust%2Ftracercore.h;h=9673cca2a875cf6bf44e86fb4681957c04828948;hb=8d6300d3b3cb0219e1109e931a2219dbd812b24d;hp=2f3d7c4a3b9fc93c9a85e6eac544a889f00947c8;hpb=015d08b66af5ebd10665aa90f5426930e56c540d;p=ust.git diff --git a/libust/tracercore.h b/libust/tracercore.h index 2f3d7c4..9673cca 100644 --- a/libust/tracercore.h +++ b/libust/tracercore.h @@ -21,11 +21,9 @@ #ifndef UST_TRACERCORE_H #define UST_TRACERCORE_H -#include -//ust// #include - -/* ltt's root dir in debugfs */ -#define LTT_ROOT "ltt" +#include +#include +#include /* * All modifications of ltt_traces must be done by ltt-tracer.c, while holding @@ -34,8 +32,8 @@ * list. */ struct ltt_traces { - struct list_head setup_head; /* Pre-allocated traces list */ - struct list_head head; /* Allocated Traces list */ + struct cds_list_head setup_head; /* Pre-allocated traces list */ + struct cds_list_head head; /* Allocated Traces list */ unsigned int num_active_traces; /* Number of active traces */ } ____cacheline_aligned; @@ -52,39 +50,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 */