From: Pierre-Marc Fournier Date: Tue, 6 Jul 2010 00:04:06 +0000 (-0400) Subject: define ____cacheline_aligned X-Git-Tag: v1.9.1~574 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=066b83b8dfc562e00cb61d39eca0e0f77242828c;p=lttng-ust.git define ____cacheline_aligned --- diff --git a/include/ust/core.h b/include/ust/core.h index 8cedf989..01726143 100644 --- a/include/ust/core.h +++ b/include/ust/core.h @@ -119,11 +119,6 @@ static inline long IS_ERR(const void *ptr) #define zmalloc(s) calloc(1, s) -/* ATTRIBUTES */ - -/* FIXME: define this */ -#define ____cacheline_aligned - /* MATH */ #include diff --git a/include/ust/processor.h b/include/ust/processor.h index 867b140c..68ac2586 100644 --- a/include/ust/processor.h +++ b/include/ust/processor.h @@ -20,10 +20,13 @@ #include #include +#include extern __thread long ust_reg_stack[500]; extern volatile __thread long *ust_reg_stack_ptr; +#define ____cacheline_aligned __attribute__((aligned(CACHE_LINE_SIZE))) + #ifdef __i386 struct registers {