projects
/
lttng-modules.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix: kallsyms wrapper on CONFIG_PPC64_ELF_ABI_V1
[lttng-modules.git]
/
src
/
lttng-context-net-ns.c
diff --git
a/src/lttng-context-net-ns.c
b/src/lttng-context-net-ns.c
index 3e3c3944a48e5e0b9af849da646a7f0cf2307396..ad6d6d2af24a32296e06e5d67bcdaa6f18e082f1 100644
(file)
--- a/
src/lttng-context-net-ns.c
+++ b/
src/lttng-context-net-ns.c
@@
-9,6
+9,8
@@
*
*/
*
*/
+#ifdef CONFIG_NET_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>
@@
-18,12
+20,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_NET_NS) && \
- (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(3,8,0))
-
static
size_t net_ns_get_size(void *priv, struct lttng_kernel_probe_ctx *probe_ctx, size_t offset)
{
static
size_t net_ns_get_size(void *priv, struct lttng_kernel_probe_ctx *probe_ctx, size_t offset)
{
@@
-49,7
+47,7
@@
void net_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)
- net_ns_inum = current->nsproxy->net_ns->
lttng_ns_
inum;
+ net_ns_inum = current->nsproxy->net_ns->
ns.
inum;
chan->ops->event_write(ctx, &net_ns_inum, sizeof(net_ns_inum), lttng_alignof(net_ns_inum));
}
chan->ops->event_write(ctx, &net_ns_inum, sizeof(net_ns_inum), lttng_alignof(net_ns_inum));
}
@@
-69,7
+67,7
@@
void net_ns_get_value(void *priv,
* namespaces, just dereference the pointers.
*/
if (current->nsproxy)
* namespaces, just dereference the pointers.
*/
if (current->nsproxy)
- net_ns_inum = current->nsproxy->net_ns->
lttng_ns_
inum;
+ net_ns_inum = current->nsproxy->net_ns->
ns.
inum;
value->u.s64 = net_ns_inum;
}
value->u.s64 = net_ns_inum;
}
This page took
0.041658 seconds
and
4
git commands to generate.