aboutsummaryrefslogtreecommitdiffstats
path: root/executor/executor_linux.h
diff options
context:
space:
mode:
Diffstat (limited to 'executor/executor_linux.h')
-rw-r--r--executor/executor_linux.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/executor/executor_linux.h b/executor/executor_linux.h
index 1bae0e460..8b37ea598 100644
--- a/executor/executor_linux.h
+++ b/executor/executor_linux.h
@@ -182,9 +182,11 @@ static bool use_cover_edges(uint32 pc)
static bool use_cover_edges(uint64 pc)
{
-#if defined(__i386__) || defined(__x86_64__)
+#if GOARCH_amd64 || GOARCH_arm64
if (is_gvisor)
return false; // gvisor coverage is not a trace, so producing edges won't work
+#endif
+#if GOARCH_386 || GOARCH_amd64
// Text/modules range for x86_64.
if (pc < 0xffffffff80000000ull || pc >= 0xffffffffff000000ull) {
debug("got bad pc: 0x%llx\n", pc);