projects
/
lttng-modules.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove compatibility code for lttng-tracepoint
[lttng-modules.git]
/
lttng-events.h
diff --git
a/lttng-events.h
b/lttng-events.h
index 05309174ab67635adaf94d47dab93b50aa8b17fd..697753074424adafb676fe8178ef55456fba39fd 100644
(file)
--- a/
lttng-events.h
+++ b/
lttng-events.h
@@
-156,13
+156,8
@@
union lttng_ctx_value {
* lttng_ctx_field because cpu hotplug needs fixed-location addresses.
*/
struct lttng_perf_counter_field {
* lttng_ctx_field because cpu hotplug needs fixed-location addresses.
*/
struct lttng_perf_counter_field {
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,10,0))
struct lttng_cpuhp_node cpuhp_prepare;
struct lttng_cpuhp_node cpuhp_online;
struct lttng_cpuhp_node cpuhp_prepare;
struct lttng_cpuhp_node cpuhp_online;
-#else
- struct notifier_block nb;
- int hp_enable;
-#endif
struct perf_event_attr *attr;
struct perf_event **e; /* per-cpu array */
};
struct perf_event_attr *attr;
struct perf_event **e; /* per-cpu array */
};
@@
-731,8
+726,7
@@
int lttng_add_cgroup_ns_to_ctx(struct lttng_ctx **ctx)
}
#endif
}
#endif
-#if defined(CONFIG_IPC_NS) && \
- (LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0))
+#if defined(CONFIG_IPC_NS)
int lttng_add_ipc_ns_to_ctx(struct lttng_ctx **ctx);
#else
static inline
int lttng_add_ipc_ns_to_ctx(struct lttng_ctx **ctx);
#else
static inline
@@
-742,8
+736,7
@@
int lttng_add_ipc_ns_to_ctx(struct lttng_ctx **ctx)
}
#endif
}
#endif
-#if !defined(LTTNG_MNT_NS_MISSING_HEADER) && \
- (LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0))
+#if !defined(LTTNG_MNT_NS_MISSING_HEADER)
int lttng_add_mnt_ns_to_ctx(struct lttng_ctx **ctx);
#else
static inline
int lttng_add_mnt_ns_to_ctx(struct lttng_ctx **ctx);
#else
static inline
@@
-753,8
+746,7
@@
int lttng_add_mnt_ns_to_ctx(struct lttng_ctx **ctx)
}
#endif
}
#endif
-#if defined(CONFIG_NET_NS) && \
- (LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0))
+#if defined(CONFIG_NET_NS)
int lttng_add_net_ns_to_ctx(struct lttng_ctx **ctx);
#else
static inline
int lttng_add_net_ns_to_ctx(struct lttng_ctx **ctx);
#else
static inline
@@
-764,8
+756,7
@@
int lttng_add_net_ns_to_ctx(struct lttng_ctx **ctx)
}
#endif
}
#endif
-#if defined(CONFIG_PID_NS) && \
- (LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0))
+#if defined(CONFIG_PID_NS)
int lttng_add_pid_ns_to_ctx(struct lttng_ctx **ctx);
#else
static inline
int lttng_add_pid_ns_to_ctx(struct lttng_ctx **ctx);
#else
static inline
@@
-775,8
+766,7
@@
int lttng_add_pid_ns_to_ctx(struct lttng_ctx **ctx)
}
#endif
}
#endif
-#if defined(CONFIG_USER_NS) && \
- (LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0))
+#if defined(CONFIG_USER_NS)
int lttng_add_user_ns_to_ctx(struct lttng_ctx **ctx);
#else
static inline
int lttng_add_user_ns_to_ctx(struct lttng_ctx **ctx);
#else
static inline
@@
-786,8
+776,7
@@
int lttng_add_user_ns_to_ctx(struct lttng_ctx **ctx)
}
#endif
}
#endif
-#if defined(CONFIG_UTS_NS) && \
- (LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0))
+#if defined(CONFIG_UTS_NS)
int lttng_add_uts_ns_to_ctx(struct lttng_ctx **ctx);
#else
static inline
int lttng_add_uts_ns_to_ctx(struct lttng_ctx **ctx);
#else
static inline
This page took
0.024646 seconds
and
4
git commands to generate.