Cleanup: Move lttng-modules instrumentation headers
[lttng-modules.git] / probes / lttng-probe-kmem.c
CommitLineData
b7cdc182 1/* SPDX-License-Identifier: (GPL-2.0-only or LGPL-2.1-only)
9f36eaed 2 *
b283666f
PW
3 * probes/lttng-probe-kmem.c
4 *
5 * LTTng kmem probes.
6 *
7 * Copyright (C) 2010-2012 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
8 * Copyright (C) 2012 Mentor Graphics Corp.
b283666f
PW
9 */
10
389d7070
MD
11/*
12 * This page_alloc.h wrapper needs to be included before gfpflags.h because it
13 * overrides a function with a define.
14 */
156a3977 15#include <wrapper/page_alloc.h>
b283666f 16#include <linux/module.h>
16690f83 17#include <linux/mm.h>
2df37e95 18#include <lttng/tracer.h>
b283666f
PW
19
20/*
21 * Create the tracepoint static inlines from the kernel to validate that our
22 * trace event macros match the kernel we run on.
23 */
24#include <trace/events/kmem.h>
25
156a3977 26#include <wrapper/tracepoint.h>
7c68b363 27
b283666f
PW
28/*
29 * Create LTTng tracepoint probes.
30 */
31#define LTTNG_PACKAGE_BUILD
32#define CREATE_TRACE_POINTS
4f47ccf0 33#define TRACE_INCLUDE_PATH instrumentation/events
b283666f 34
4f47ccf0 35#include <instrumentation/events/kmem.h>
b283666f
PW
36
37MODULE_LICENSE("GPL and additional rights");
1c124020
MJ
38MODULE_AUTHOR("Wade Farnsworth <wade_farnsworth@mentor.com>");
39MODULE_AUTHOR("Andrew Gabbasov <andrew_gabbasov@mentor.com>");
b283666f 40MODULE_DESCRIPTION("LTTng kmem probes");
13ab8b0a
MD
41MODULE_VERSION(__stringify(LTTNG_MODULES_MAJOR_VERSION) "."
42 __stringify(LTTNG_MODULES_MINOR_VERSION) "."
43 __stringify(LTTNG_MODULES_PATCHLEVEL_VERSION)
44 LTTNG_MODULES_EXTRAVERSION);
This page took 0.036487 seconds and 4 git commands to generate.