Fix ftrace integration
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 24 May 2011 14:17:08 +0000 (10:17 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 24 May 2011 14:17:08 +0000 (10:17 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
probes/lttng-ftrace.c

index 7637e4b54dff1b1f1effda651ee3587e335ec03c..5b4cf2e7e153c0318e2ca8d485489bd46340e7aa 100644 (file)
@@ -118,7 +118,7 @@ int lttng_ftrace_register(const char *name,
        if (ret)
                goto error;
 
-       event->u.ftrace.symbol_name = kstrdup(name, GFP_KERNEL);
+       event->u.ftrace.symbol_name = kstrdup(symbol_name, GFP_KERNEL);
        if (!event->u.ftrace.symbol_name)
                goto name_error;
 
@@ -127,7 +127,7 @@ int lttng_ftrace_register(const char *name,
 
        ret = wrapper_register_ftrace_function_probe(event->u.ftrace.symbol_name,
                        &lttng_ftrace_ops, event);
-       if (ret)
+       if (ret < 0)
                goto register_error;
        return 0;
 
This page took 0.027662 seconds and 4 git commands to generate.