1 /* SPDX-License-Identifier: (GPL-2.0-only or LGPL-2.1-only)
3 * wrapper/trace-clock.c
5 * Contains LTTng trace clock mapping to LTTng trace clock or mainline monotonic
6 * clock. This wrapper depends on CONFIG_HIGH_RES_TIMERS=y.
8 * Copyright (C) 2011-2012 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 #include <wrapper/trace-clock.h>
13 #ifdef LTTNG_USE_NMI_SAFE_CLOCK
14 DEFINE_PER_CPU(u64
, lttng_last_tsc
);
15 EXPORT_PER_CPU_SYMBOL(lttng_last_tsc
);
16 #endif /* #ifdef LTTNG_USE_NMI_SAFE_CLOCK */
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."
This page took 0.033891 seconds and 4 git commands to generate.