Cleanup: move to kernel style SPDX license identifiers
[deliverable/lttng-modules.git] / probes / lttng-probe-i2c.c
1 /* SPDX-License-Identifier: (GPL-2.0 or LGPL-2.1)
2 *
3 * probes/lttng-probe-i2c.c
4 *
5 * LTTng i2c probes.
6 *
7 * Copyright (C) 2012 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
8 * Copyright (C) 2016 Simon Marchi <simon.marchi@ericsson.com>
9 */
10
11 #include <linux/module.h>
12 #include <linux/moduleparam.h>
13 #include <lttng-tracer.h>
14
15 /*
16 * Create the tracepoint static inlines from the kernel to validate that our
17 * trace event macros match the kernel we run on.
18 */
19 #include <trace/events/i2c.h>
20
21 /*
22 * Create LTTng tracepoint probes.
23 */
24 #define LTTNG_PACKAGE_BUILD
25 #define CREATE_TRACE_POINTS
26 #define TRACE_INCLUDE_PATH instrumentation/events/lttng-module
27
28 static int extract_sensitive_payload;
29 module_param(extract_sensitive_payload, int, 0644);
30 MODULE_PARM_DESC(extract_sensitive_payload,
31 "Whether to extract possibly sensitive data from events (i2c "
32 "buffer contents) or not (1 or 0, default: 0).");
33
34 #include <instrumentation/events/lttng-module/i2c.h>
35
36 MODULE_LICENSE("GPL and additional rights");
37 MODULE_AUTHOR("Simon Marchi <simon.marchi@ericsson.com>");
38 MODULE_DESCRIPTION("LTTng i2c probes");
39 MODULE_VERSION(__stringify(LTTNG_MODULES_MAJOR_VERSION) "."
40 __stringify(LTTNG_MODULES_MINOR_VERSION) "."
41 __stringify(LTTNG_MODULES_PATCHLEVEL_VERSION)
42 LTTNG_MODULES_EXTRAVERSION);
This page took 0.030751 seconds and 5 git commands to generate.