tools include: add __aligned_u64 to types.h.
authorWang Nan <[email protected]>
Fri, 15 May 2015 07:50:57 +0000 (07:50 +0000)
committerArnaldo Carvalho de Melo <[email protected]>
Mon, 18 May 2015 13:17:32 +0000 (10:17 -0300)
Following patches will introduce linux/bpf.h to a new libbpf library,
which requires definition of __aligned_u64. This patch add it to the
common types.h for tools.

Signed-off-by: Wang Nan <[email protected]>
Cc: Adrian Hunter <[email protected]>
Cc: Alexei Starovoitov <[email protected]>
Cc: Brendan Gregg <[email protected]>
Cc: Daniel Borkmann <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Masami Hiramatsu <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: [email protected]
Cc: Zefan Li <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
tools/include/linux/types.h

index 0bdeda66aae576907ddd8f7f2e2e130cee461e7c..8ebf6278b2ef23d7cd45daf7b5f6f14bde675aa2 100644 (file)
@@ -64,6 +64,10 @@ typedef struct {
        int counter;
 } atomic_t;
 
+#ifndef __aligned_u64
+# define __aligned_u64 __u64 __attribute__((aligned(8)))
+#endif
+
 struct list_head {
        struct list_head *next, *prev;
 };