ext3 instrumentation: fix of assignment code conversion
authorAndrew Gabbasov <andrew_gabbasov@mentor.com>
Sun, 25 Nov 2012 21:12:46 +0000 (16:12 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sun, 25 Nov 2012 21:12:46 +0000 (16:12 -0500)
Due to specifics of handling assignment code in lttng-modules,
plain code in TP_fast_assign (outside tp_* macros) will not be reached.
Everything should be enclosed into tp_* fragments.

Signed-off-by: Andrew Gabbasov <andrew_gabbasov@mentor.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
instrumentation/events/lttng-module/ext3.h

index de80df952734c44487a985aab2f9dcd7d4697a27..f1b4aa979226bd387e10c2f05cc938719582f076 100644 (file)
@@ -6,12 +6,6 @@
 
 #include <linux/tracepoint.h>
 
-#ifndef _TRACE_EXT3_DEF
-#define _TRACE_EXT3_DEF
-static struct dentry *dentry;
-#endif
-
-
 TRACE_EVENT(ext3_free_inode,
        TP_PROTO(struct inode *inode),
 
@@ -441,12 +435,10 @@ TRACE_EVENT(ext3_sync_file_enter,
        ),
 
        TP_fast_assign(
-               dentry = file->f_path.dentry;
-
-               tp_assign(dev, dentry->d_inode->i_sb->s_dev)
-               tp_assign(ino, dentry->d_inode->i_ino)
+               tp_assign(dev, file->f_path.dentry->d_inode->i_sb->s_dev)
+               tp_assign(ino, file->f_path.dentry->d_inode->i_ino)
                tp_assign(datasync, datasync)
-               tp_assign(parent, dentry->d_parent->d_inode->i_ino)
+               tp_assign(parent, file->f_path.dentry->d_parent->d_inode->i_ino)
        ),
 
        TP_printk("dev %d,%d ino %lu parent %ld datasync %d ",
This page took 0.026264 seconds and 4 git commands to generate.