projects
/
lttng-modules.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: ring_buffer_frontend.c: init read timer with uninitialized flags
[lttng-modules.git]
/
probes
/
lttng-probe-lock.c
diff --git
a/probes/lttng-probe-lock.c
b/probes/lttng-probe-lock.c
index 16ac0e7c89c6b881c168d564ab94a5c5695a2ee4..4e59da851a69bb50dbc2f62d8331195dfd0975db 100644
(file)
--- a/
probes/lttng-probe-lock.c
+++ b/
probes/lttng-probe-lock.c
@@
-22,22
+22,34
@@
*/
#include <linux/module.h>
*/
#include <linux/module.h>
+#include <linux/version.h>
+#include <lttng-tracer.h>
/*
* Create the tracepoint static inlines from the kernel to validate that our
* trace event macros match the kernel we run on.
*/
/*
* Create the tracepoint static inlines from the kernel to validate that our
* trace event macros match the kernel we run on.
*/
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33))
#include <trace/events/lock.h>
#include <trace/events/lock.h>
+#else
+#include <trace/events/lockdep.h>
+#endif
+
+#include <wrapper/tracepoint.h>
/*
* Create LTTng tracepoint probes.
*/
#define LTTNG_PACKAGE_BUILD
#define CREATE_TRACE_POINTS
/*
* Create LTTng tracepoint probes.
*/
#define LTTNG_PACKAGE_BUILD
#define CREATE_TRACE_POINTS
-#define TRACE_INCLUDE_PATH
../
instrumentation/events/lttng-module
+#define TRACE_INCLUDE_PATH instrumentation/events/lttng-module
-#include
"../instrumentation/events/lttng-module/lock.h"
+#include
<instrumentation/events/lttng-module/lock.h>
MODULE_LICENSE("GPL and additional rights");
MODULE_LICENSE("GPL and additional rights");
-MODULE_AUTHOR("Wade Farnsworth <wade_farnsworth@mentor.com>");
+MODULE_AUTHOR("Wade Farnsworth <wade_farnsworth@mentor.com>
and Andrew Gabbasov <andrew_gabbasov@mentor.com>
");
MODULE_DESCRIPTION("LTTng lock probes");
MODULE_DESCRIPTION("LTTng lock probes");
+MODULE_VERSION(__stringify(LTTNG_MODULES_MAJOR_VERSION) "."
+ __stringify(LTTNG_MODULES_MINOR_VERSION) "."
+ __stringify(LTTNG_MODULES_PATCHLEVEL_VERSION)
+ LTTNG_MODULES_EXTRAVERSION);
This page took
0.023318 seconds
and
4
git commands to generate.