Commit | Line | Data |
---|---|---|
9f36eaed MJ |
1 | /* SPDX-License-Identifier: (GPL-2.0 or LGPL-2.1) |
2 | * | |
b87700e3 AG |
3 | * probes/lttng-probe-printk.c |
4 | * | |
5 | * LTTng printk probes. | |
6 | * | |
7 | * Copyright (C) 2010-2012 Mathieu Desnoyers <mathieu.desnoyers@efficios.com> | |
8 | * Copyright (C) 2012 Mentor Graphics Corp. | |
b87700e3 AG |
9 | */ |
10 | ||
11 | #include <linux/module.h> | |
156a3977 | 12 | #include <lttng-tracer.h> |
b87700e3 AG |
13 | |
14 | /* | |
15 | * Create the tracepoint static inlines from the kernel to validate that our | |
16 | * trace event macros match the kernel we run on. | |
17 | */ | |
18 | #include <trace/events/printk.h> | |
19 | ||
20 | /* | |
21 | * Create LTTng tracepoint probes. | |
22 | */ | |
23 | #define LTTNG_PACKAGE_BUILD | |
24 | #define CREATE_TRACE_POINTS | |
156a3977 | 25 | #define TRACE_INCLUDE_PATH instrumentation/events/lttng-module |
b87700e3 | 26 | |
156a3977 | 27 | #include <instrumentation/events/lttng-module/printk.h> |
b87700e3 AG |
28 | |
29 | MODULE_LICENSE("GPL and additional rights"); | |
30 | MODULE_AUTHOR("Andrew Gabbasov <andrew_gabbasov@mentor.com>"); | |
31 | MODULE_DESCRIPTION("LTTng printk probes"); | |
13ab8b0a MD |
32 | MODULE_VERSION(__stringify(LTTNG_MODULES_MAJOR_VERSION) "." |
33 | __stringify(LTTNG_MODULES_MINOR_VERSION) "." | |
34 | __stringify(LTTNG_MODULES_PATCHLEVEL_VERSION) | |
35 | LTTNG_MODULES_EXTRAVERSION); |