Project

General

Profile

Bug #838 ยป ns_proxy.diff

Julien Desfossez, 09/30/2014 06:00 PM

View differences:

lttng-statedump-impl.c
#include <linux/wait.h>
#include <linux/mutex.h>
#include <linux/device.h>
#include <linux/vermagic.h>
#include "lttng-events.h"
#include "lttng-tracer.h"
......
* "namespaces: Use task_lock and not rcu to protect nsproxy"
* for details.
*/
#if (LINUX_VERSION_CODE < KERNEL_VERSION(3,17,0))
#if (LINUX_VERSION_CODE < KERNEL_VERSION(3,17,0) && !defined(UTS_UBUNTU_RELEASE_ABI))
rcu_read_lock();
proxy = task_nsproxy(p);
#else /* #if (LINUX_VERSION_CODE < KERNEL_VERSION(3,17,0)) */
......
trace_lttng_statedump_process_state(session,
p, type, mode, submode, status, NULL);
}
#if (LINUX_VERSION_CODE < KERNEL_VERSION(3,17,0))
#if (LINUX_VERSION_CODE < KERNEL_VERSION(3,17,0) && !defined(UTS_UBUNTU_RELEASE_ABI))
rcu_read_unlock();
#endif /* #if (LINUX_VERSION_CODE < KERNEL_VERSION(3,17,0)) */
}
    (1-1/1)