Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
* [ltt-dev] [PATCH] Change to use GET_CHANNEL_INDEX(metadata) to get index of metadata
@ 2008-10-22 10:25 Zhaolei
  2008-10-24 14:32 ` Mathieu Desnoyers
  0 siblings, 1 reply; 2+ messages in thread
From: Zhaolei @ 2008-10-22 10:25 UTC (permalink / raw)


It works faster.

Signed-off-by: Zhao Lei <zhaolei at cn.fujitsu.com>
---
 ltt/ltt-marker-control.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ltt/ltt-marker-control.c b/ltt/ltt-marker-control.c
index 28da488..cbdd4c2 100644
--- a/ltt/ltt-marker-control.c
+++ b/ltt/ltt-marker-control.c
@@ -478,7 +478,7 @@ static int do_set_channel(const char *name, const char *pname,
 	/*
 	 * Do not let userspace mess with core markers.
 	 */
-	if (user && get_channel_index_from_name("metadata") == new_channel)
+	if (user && GET_CHANNEL_INDEX(metadata) == new_channel)
 		return -EPERM;
 
 	ltt_lock_traces();
-- 
1.5.5.3





^ permalink raw reply	[flat|nested] 2+ messages in thread

* [ltt-dev] [PATCH] Change to use GET_CHANNEL_INDEX(metadata) to get index of metadata
  2008-10-22 10:25 [ltt-dev] [PATCH] Change to use GET_CHANNEL_INDEX(metadata) to get index of metadata Zhaolei
@ 2008-10-24 14:32 ` Mathieu Desnoyers
  0 siblings, 0 replies; 2+ messages in thread
From: Mathieu Desnoyers @ 2008-10-24 14:32 UTC (permalink / raw)


* Zhaolei (zhaolei at cn.fujitsu.com) wrote:
> It works faster.
> 
Merged, thanks !

Mathieu

> Signed-off-by: Zhao Lei <zhaolei at cn.fujitsu.com>
> ---
>  ltt/ltt-marker-control.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/ltt/ltt-marker-control.c b/ltt/ltt-marker-control.c
> index 28da488..cbdd4c2 100644
> --- a/ltt/ltt-marker-control.c
> +++ b/ltt/ltt-marker-control.c
> @@ -478,7 +478,7 @@ static int do_set_channel(const char *name, const char *pname,
>  	/*
>  	 * Do not let userspace mess with core markers.
>  	 */
> -	if (user && get_channel_index_from_name("metadata") == new_channel)
> +	if (user && GET_CHANNEL_INDEX(metadata) == new_channel)
>  		return -EPERM;
>  
>  	ltt_lock_traces();
> -- 
> 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




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-10-24 14:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-22 10:25 [ltt-dev] [PATCH] Change to use GET_CHANNEL_INDEX(metadata) to get index of metadata Zhaolei
2008-10-24 14:32 ` Mathieu Desnoyers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox