Cleanup: Move patches.i to include/generated/
[lttng-modules.git] / wrapper / trace-clock.c
CommitLineData
b7cdc182 1/* SPDX-License-Identifier: (GPL-2.0-only or LGPL-2.1-only)
9f36eaed 2 *
b0725207
MD
3 * wrapper/trace-clock.c
4 *
5 * Contains LTTng trace clock mapping to LTTng trace clock or mainline monotonic
6 * clock. This wrapper depends on CONFIG_HIGH_RES_TIMERS=y.
7 *
8 * Copyright (C) 2011-2012 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
b0725207
MD
9 */
10
5a2f5e92 11#include <wrapper/trace-clock.h>
b0725207 12
60e1cd07
MD
13#ifdef LTTNG_USE_NMI_SAFE_CLOCK
14DEFINE_PER_CPU(u64, lttng_last_tsc);
b0725207 15EXPORT_PER_CPU_SYMBOL(lttng_last_tsc);
60e1cd07 16#endif /* #ifdef LTTNG_USE_NMI_SAFE_CLOCK */
254adeb0
MD
17
18#ifdef LTTNG_CLOCK_NMI_SAFE_BROKEN
19#warning "Your kernel implements a bogus nmi-safe clock source. Falling back to the non-nmi-safe clock source, which discards events traced from NMI context. Upgrade your kernel to resolve this situation."
20#endif
This page took 0.033257 seconds and 4 git commands to generate.