X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=libust%2Ftracercore.h;h=2f3d7c4a3b9fc93c9a85e6eac544a889f00947c8;hb=d6322067aa791234d0d81e1a6b03b445635d5f65;hp=8dfffa13f2c0750ca2d9b9a0bf5e739bb9479a3e;hpb=8fc2d8db78e961acc2ce7fb8f2acea5f58edf408;p=ust.git diff --git a/libust/tracercore.h b/libust/tracercore.h index 8dfffa1..2f3d7c4 100644 --- a/libust/tracercore.h +++ b/libust/tracercore.h @@ -18,10 +18,10 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#ifndef LTT_CORE_H -#define LTT_CORE_H +#ifndef UST_TRACERCORE_H +#define UST_TRACERCORE_H -#include "kernelcompat.h" +#include //ust// #include /* ltt's root dir in debugfs */ @@ -41,14 +41,8 @@ struct ltt_traces { extern struct ltt_traces ltt_traces; -/* - * get dentry of ltt's root dir - */ -struct dentry *get_ltt_root(void); - /* 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); @@ -93,4 +87,4 @@ static inline int ltt_get_alignment(void) } #endif /* defined(CONFIG_LTT) && defined(CONFIG_LTT_ALIGNMENT) */ -#endif /* LTT_CORE_H */ +#endif /* UST_TRACERCORE_H */