Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
From: mathieu.desnoyers@efficios.com (Mathieu Desnoyers)
Subject: [lttng-dev] [PATCH lttng-modules] Fix compilation of ext4 and	btrfs tracepoints on 2.6.40 kernels
Date: Thu, 10 Jan 2013 18:13:22 -0500	[thread overview]
Message-ID: <20130110231322.GA22647@Krystal> (raw)
In-Reply-To: <1357856648-32362-1-git-send-email-simon.marchi@polymtl.ca>

* Simon Marchi (simon.marchi at polymtl.ca) wrote:
> See f95480cf62e9acb42b74fce162544694b76c9704.
> 
> The new btrfs and ext4 tracepoints used 3.0.0 in the compilation logic.

merged, thanks!

Mathieu

> 
> Signed-off-by: Simon Marchi <simon.marchi at polymtl.ca>
> ---
>  instrumentation/events/lttng-module/btrfs.h |    4 ++--
>  instrumentation/events/lttng-module/ext4.h  |   14 +++++++-------
>  2 files changed, 9 insertions(+), 9 deletions(-)
> 
> diff --git a/instrumentation/events/lttng-module/btrfs.h b/instrumentation/events/lttng-module/btrfs.h
> index b0ff3c6..c01a6e0 100644
> --- a/instrumentation/events/lttng-module/btrfs.h
> +++ b/instrumentation/events/lttng-module/btrfs.h
> @@ -39,7 +39,7 @@ struct extent_state;
>  		{ BTRFS_SHARED_BLOCK_REF_KEY, 	"SHARED_BLOCK_REF" },	\
>  		{ BTRFS_SHARED_DATA_REF_KEY, 	"SHARED_DATA_REF" })
>  
> -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,0,0))
> +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,40))
>  #define __show_root_type(obj)						\
>  	__print_symbolic_u64(obj,					\
>  		{ BTRFS_ROOT_TREE_OBJECTID, 	"ROOT_TREE"	},	\
> @@ -166,7 +166,7 @@ DEFINE_EVENT(btrfs__inode, btrfs_inode_evict,
>  	TP_ARGS(inode)
>  )
>  
> -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,0,0))
> +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,40))
>  #define __show_map_type(type)						\
>  	__print_symbolic_u64(type,					\
>  		{ EXTENT_MAP_LAST_BYTE, "LAST_BYTE" 	},		\
> diff --git a/instrumentation/events/lttng-module/ext4.h b/instrumentation/events/lttng-module/ext4.h
> index 661a5a9..4bc4285 100644
> --- a/instrumentation/events/lttng-module/ext4.h
> +++ b/instrumentation/events/lttng-module/ext4.h
> @@ -305,7 +305,7 @@ DEFINE_EVENT(ext4__write_end, ext4_da_write_end,
>  	TP_ARGS(inode, pos, len, copied)
>  )
>  
> -#if (LINUX_VERSION_CODE < KERNEL_VERSION(3,0,0))
> +#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,40))
>  TRACE_EVENT(ext4_writepage,
>  	TP_PROTO(struct inode *inode, struct page *page),
>  
> @@ -581,7 +581,7 @@ DECLARE_EVENT_CLASS(ext4__page_op,
>  		  (unsigned long) __entry->index)
>  )
>  
> -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,0,0))
> +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,40))
>  DEFINE_EVENT(ext4__page_op, ext4_writepage,
>  
>  	TP_PROTO(struct page *page),
> @@ -702,7 +702,7 @@ DEFINE_EVENT(ext4__mb_new_pa, ext4_mb_new_group_pa,
>  
>  TRACE_EVENT(ext4_mb_release_inode_pa,
>  	TP_PROTO(
> -#if (LINUX_VERSION_CODE < KERNEL_VERSION(3,0,0))
> +#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,40))
>  #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37))
>  		 struct super_block *sb,
>  		 struct inode *inode,
> @@ -716,7 +716,7 @@ TRACE_EVENT(ext4_mb_release_inode_pa,
>  		 struct ext4_prealloc_space *pa,
>  		 unsigned long long block, unsigned int count),
>  
> -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,0,0))
> +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,40))
>  	TP_ARGS(pa, block, count),
>  #elif (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37))
>  	TP_ARGS(sb, inode, pa, block, count),
> @@ -735,7 +735,7 @@ TRACE_EVENT(ext4_mb_release_inode_pa,
>  	),
>  
>  	TP_fast_assign(
> -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,0,0))
> +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,40))
>  		tp_assign(dev, pa->pa_inode->i_sb->s_dev)
>  		tp_assign(ino, pa->pa_inode->i_ino)
>  #else
> @@ -762,7 +762,7 @@ TRACE_EVENT(ext4_mb_release_inode_pa,
>  
>  TRACE_EVENT(ext4_mb_release_group_pa,
>  
> -#if (LTTNG_KERNEL_RANGE(3,0,0, 3,3,0))
> +#if (LTTNG_KERNEL_RANGE(2,6,40, 3,3,0))
>  	TP_PROTO(struct ext4_prealloc_space *pa),
>  
>  	TP_ARGS(pa),
> @@ -794,7 +794,7 @@ TRACE_EVENT(ext4_mb_release_group_pa,
>  	),
>  
>  	TP_fast_assign(
> -#if (LTTNG_KERNEL_RANGE(3,0,0, 3,3,0))
> +#if (LTTNG_KERNEL_RANGE(2,6,40, 3,3,0))
>  		tp_assign(dev, pa->pa_inode->i_sb->s_dev)
>  #elif (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,36))
>  		tp_assign(dev, sb->s_dev)
> -- 
> 1.7.1
> 
> 
> _______________________________________________
> lttng-dev mailing list
> lttng-dev at lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

-- 
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com



      reply	other threads:[~2013-01-10 23:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-10 22:24 Simon Marchi
2013-01-10 23:13 ` Mathieu Desnoyers [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130110231322.GA22647@Krystal \
    --to=mathieu.desnoyers@efficios.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox