From: Mathieu Desnoyers Date: Sat, 21 May 2011 16:27:50 +0000 (-0400) Subject: kprobes and ftrace support build fixes X-Git-Tag: v2.0-pre1~129 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=25f53c394f6bd3d6e9f04782b8427fc287a79084;p=lttng-modules.git kprobes and ftrace support build fixes Signed-off-by: Mathieu Desnoyers --- diff --git a/ltt-events.h b/ltt-events.h index 0b463897..015bbffd 100644 --- a/ltt-events.h +++ b/ltt-events.h @@ -281,6 +281,7 @@ int lttng_kprobes_register(const char *name, return -ENOSYS; } +static inline void lttng_kprobes_unregister(struct ltt_event *event) { } diff --git a/probes/lttng-ftrace.c b/probes/lttng-ftrace.c index f583ab6e..da6d79c1 100644 --- a/probes/lttng-ftrace.c +++ b/probes/lttng-ftrace.c @@ -146,7 +146,7 @@ void lttng_ftrace_unregister(struct ltt_event *event) wrapper_unregister_ftrace_function_probe(event->u.ftrace.symbol_name, <tng_ftrace_ops, event); kfree(event->u.ftrace.symbol_name); - kfree(desc->fields); + kfree(event->desc->fields); kfree(event->desc->name); kfree(event->desc); }