From: Mathieu Desnoyers Date: Tue, 23 Nov 2010 23:10:41 +0000 (-0500) Subject: update ltt-events X-Git-Tag: v2.0-pre1~220 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=92e9481942e5beac764f08d7c25b37fd555b3f4b;p=lttng-modules.git update ltt-events Signed-off-by: Mathieu Desnoyers --- diff --git a/ltt-events.c b/ltt-events.c index 688d7f3b..96c90c4c 100644 --- a/ltt-events.c +++ b/ltt-events.c @@ -150,10 +150,23 @@ static int __init ltt_events_init(void) events_cache = KMEM_CACHE(ltt_event, 0); if (!events_cache) return -ENOMEM; + + /* TODO: show ABI to userspace */ + return 0; } static void __exit ltt_events_exit(void) { + struct ltt_session *session, *tmpsession; + + /* TODO: hide ABI from userspace, wait for callers to release refs. */ + + list_for_each_entry_safe(session, tmpsession, &sessions, list) + ltt_session_destroy(session); kmem_cache_destroy(events_cache); } + +MODULE_LICENSE("GPL and additional rights"); +MODULE_AUTHOR("Mathieu Desnoyers "); +MODULE_DESCRIPTION("LTTng Events");