projects
/
ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
remove some unused code
[ust.git]
/
include
/
ust
/
tracepoint.h
diff --git
a/include/ust/tracepoint.h
b/include/ust/tracepoint.h
index b0ccbada544440473ef1216b9912c37e0a1e351f..7db6ed3065e8f9e4316d6b5bbcff4b11f379bd71 100644
(file)
--- a/
include/ust/tracepoint.h
+++ b/
include/ust/tracepoint.h
@@
-1,5
+1,5
@@
-#ifndef _
LINUX
_TRACEPOINT_H
-#define _
LINUX
_TRACEPOINT_H
+#ifndef _
UST
_TRACEPOINT_H
+#define _
UST
_TRACEPOINT_H
/*
* Copyright (C) 2008 Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
/*
* Copyright (C) 2008 Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
@@
-48,8
+48,8
@@
struct tracepoint {
* Keep in sync with vmlinux.lds.h.
*/
* Keep in sync with vmlinux.lds.h.
*/
-#define TP
PROTO(args...)
args
-#define TP
ARGS(args...)
args
+#define TP
_PROTO(args...)
args
+#define TP
_ARGS(args...)
args
#define CONFIG_TRACEPOINTS
#ifdef CONFIG_TRACEPOINTS
#define CONFIG_TRACEPOINTS
#ifdef CONFIG_TRACEPOINTS
@@
-77,11
+77,11
@@
struct tracepoint {
if (!generic) { \
if (unlikely(imv_read(__tracepoint_##name.state))) \
__DO_TRACE(&__tracepoint_##name, \
if (!generic) { \
if (unlikely(imv_read(__tracepoint_##name.state))) \
__DO_TRACE(&__tracepoint_##name, \
- TP
PROTO(proto), TPARGS(args));
\
+ TP
_PROTO(proto), TP_ARGS(args));
\
} else { \
if (unlikely(_imv_read(__tracepoint_##name.state))) \
__DO_TRACE(&__tracepoint_##name, \
} else { \
if (unlikely(_imv_read(__tracepoint_##name.state))) \
__DO_TRACE(&__tracepoint_##name, \
- TP
PROTO(proto), TPARGS(args));
\
+ TP
_PROTO(proto), TP_ARGS(args));
\
} \
} while (0)
} \
} while (0)
@@
-99,11
+99,11
@@
struct tracepoint {
extern struct tracepoint __tracepoint_##name; \
static inline void trace_##name(proto) \
{ \
extern struct tracepoint __tracepoint_##name; \
static inline void trace_##name(proto) \
{ \
- __CHECK_TRACE(name, 0, TP
PROTO(proto), TPARGS(args));
\
+ __CHECK_TRACE(name, 0, TP
_PROTO(proto), TP_ARGS(args));
\
} \
static inline void _trace_##name(proto) \
{ \
} \
static inline void _trace_##name(proto) \
{ \
- __CHECK_TRACE(name, 1, TP
PROTO(proto), TPARGS(args));
\
+ __CHECK_TRACE(name, 1, TP
_PROTO(proto), TP_ARGS(args));
\
} \
static inline int register_trace_##name(void (*probe)(proto)) \
{ \
} \
static inline int register_trace_##name(void (*probe)(proto)) \
{ \
@@
-121,11
+121,6
@@
struct tracepoint {
__attribute__((section("__tracepoints"), aligned(32))) = \
{ __tpstrtab_##name, 0, NULL }
__attribute__((section("__tracepoints"), aligned(32))) = \
{ __tpstrtab_##name, 0, NULL }
-#define EXPORT_TRACEPOINT_SYMBOL_GPL(name) \
- EXPORT_SYMBOL_GPL(__tracepoint_##name)
-#define EXPORT_TRACEPOINT_SYMBOL(name) \
- EXPORT_SYMBOL(__tracepoint_##name)
-
extern void tracepoint_update_probe_range(struct tracepoint *begin,
struct tracepoint *end);
extern void tracepoint_update_probe_range(struct tracepoint *begin,
struct tracepoint *end);
@@
-200,6
+195,7
@@
struct tracepoint_lib {
extern int tracepoint_register_lib(struct tracepoint *tracepoints_start,
int tracepoints_count);
extern int tracepoint_register_lib(struct tracepoint *tracepoints_start,
int tracepoints_count);
+extern int tracepoint_unregister_lib(struct tracepoint *tracepoints_start);
#define TRACEPOINT_LIB \
extern struct tracepoint __start___tracepoints[] __attribute__((weak, visibility("hidden"))); \
#define TRACEPOINT_LIB \
extern struct tracepoint __start___tracepoints[] __attribute__((weak, visibility("hidden"))); \
@@
-208,6
+204,11
@@
extern int tracepoint_register_lib(struct tracepoint *tracepoints_start,
{ \
tracepoint_register_lib(__start___tracepoints, \
(((long)__stop___tracepoints)-((long)__start___tracepoints))/sizeof(struct tracepoint)); \
{ \
tracepoint_register_lib(__start___tracepoints, \
(((long)__stop___tracepoints)-((long)__start___tracepoints))/sizeof(struct tracepoint)); \
+ } \
+ \
+ static void __attribute__((destructor)) __tracepoints__destroy(void) \
+ { \
+ tracepoint_unregister_lib(__start___tracepoints); \
}
}
-#endif
+#endif
/* _UST_TRACEPOINT_H */
This page took
0.024254 seconds
and
4
git commands to generate.