projects
/
lttng-modules.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move headers under include/
[lttng-modules.git]
/
lttng-context-mnt-ns.c
diff --git
a/lttng-context-mnt-ns.c
b/lttng-context-mnt-ns.c
index 029401396cf24a73122be447a549e31b078caefc..7a2e06052e396c5ab2a3dddc172672697880e9fe 100644
(file)
--- a/
lttng-context-mnt-ns.c
+++ b/
lttng-context-mnt-ns.c
@@
-12,15
+12,12
@@
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/sched.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/sched.h>
-#include <lttng-events.h>
+#include <lttng
/lttng
-events.h>
#include <linux/nsproxy.h>
#include <linux/nsproxy.h>
-#include <wrapper/ringbuffer/frontend_types.h>
-#include <wrapper/vmalloc.h>
-#include <wrapper/namespace.h>
-#include <lttng-tracer.h>
+#include <ringbuffer/frontend_types.h>
+#include <lttng/lttng-tracer.h>
-#if !defined(LTTNG_MNT_NS_MISSING_HEADER) && \
- (LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0))
+#if !defined(LTTNG_MNT_NS_MISSING_HEADER)
#include <../fs/mount.h>
#include <../fs/mount.h>
@@
-49,7
+46,7
@@
void mnt_ns_record(struct lttng_ctx_field *field,
* namespaces, just dereference the pointers.
*/
if (current->nsproxy)
* namespaces, just dereference the pointers.
*/
if (current->nsproxy)
- mnt_ns_inum = current->nsproxy->mnt_ns->
lttng_ns_
inum;
+ mnt_ns_inum = current->nsproxy->mnt_ns->
ns.
inum;
lib_ring_buffer_align_ctx(ctx, lttng_alignof(mnt_ns_inum));
chan->ops->event_write(ctx, &mnt_ns_inum, sizeof(mnt_ns_inum));
lib_ring_buffer_align_ctx(ctx, lttng_alignof(mnt_ns_inum));
chan->ops->event_write(ctx, &mnt_ns_inum, sizeof(mnt_ns_inum));
@@
-70,7
+67,7
@@
void mnt_ns_get_value(struct lttng_ctx_field *field,
* namespaces, just dereference the pointers.
*/
if (current->nsproxy)
* namespaces, just dereference the pointers.
*/
if (current->nsproxy)
- mnt_ns_inum = current->nsproxy->mnt_ns->
lttng_ns_
inum;
+ mnt_ns_inum = current->nsproxy->mnt_ns->
ns.
inum;
value->s64 = mnt_ns_inum;
}
value->s64 = mnt_ns_inum;
}
@@
-98,7
+95,6
@@
int lttng_add_mnt_ns_to_ctx(struct lttng_ctx **ctx)
field->record = mnt_ns_record;
field->get_value = mnt_ns_get_value;
lttng_context_update(*ctx);
field->record = mnt_ns_record;
field->get_value = mnt_ns_get_value;
lttng_context_update(*ctx);
- wrapper_vmalloc_sync_all();
return 0;
}
EXPORT_SYMBOL_GPL(lttng_add_mnt_ns_to_ctx);
return 0;
}
EXPORT_SYMBOL_GPL(lttng_add_mnt_ns_to_ctx);
This page took
0.023393 seconds
and
4
git commands to generate.