X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=instrumentation%2Fevents%2Flttng-module%2Fext4.h;h=13a32865e26ad260c302c93934633a9f9317d43c;hb=4baabfe378c1ed249d43d70275854788474fb714;hp=820cd9f398a2825ff67286e88beaba1777e92b60;hpb=ac42bcf7803cacadd1e239fb026510a3a8527638;p=lttng-modules.git diff --git a/instrumentation/events/lttng-module/ext4.h b/instrumentation/events/lttng-module/ext4.h index 820cd9f3..13a32865 100644 --- a/instrumentation/events/lttng-module/ext4.h +++ b/instrumentation/events/lttng-module/ext4.h @@ -547,6 +547,20 @@ LTTNG_TRACEPOINT_EVENT(ext4_mb_release_group_pa, ) ) +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,9,0)) +LTTNG_TRACEPOINT_EVENT(ext4_discard_preallocations, + TP_PROTO(struct inode *inode, unsigned int len, unsigned int needed), + + TP_ARGS(inode, len, needed), + + TP_FIELDS( + ctf_integer(dev_t, dev, inode->i_sb->s_dev) + ctf_integer(ino_t, ino, inode->i_ino) + ctf_integer(unsigned int, len, len) + ctf_integer(unsigned int, needed, needed) + ) +) +#else LTTNG_TRACEPOINT_EVENT(ext4_discard_preallocations, TP_PROTO(struct inode *inode), @@ -557,6 +571,7 @@ LTTNG_TRACEPOINT_EVENT(ext4_discard_preallocations, ctf_integer(ino_t, ino, inode->i_ino) ) ) +#endif LTTNG_TRACEPOINT_EVENT(ext4_mb_discard_preallocations, TP_PROTO(struct super_block *sb, int needed),