projects
/
ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
convert ltt_nesting to a per_thread variable, and access it with volatile access
[ust.git]
/
libust
/
tracercore.h
diff --git
a/libust/tracercore.h
b/libust/tracercore.h
index 5a088db65e4e2c5c4e81ec91ecb640da7897aed5..2f3d7c4a3b9fc93c9a85e6eac544a889f00947c8 100644
(file)
--- a/
libust/tracercore.h
+++ b/
libust/tracercore.h
@@
-18,8
+18,8
@@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#ifndef
LTT_
CORE_H
-#define
LTT_
CORE_H
+#ifndef
UST_TRACER
CORE_H
+#define
UST_TRACER
CORE_H
#include <ust/kernelcompat.h>
//ust// #include <linux/percpu.h>
#include <ust/kernelcompat.h>
//ust// #include <linux/percpu.h>
@@
-41,14
+41,8
@@
struct ltt_traces {
extern struct ltt_traces 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 */
/* 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);
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 /* defined(CONFIG_LTT) && defined(CONFIG_LTT_ALIGNMENT) */
-#endif /*
LTT_
CORE_H */
+#endif /*
UST_TRACER
CORE_H */
This page took
0.023244 seconds
and
4
git commands to generate.