| 1 | /* SPDX-License-Identifier: (GPL-2.0-only or LGPL-2.1-only) |
| 2 | * |
| 3 | * probes/lttng-probe-x86-exceptions.c |
| 4 | * |
| 5 | * LTTng x86 exceptions probes. |
| 6 | * |
| 7 | * Copyright (C) 2010-2015 Mathieu Desnoyers <mathieu.desnoyers@efficios.com> |
| 8 | */ |
| 9 | |
| 10 | #include <linux/module.h> |
| 11 | #include <lttng/tracer.h> |
| 12 | |
| 13 | /* |
| 14 | * Create the tracepoint static inlines from the kernel to validate that our |
| 15 | * trace event macros match the kernel we run on. |
| 16 | */ |
| 17 | #include <asm/trace/exceptions.h> |
| 18 | |
| 19 | #include <wrapper/tracepoint.h> |
| 20 | |
| 21 | #undef TRACE_INCLUDE_PATH |
| 22 | #undef TRACE_INCLUDE_FILE |
| 23 | |
| 24 | /* |
| 25 | * Create LTTng tracepoint probes. |
| 26 | */ |
| 27 | #define LTTNG_PACKAGE_BUILD |
| 28 | #define CREATE_TRACE_POINTS |
| 29 | #define TRACE_INCLUDE_PATH instrumentation/events/arch/x86 |
| 30 | |
| 31 | #include <instrumentation/events/arch/x86/exceptions.h> |
| 32 | |
| 33 | MODULE_LICENSE("GPL and additional rights"); |
| 34 | MODULE_AUTHOR("Mathieu Desnoyers <mathieu.desnoyers@efficios.com>"); |
| 35 | MODULE_DESCRIPTION("LTTng x86 exceptions probes"); |
| 36 | MODULE_VERSION(__stringify(LTTNG_MODULES_MAJOR_VERSION) "." |
| 37 | __stringify(LTTNG_MODULES_MINOR_VERSION) "." |
| 38 | __stringify(LTTNG_MODULES_PATCHLEVEL_VERSION) |
| 39 | LTTNG_MODULES_EXTRAVERSION); |