[ltt-dev] [PATCH] Fix missing set filter control owner in ltt_module_register()

Mathieu Desnoyers compudj at krystal.dyndns.org
Tue Nov 11 23:57:34 EST 2008


* Wei Yongjun (yjwei at cn.fujitsu.com) wrote:
> When register ltt filter control, the ltt_filter_control_owner does not be 
> set
> correctly. So if we register ltt filter control again, if will be also 
> success.
> This patch fix to set filter control owner in ltt_module_register().
>

woops, yes, you are right. I merged it by hand in lttng-tracer.patch.

Thanks !

Mathieu

>
> Signed-off-by: Wei Yongjun <yjwei at cn.fujitsu.com>
>
> diff --git a/ltt/ltt-tracer.c b/ltt/ltt-tracer.c
> index e86eb6d..8b91ca2 100644
> --- a/ltt/ltt-tracer.c
> +++ b/ltt/ltt-tracer.c
> @@ -95,6 +95,7 @@ int ltt_module_register(enum ltt_module_function name, 
> void *function,
> 		ltt_filter_control_functor =
> 			(int (*)(enum ltt_filter_control_msg,
> 			struct ltt_trace_struct *))function;
> +		ltt_filter_control_owner = owner;
> 		break;
> 	case LTT_FUNCTION_STATEDUMP:
> 		if (ltt_statedump_owner != NULL) {
>
>
>
> _______________________________________________
> 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