projects
/
lttv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
force inlining
[lttv.git]
/
genevent-new
/
gentest.c
diff --git
a/genevent-new/gentest.c
b/genevent-new/gentest.c
index a918d5415eb08be838bdf060ab96d316a9ca6570..f7dfca959053d1eaeda222bb43b47010cb4e63fa 100644
(file)
--- a/
genevent-new/gentest.c
+++ b/
genevent-new/gentest.c
@@
-1,13
+1,21
@@
+#define __KERNEL__
+
#include <assert.h>
#include <sys/types.h>
#include <stdint.h>
#include <stdlib.h>
#include <assert.h>
#include <sys/types.h>
#include <stdint.h>
#include <stdlib.h>
+#include <string.h>
+
+#include <linux/compiler.h>
#define min(a,b) (((a)<(b))?a:b)
#define max(a,b) (((a)>(b))?a:b)
#define BUG_ON(a) assert(!(a))
#define min(a,b) (((a)<(b))?a:b)
#define max(a,b) (((a)>(b))?a:b)
#define BUG_ON(a) assert(!(a))
+// Useful outsize __KERNEL__. Not used here because inline is already redefined.
+#define force_inline inline __attribute__((always_inline))
+
/* Calculate the offset needed to align the type */
static inline unsigned int ltt_align(size_t align_drift,
size_t size_of_type)
/* Calculate the offset needed to align the type */
static inline unsigned int ltt_align(size_t align_drift,
size_t size_of_type)
@@
-74,7
+82,7
@@
static inline void lttng_write_mystruct2(
size_t *len,
struct lttng_mystruct2 *obj)
{
size_t *len,
struct lttng_mystruct2 *obj)
{
- size_t align, size
, varalign
;
+ size_t align, size;
align = lttng_get_alignment_mystruct2(obj);
size = lttng_get_size_mystruct2(obj);
align = lttng_get_alignment_mystruct2(obj);
size = lttng_get_size_mystruct2(obj);
This page took
0.023155 seconds
and
4
git commands to generate.