1 /* SPDX-License-Identifier: (GPL-2.0 or LGPL-2.1)
3 * probes/lttng-probe-i2c.c
7 * Copyright (C) 2012 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
8 * Copyright (C) 2016 Simon Marchi <simon.marchi@ericsson.com>
11 #include <linux/module.h>
12 #include <linux/moduleparam.h>
13 #include <lttng-tracer.h>
16 * Create the tracepoint static inlines from the kernel to validate that our
17 * trace event macros match the kernel we run on.
19 #include <trace/events/i2c.h>
22 * Create LTTng tracepoint probes.
24 #define LTTNG_PACKAGE_BUILD
25 #define CREATE_TRACE_POINTS
26 #define TRACE_INCLUDE_PATH instrumentation/events/lttng-module
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).");
34 #include <instrumentation/events/lttng-module/i2c.h>
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
);