X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=instrumentation%2Fevents%2Flttng-module%2Fext3.h;h=32917fbeb12b2fbe188a8e4afe02180bd1d3f2e9;hb=7c68b363332170e4db100327ecc9e09b8a79cf29;hp=f1b4aa979226bd387e10c2f05cc938719582f076;hpb=83788d81815146024200cba5aa46c705a05d6b99;p=lttng-modules.git diff --git a/instrumentation/events/lttng-module/ext3.h b/instrumentation/events/lttng-module/ext3.h index f1b4aa97..32917fbe 100644 --- a/instrumentation/events/lttng-module/ext3.h +++ b/instrumentation/events/lttng-module/ext3.h @@ -5,6 +5,7 @@ #define _TRACE_EXT3_H #include +#include TRACE_EVENT(ext3_free_inode, TP_PROTO(struct inode *inode), @@ -24,8 +25,13 @@ TRACE_EVENT(ext3_free_inode, tp_assign(dev, inode->i_sb->s_dev) tp_assign(ino, inode->i_ino) tp_assign(mode, inode->i_mode) +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,5,0)) + tp_assign(uid, i_uid_read(inode)) + tp_assign(gid, i_gid_read(inode)) +#else tp_assign(uid, inode->i_uid) tp_assign(gid, inode->i_gid) +#endif tp_assign(blocks, inode->i_blocks) ),