* events generated by our test process only.
*/
+#if defined(__clang__)
+#define nooptimization __attribute__((noinline)) __attribute__((optnone))
+#else
+#define nooptimization __attribute__((noinline)) __attribute__((optimize(0)))
+#endif
+
volatile int val = 0;
-long __attribute__ ((noinline))
+long nooptimization
my_gettid(void)
{
long ret;
return ret;
}
-int __attribute__ ((noinline))
+int nooptimization
fct_c(void)
{
return my_gettid();
}
-int __attribute__ ((noinline))
+int nooptimization
fct_b(void)
{
val += fct_c();
return val;
}
-int __attribute__ ((noinline))
+int nooptimization
fct_a(void)
{
val += fct_b();