Introduce lttng_guid_gen wrapper for kernels >= 5.7.0
[lttng-modules.git] / lttng-endian.h
CommitLineData
9f36eaed 1/* SPDX-License-Identifier: (GPL-2.0 or LGPL-2.1) */
a90917c3
MD
2#ifndef _LTTNG_ENDIAN_H
3#define _LTTNG_ENDIAN_H
9115fbdc 4
17baffe2 5/*
a90917c3 6 * lttng-endian.h
17baffe2 7 *
886d51a3 8 * Copyright (C) 2010-2012 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
17baffe2
MD
9 */
10
9115fbdc
MD
11#ifdef __KERNEL__
12# include <asm/byteorder.h>
13# ifdef __BIG_ENDIAN
14# define __BYTE_ORDER __BIG_ENDIAN
15# elif defined(__LITTLE_ENDIAN)
16# define __BYTE_ORDER __LITTLE_ENDIAN
17# else
18# error "unknown endianness"
19# endif
20#ifndef __BIG_ENDIAN
21# define __BIG_ENDIAN 4321
22#endif
23#ifndef __LITTLE_ENDIAN
24# define __LITTLE_ENDIAN 1234
25#endif
26#else
27# include <endian.h>
28#endif
29
a90917c3 30#endif /* _LTTNG_ENDIAN_H */
This page took 0.0363 seconds and 4 git commands to generate.