All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH lttng-modules] Add load/unload messages to kernel log
@ 2016-12-21 22:55 Michael Jeanson
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Jeanson @ 2016-12-21 22:55 UTC (permalink / raw)
  To: lttng-dev

Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
---
 lttng-events.c | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/lttng-events.c b/lttng-events.c
index 176908b..eeaac08 100644
--- a/lttng-events.c
+++ b/lttng-events.c
@@ -2677,6 +2677,12 @@ static int __init lttng_events_init(void)
 	ret = lttng_logger_init();
 	if (ret)
 		goto error_logger;
+	printk(KERN_NOTICE "lttng: Loaded modules v%s.%s.%s%s (%s)\n",
+		__stringify(LTTNG_MODULES_MAJOR_VERSION),
+		__stringify(LTTNG_MODULES_MINOR_VERSION),
+		__stringify(LTTNG_MODULES_PATCHLEVEL_VERSION),
+		LTTNG_MODULES_EXTRAVERSION,
+		LTTNG_VERSION_NAME);
 	return 0;
 
 error_logger:
@@ -2687,6 +2693,12 @@ error_kmem:
 	lttng_tracepoint_exit();
 error_tp:
 	lttng_context_exit();
+	printk(KERN_NOTICE "lttng: Failed to load modules v%s.%s.%s%s (%s)\n",
+		__stringify(LTTNG_MODULES_MAJOR_VERSION),
+		__stringify(LTTNG_MODULES_MINOR_VERSION),
+		__stringify(LTTNG_MODULES_PATCHLEVEL_VERSION),
+		LTTNG_MODULES_EXTRAVERSION,
+		LTTNG_VERSION_NAME);
 	return ret;
 }
 
@@ -2703,6 +2715,12 @@ static void __exit lttng_events_exit(void)
 	kmem_cache_destroy(event_cache);
 	lttng_tracepoint_exit();
 	lttng_context_exit();
+	printk(KERN_NOTICE "lttng: Unloaded modules v%s.%s.%s%s (%s)\n",
+		__stringify(LTTNG_MODULES_MAJOR_VERSION),
+		__stringify(LTTNG_MODULES_MINOR_VERSION),
+		__stringify(LTTNG_MODULES_PATCHLEVEL_VERSION),
+		LTTNG_MODULES_EXTRAVERSION,
+		LTTNG_VERSION_NAME);
 }
 
 module_exit(lttng_events_exit);
-- 
2.7.4

_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH lttng-modules] Add load/unload messages to kernel log
       [not found] <1482360926-13430-1-git-send-email-mjeanson@efficios.com>
@ 2016-12-22 16:29 ` Mathieu Desnoyers
  0 siblings, 0 replies; 2+ messages in thread
From: Mathieu Desnoyers @ 2016-12-22 16:29 UTC (permalink / raw)
  To: Michael Jeanson; +Cc: lttng-dev

merged, changed lttng: -> LTTng:

Thanks!

Mathieu

----- On Dec 21, 2016, at 5:55 PM, Michael Jeanson mjeanson@efficios.com wrote:

> Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
> ---
> lttng-events.c | 18 ++++++++++++++++++
> 1 file changed, 18 insertions(+)
> 
> diff --git a/lttng-events.c b/lttng-events.c
> index 176908b..eeaac08 100644
> --- a/lttng-events.c
> +++ b/lttng-events.c
> @@ -2677,6 +2677,12 @@ static int __init lttng_events_init(void)
> 	ret = lttng_logger_init();
> 	if (ret)
> 		goto error_logger;
> +	printk(KERN_NOTICE "lttng: Loaded modules v%s.%s.%s%s (%s)\n",
> +		__stringify(LTTNG_MODULES_MAJOR_VERSION),
> +		__stringify(LTTNG_MODULES_MINOR_VERSION),
> +		__stringify(LTTNG_MODULES_PATCHLEVEL_VERSION),
> +		LTTNG_MODULES_EXTRAVERSION,
> +		LTTNG_VERSION_NAME);
> 	return 0;
> 
> error_logger:
> @@ -2687,6 +2693,12 @@ error_kmem:
> 	lttng_tracepoint_exit();
> error_tp:
> 	lttng_context_exit();
> +	printk(KERN_NOTICE "lttng: Failed to load modules v%s.%s.%s%s (%s)\n",
> +		__stringify(LTTNG_MODULES_MAJOR_VERSION),
> +		__stringify(LTTNG_MODULES_MINOR_VERSION),
> +		__stringify(LTTNG_MODULES_PATCHLEVEL_VERSION),
> +		LTTNG_MODULES_EXTRAVERSION,
> +		LTTNG_VERSION_NAME);
> 	return ret;
> }
> 
> @@ -2703,6 +2715,12 @@ static void __exit lttng_events_exit(void)
> 	kmem_cache_destroy(event_cache);
> 	lttng_tracepoint_exit();
> 	lttng_context_exit();
> +	printk(KERN_NOTICE "lttng: Unloaded modules v%s.%s.%s%s (%s)\n",
> +		__stringify(LTTNG_MODULES_MAJOR_VERSION),
> +		__stringify(LTTNG_MODULES_MINOR_VERSION),
> +		__stringify(LTTNG_MODULES_PATCHLEVEL_VERSION),
> +		LTTNG_MODULES_EXTRAVERSION,
> +		LTTNG_VERSION_NAME);
> }
> 
> module_exit(lttng_events_exit);
> --
> 2.7.4

-- 
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com
_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-12-22 16:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-21 22:55 [PATCH lttng-modules] Add load/unload messages to kernel log Michael Jeanson
     [not found] <1482360926-13430-1-git-send-email-mjeanson@efficios.com>
2016-12-22 16:29 ` Mathieu Desnoyers

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.