Cleanup: Move lttng-modules instrumentation headers
[lttng-modules.git] / probes / lttng-probe-i2c.c
CommitLineData
b7cdc182 1/* SPDX-License-Identifier: (GPL-2.0-only or LGPL-2.1-only)
9f36eaed 2 *
2ca39464
SM
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>
2ca39464
SM
9 */
10
11#include <linux/module.h>
12#include <linux/moduleparam.h>
2df37e95 13#include <lttng/tracer.h>
2ca39464
SM
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
4f47ccf0 26#define TRACE_INCLUDE_PATH instrumentation/events
2ca39464
SM
27
28static int extract_sensitive_payload;
29module_param(extract_sensitive_payload, int, 0644);
30MODULE_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
4f47ccf0 34#include <instrumentation/events/i2c.h>
2ca39464
SM
35
36MODULE_LICENSE("GPL and additional rights");
37MODULE_AUTHOR("Simon Marchi <simon.marchi@ericsson.com>");
38MODULE_DESCRIPTION("LTTng i2c probes");
39MODULE_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.030486 seconds and 4 git commands to generate.