projects
/
lttng-modules.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Drop support for kernels < 4.4 from lttng-statedump instrumentation
[lttng-modules.git]
/
src
/
lttng-context-ipc-ns.c
diff --git
a/src/lttng-context-ipc-ns.c
b/src/lttng-context-ipc-ns.c
index 80ef40c92b9d509f7cf9d534705565d33d936f99..28108a0f543d6fab46e806c7d57ef20003e49760 100644
(file)
--- a/
src/lttng-context-ipc-ns.c
+++ b/
src/lttng-context-ipc-ns.c
@@
-9,6
+9,8
@@
*
*/
*
*/
+#ifdef CONFIG_IPC_NS
+
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/sched.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/sched.h>
@@
-17,12
+19,8
@@
#include <lttng/events-internal.h>
#include <ringbuffer/frontend_types.h>
#include <wrapper/vmalloc.h>
#include <lttng/events-internal.h>
#include <ringbuffer/frontend_types.h>
#include <wrapper/vmalloc.h>
-#include <wrapper/namespace.h>
#include <lttng/tracer.h>
#include <lttng/tracer.h>
-#if defined(CONFIG_IPC_NS) && \
- (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(3,8,0))
-
static
size_t ipc_ns_get_size(void *priv, struct lttng_kernel_probe_ctx *probe_ctx, size_t offset)
{
static
size_t ipc_ns_get_size(void *priv, struct lttng_kernel_probe_ctx *probe_ctx, size_t offset)
{
@@
-48,7
+46,7
@@
void ipc_ns_record(void *priv, struct lttng_kernel_probe_ctx *probe_ctx,
* namespaces, just dereference the pointers.
*/
if (current->nsproxy)
* namespaces, just dereference the pointers.
*/
if (current->nsproxy)
- ipc_ns_inum = current->nsproxy->ipc_ns->
lttng_ns_
inum;
+ ipc_ns_inum = current->nsproxy->ipc_ns->
ns.
inum;
chan->ops->event_write(ctx, &ipc_ns_inum, sizeof(ipc_ns_inum), lttng_alignof(ipc_ns_inum));
}
chan->ops->event_write(ctx, &ipc_ns_inum, sizeof(ipc_ns_inum), lttng_alignof(ipc_ns_inum));
}
@@
-68,7
+66,7
@@
void ipc_ns_get_value(void *priv,
* namespaces, just dereference the pointers.
*/
if (current->nsproxy)
* namespaces, just dereference the pointers.
*/
if (current->nsproxy)
- ipc_ns_inum = current->nsproxy->ipc_ns->
lttng_ns_
inum;
+ ipc_ns_inum = current->nsproxy->ipc_ns->
ns.
inum;
value->u.s64 = ipc_ns_inum;
}
value->u.s64 = ipc_ns_inum;
}
This page took
0.034917 seconds
and
4
git commands to generate.