*/
#include "../../wrapper/ringbuffer/iterator.h"
+#include "../../wrapper/file.h"
#include <linux/jiffies.h>
#include <linux/delay.h>
#include <linux/module.h>
size_t count,
loff_t *ppos)
{
- struct inode *inode = filp->f_dentry->d_inode;
+ struct inode *inode = filp->lttng_f_dentry->d_inode;
struct lib_ring_buffer *buf = inode->i_private;
struct channel *chan = buf->backend.chan;
size_t count,
loff_t *ppos)
{
- struct inode *inode = filp->f_dentry->d_inode;
+ struct inode *inode = filp->lttng_f_dentry->d_inode;
struct channel *chan = inode->i_private;
const struct lib_ring_buffer_config *config = &chan->backend.config;
#include "wrapper/irq.h"
#include "wrapper/tracepoint.h"
#include "wrapper/genhd.h"
+#include "wrapper/file.h"
#ifdef CONFIG_LTTNG_HAS_LIST_IRQ
#include <linux/irq.h>
down_read(&mm->mmap_sem);
while (map) {
if (map->vm_file)
- ino = map->vm_file->f_dentry->d_inode->i_ino;
+ ino = map->vm_file->lttng_f_dentry->d_inode->i_ino;
else
ino = 0;
trace_lttng_statedump_vm_map(session, p, map, ino);
return get_unused_fd_flags(0);
}
+#define lttng_f_dentry f_path.dentry
+
#else /* #if LINUX_VERSION_CODE >= KERNEL_VERSION(3,19,0) */
static
return get_unused_fd();
}
+#define lttng_f_dentry f_dentry
+
#endif /* #else #if LINUX_VERSION_CODE >= KERNEL_VERSION(3,19,0) */
#endif /* _LTTNG_WRAPPER_FILE_H */