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

Wei Yongjun yjwei at cn.fujitsu.com
Mon Nov 10 19:58:49 EST 2008


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().


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) {






More information about the lttng-dev mailing list