X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=probes%2Flttng-kprobes.c;h=9dd3569b4a794d59f5a7cbec2a060fb1d3cd9a6f;hb=edeb3137b6064818f310567ded5c60e442a933e6;hp=650144cbe0cdc4793c91bf46825f74a5f9ae042b;hpb=30f18bf0814f797f13837967fbc4617796f1742b;p=lttng-modules.git diff --git a/probes/lttng-kprobes.c b/probes/lttng-kprobes.c index 650144cb..9dd3569b 100644 --- a/probes/lttng-kprobes.c +++ b/probes/lttng-kprobes.c @@ -136,12 +136,17 @@ EXPORT_SYMBOL_GPL(lttng_kprobes_register); void lttng_kprobes_unregister(struct ltt_event *event) { unregister_kprobe(&event->u.kprobe.kp); +} +EXPORT_SYMBOL_GPL(lttng_kprobes_unregister); + +void lttng_kprobes_destroy_private(struct ltt_event *event) +{ kfree(event->u.kprobe.symbol_name); kfree(event->desc->fields); kfree(event->desc->name); kfree(event->desc); } -EXPORT_SYMBOL_GPL(lttng_kprobes_unregister); +EXPORT_SYMBOL_GPL(lttng_kprobes_destroy_private); MODULE_LICENSE("GPL and additional rights"); MODULE_AUTHOR("Mathieu Desnoyers");