[ltt-dev] [PATCH v2 3/3] char *->const char * for channel_name in ltt_relay_create_channel

Mathieu Desnoyers compudj at krystal.dyndns.org
Tue Nov 11 23:55:45 EST 2008


* Zhaolei (zhaolei at cn.fujitsu.com) wrote:
> channel_name should not be changed in function.
> so we should define them as const char *
> 

Merged by hand in the different LTTng patches, thanks !

Mathieu

> Signed-off-by: Zhao Lei <zhaolei at cn.fujitsu.com>
> ---
>  include/linux/ltt-tracer.h |    2 +-
>  ltt/ltt-relay-locked.c     |    2 +-
>  ltt/ltt-relay.c            |    2 +-
>  3 files changed, 3 insertions(+), 3 deletions(-)
>  mode change 100644 => 100755 include/linux/ltt-tracer.h
>  mode change 100644 => 100755 ltt/ltt-relay-locked.c
>  mode change 100644 => 100755 ltt/ltt-relay.c
> 
> diff --git a/include/linux/ltt-tracer.h b/include/linux/ltt-tracer.h
> old mode 100644
> new mode 100755
> index c4ac07c..17e8343
> --- a/include/linux/ltt-tracer.h
> +++ b/include/linux/ltt-tracer.h
> @@ -174,7 +174,7 @@ struct ltt_trace_ops {
>  	void (*remove_dirs) (struct ltt_trace_struct *new_trace);
>  	int (*create_channel) (const char *trace_name,
>  				struct ltt_trace_struct *trace,
> -				struct dentry *dir, char *channel_name,
> +				struct dentry *dir, const char *channel_name,
>  				struct ltt_channel_struct **ltt_chan,
>  				unsigned int subbuf_size,
>  				unsigned int n_subbufs, int overwrite);
> diff --git a/ltt/ltt-relay-locked.c b/ltt/ltt-relay-locked.c
> old mode 100644
> new mode 100755
> index 0d9919a..7e6ef98
> --- a/ltt/ltt-relay-locked.c
> +++ b/ltt/ltt-relay-locked.c
> @@ -720,7 +720,7 @@ static void ltt_relay_destroy_buffer(struct ltt_channel_struct *ltt_chan,
>   */
>  static int ltt_relay_create_channel(const char *trace_name,
>  		struct ltt_trace_struct *trace, struct dentry *dir,
> -		char *channel_name, struct ltt_channel_struct **ltt_chan,
> +		const char *channel_name, struct ltt_channel_struct **ltt_chan,
>  		unsigned int subbuf_size, unsigned int n_subbufs,
>  		int overwrite)
>  {
> diff --git a/ltt/ltt-relay.c b/ltt/ltt-relay.c
> old mode 100644
> new mode 100755
> index 358374f..b2490bf
> --- a/ltt/ltt-relay.c
> +++ b/ltt/ltt-relay.c
> @@ -733,7 +733,7 @@ static void ltt_relay_destroy_buffer(struct ltt_channel_struct *ltt_chan,
>   */
>  static int ltt_relay_create_channel(const char *trace_name,
>  		struct ltt_trace_struct *trace, struct dentry *dir,
> -		char *channel_name, struct ltt_channel_struct **ltt_chan,
> +		const char *channel_name, struct ltt_channel_struct **ltt_chan,
>  		unsigned int subbuf_size, unsigned int n_subbufs,
>  		int overwrite)
>  {
> -- 
> 1.5.5.3
> 
> 
> 
> _______________________________________________
> ltt-dev mailing list
> ltt-dev at lists.casi.polymtl.ca
> http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
> 

-- 
Mathieu Desnoyers
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F  BA06 3F25 A8FE 3BAE 9A68




More information about the lttng-dev mailing list