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-ipc-ns.c
diff --git
a/lttng-context-ipc-ns.c
b/lttng-context-ipc-ns.c
index 09d8f2e3c2fb70439b5d9e3e9a2ee586593a51e0..13470f50b96d5fb70f679ec814d24701bd526bd5 100644
(file)
--- a/
lttng-context-ipc-ns.c
+++ b/
lttng-context-ipc-ns.c
@@
-13,13
+13,11
@@
#include <linux/slab.h>
#include <linux/sched.h>
#include <linux/ipc_namespace.h>
#include <linux/slab.h>
#include <linux/sched.h>
#include <linux/ipc_namespace.h>
-#include <lttng-events.h>
-#include <wrapper/ringbuffer/frontend_types.h>
-#include <wrapper/namespace.h>
-#include <lttng-tracer.h>
+#include <lttng/lttng-events.h>
+#include <ringbuffer/frontend_types.h>
+#include <lttng/lttng-tracer.h>
-#if defined(CONFIG_IPC_NS) && \
- (LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0))
+#if defined(CONFIG_IPC_NS)
static
size_t ipc_ns_get_size(size_t offset)
static
size_t ipc_ns_get_size(size_t offset)
@@
-46,7
+44,7
@@
void ipc_ns_record(struct lttng_ctx_field *field,
* 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;
lib_ring_buffer_align_ctx(ctx, lttng_alignof(ipc_ns_inum));
chan->ops->event_write(ctx, &ipc_ns_inum, sizeof(ipc_ns_inum));
lib_ring_buffer_align_ctx(ctx, lttng_alignof(ipc_ns_inum));
chan->ops->event_write(ctx, &ipc_ns_inum, sizeof(ipc_ns_inum));
@@
-67,7
+65,7
@@
void ipc_ns_get_value(struct lttng_ctx_field *field,
* 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->s64 = ipc_ns_inum;
}
value->s64 = ipc_ns_inum;
}
This page took
0.023743 seconds
and
4
git commands to generate.