projects
/
lttng-modules.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
instrumentation: module: remove compatibility code
[lttng-modules.git]
/
instrumentation
/
events
/
lttng-module
/
module.h
diff --git
a/instrumentation/events/lttng-module/module.h
b/instrumentation/events/lttng-module/module.h
index 1dae9ad1d4b6275a05752521a1bc2f641b626b43..5299e17f54e55f87e99e1181cefd6dea057c1707 100644
(file)
--- a/
instrumentation/events/lttng-module/module.h
+++ b/
instrumentation/events/lttng-module/module.h
@@
-16,7
+16,6
@@
#define LTTNG_TRACE_MODULE_H
#include <probes/lttng-tracepoint-event.h>
#define LTTNG_TRACE_MODULE_H
#include <probes/lttng-tracepoint-event.h>
-#include <linux/version.h>
#ifdef CONFIG_MODULES
#ifdef CONFIG_MODULES
@@
-60,11
+59,7
@@
LTTNG_TRACEPOINT_EVENT_CLASS(module_refcnt,
TP_FIELDS(
ctf_integer_hex(unsigned long, ip, ip)
TP_FIELDS(
ctf_integer_hex(unsigned long, ip, ip)
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,19,0))
ctf_integer(int, refcnt, atomic_read(&mod->refcnt))
ctf_integer(int, refcnt, atomic_read(&mod->refcnt))
-#else
- ctf_integer(int, refcnt, __this_cpu_read(mod->refptr->incs) + __this_cpu_read(mod->refptr->decs))
-#endif
ctf_string(name, mod->name)
)
)
ctf_string(name, mod->name)
)
)
This page took
0.023356 seconds
and
4
git commands to generate.