cleanup: Namespace public utils macros
[lttng-ust.git] / include / lttng / ust-tracer.h
CommitLineData
1ea11eab 1/*
c0c0989a 2 * SPDX-License-Identifier: MIT
1ea11eab 3 *
c0c0989a 4 * Copyright (C) 2005-2012 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
e92f3e28 5 *
c0c0989a 6 * This contains the core definitions for the Linux Trace Toolkit.
1ea11eab
MD
7 */
8
c0c0989a
MJ
9#ifndef _LTTNG_UST_TRACER_H
10#define _LTTNG_UST_TRACER_H
11
0a3faf2a
MJ
12#include <limits.h>
13
2eba8e39 14#include <lttng/ust-arch.h>
2df82195 15#include <lttng/ust-compiler.h>
562c813a 16#include <lttng/ust-config.h>
eae3c729 17#include <lttng/ust-utils.h>
b728d87e 18#include <lttng/ust-version.h>
d4d59a97 19
2eba8e39 20#ifndef LTTNG_UST_ARCH_HAS_EFFICIENT_UNALIGNED_ACCESS
1ea11eab
MD
21/* Align data on its natural alignment */
22#define RING_BUFFER_ALIGN
23#endif
24
1ea11eab
MD
25#ifndef CHAR_BIT
26#define CHAR_BIT 8
27#endif
28
29#ifdef RING_BUFFER_ALIGN
30#define lttng_alignof(type) __alignof__(type)
31#else
32#define lttng_alignof(type) 1
33#endif
34
7dd08bec 35#endif /* _LTTNG_UST_TRACER_H */
This page took 0.03312 seconds and 4 git commands to generate.