Skip to content

Commit

Permalink
lttng: tracer control and core structures
Browse files Browse the repository at this point in the history
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Mathieu Desnoyers authored and Greg Kroah-Hartman committed Nov 29, 2011
1 parent 6857797 commit ccc7340
Show file tree
Hide file tree
Showing 6 changed files with 1,751 additions and 0 deletions.
31 changes: 31 additions & 0 deletions drivers/staging/lttng/ltt-endian.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#ifndef _LTT_ENDIAN_H
#define _LTT_ENDIAN_H

/*
* ltt-endian.h
*
* Copyright 2010 (c) - Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
*
* Dual LGPL v2.1/GPL v2 license.
*/

#ifdef __KERNEL__
# include <asm/byteorder.h>
# ifdef __BIG_ENDIAN
# define __BYTE_ORDER __BIG_ENDIAN
# elif defined(__LITTLE_ENDIAN)
# define __BYTE_ORDER __LITTLE_ENDIAN
# else
# error "unknown endianness"
# endif
#ifndef __BIG_ENDIAN
# define __BIG_ENDIAN 4321
#endif
#ifndef __LITTLE_ENDIAN
# define __LITTLE_ENDIAN 1234
#endif
#else
# include <endian.h>
#endif

#endif /* _LTT_ENDIAN_H */
Loading

0 comments on commit ccc7340

Please sign in to comment.