projects
/
lttng-modules.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ring buffer mmap: remove compatibility code
[lttng-modules.git]
/
lttng-context-cgroup-ns.c
diff --git
a/lttng-context-cgroup-ns.c
b/lttng-context-cgroup-ns.c
index a7f4e80f6565068b824efc0a526a7864a81689b5..82245011952b3d32fb00bf3f1fa256ced5c8766f 100644
(file)
--- a/
lttng-context-cgroup-ns.c
+++ b/
lttng-context-cgroup-ns.c
@@
-15,13
+15,9
@@
#include <linux/cgroup.h>
#include <lttng-events.h>
#include <wrapper/ringbuffer/frontend_types.h>
#include <linux/cgroup.h>
#include <lttng-events.h>
#include <wrapper/ringbuffer/frontend_types.h>
-#include <wrapper/vmalloc.h>
-#include <wrapper/namespace.h>
#include <lttng-tracer.h>
#include <lttng-tracer.h>
-#if defined(CONFIG_CGROUPS) && \
- ((LINUX_VERSION_CODE >= KERNEL_VERSION(4,6,0)) || \
- LTTNG_UBUNTU_KERNEL_RANGE(4,4,0,0, 4,5,0,0))
+#if defined(CONFIG_CGROUPS)
static
size_t cgroup_ns_get_size(size_t offset)
static
size_t cgroup_ns_get_size(size_t offset)
@@
-48,7
+44,7
@@
void cgroup_ns_record(struct lttng_ctx_field *field,
* namespaces, just dereference the pointers.
*/
if (current->nsproxy)
* namespaces, just dereference the pointers.
*/
if (current->nsproxy)
- cgroup_ns_inum = current->nsproxy->cgroup_ns->
lttng_ns_
inum;
+ cgroup_ns_inum = current->nsproxy->cgroup_ns->
ns.
inum;
lib_ring_buffer_align_ctx(ctx, lttng_alignof(cgroup_ns_inum));
chan->ops->event_write(ctx, &cgroup_ns_inum, sizeof(cgroup_ns_inum));
lib_ring_buffer_align_ctx(ctx, lttng_alignof(cgroup_ns_inum));
chan->ops->event_write(ctx, &cgroup_ns_inum, sizeof(cgroup_ns_inum));
@@
-69,7
+65,7
@@
void cgroup_ns_get_value(struct lttng_ctx_field *field,
* namespaces, just dereference the pointers.
*/
if (current->nsproxy)
* namespaces, just dereference the pointers.
*/
if (current->nsproxy)
- cgroup_ns_inum = current->nsproxy->cgroup_ns->
lttng_ns_
inum;
+ cgroup_ns_inum = current->nsproxy->cgroup_ns->
ns.
inum;
value->s64 = cgroup_ns_inum;
}
value->s64 = cgroup_ns_inum;
}
@@
-97,7
+93,6
@@
int lttng_add_cgroup_ns_to_ctx(struct lttng_ctx **ctx)
field->record = cgroup_ns_record;
field->get_value = cgroup_ns_get_value;
lttng_context_update(*ctx);
field->record = cgroup_ns_record;
field->get_value = cgroup_ns_get_value;
lttng_context_update(*ctx);
- wrapper_vmalloc_sync_all();
return 0;
}
EXPORT_SYMBOL_GPL(lttng_add_cgroup_ns_to_ctx);
return 0;
}
EXPORT_SYMBOL_GPL(lttng_add_cgroup_ns_to_ctx);
This page took
0.025458 seconds
and
4
git commands to generate.