tracing: profile likely and unlikely annotations
[safe/jmp/linux-2.6] / arch / x86 / kernel / vsyscall_64.c
index 0b8b669..2f90202 100644 (file)
  *  want per guest time just set the kernel.vsyscall64 sysctl to 0.
  */
 
+/* Protect userspace from profiling */
+#ifdef CONFIG_TRACE_UNLIKELY_PROFILE
+# undef likely
+# undef unlikely
+# define likely(x)             likely_notrace(x)
+# define unlikely(x)           unlikely_notrace(x)
+#endif
+
 #include <linux/time.h>
 #include <linux/init.h>
 #include <linux/kernel.h>