Disable `perf` support in the profiler when running on Android (for now).
authorAlex Rønne Petersen <alexrp@xamarin.com>
Fri, 6 Jun 2014 21:02:33 +0000 (23:02 +0200)
committerAlex Rønne Petersen <alexrp@xamarin.com>
Fri, 6 Jun 2014 21:02:33 +0000 (23:02 +0200)
We need to assess the situation before we enable this everywhere. Apparently
some older devices have trouble with `perf`.

mono/profiler/proflog.c

index 9064535fbd1ad9840a9ab07a7fd08ceaeffcbd18..193be897f761b97c7421d3a794bde14a44d4f7d4 100644 (file)
@@ -67,7 +67,7 @@
 #endif
 
 /* the architecture needs a memory fence */
-#if defined(__linux__) && (defined(__i386__) || defined(__x86_64__) || defined(__arm__))
+#if defined(__linux__) && (defined(__i386__) || defined(__x86_64__) || defined(__arm__)) && !defined(PLATFORM_ANDROID)
 #include <unistd.h>
 #include <sys/syscall.h>
 #include "perf_event.h"