diff options
author | 2021-02-23 12:20:02 +0000 | |
---|---|---|
committer | 2021-02-23 12:20:02 +0000 | |
commit | 03f50f88b12db8e9fce9b291ee40fb6f78a0c9ec (patch) | |
tree | bfbbb48ee037d2639f8d63724cd7696f511fe7f7 | |
parent | Start a new branch to get support for vmprof on aarch64 (diff) | |
download | pypy-03f50f88b12db8e9fce9b291ee40fb6f78a0c9ec.tar.gz pypy-03f50f88b12db8e9fce9b291ee40fb6f78a0c9ec.tar.bz2 pypy-03f50f88b12db8e9fce9b291ee40fb6f78a0c9ec.zip |
actually enable vmprof on aarch64
-rw-r--r-- | rpython/rlib/rvmprof/cintf.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/rpython/rlib/rvmprof/cintf.py b/rpython/rlib/rvmprof/cintf.py index b8e9492789..37abe6c2d1 100644 --- a/rpython/rlib/rvmprof/cintf.py +++ b/rpython/rlib/rvmprof/cintf.py @@ -5,6 +5,7 @@ import shutil from rpython.tool.udir import udir from rpython.tool.version import rpythonroot from rpython.rtyper.lltypesystem import lltype, llmemory, rffi +from rpython.rtyper.lltypesystem.lloperation import llop from rpython.translator.tool.cbuild import ExternalCompilationInfo from rpython.rtyper.tool import rffi_platform as platform from rpython.rlib import rthread, jit @@ -19,9 +20,10 @@ class VMProfPlatformUnsupported(Exception): IS_SUPPORTED = False if sys.platform in ('darwin', 'linux', 'linux2') or sys.platform.startswith('freebsd'): try: - IS_SUPPORTED = detect_cpu.autodetect().startswith('x86') + proc = detect_cpu.autodetect() + IS_SUPPORTED = proc.startswith('x86') or proc == 'aarch64' except detect_cpu.ProcessorAutodetectError: - pass + print("PROCESSOR NOT DETECTED, SKIPPING VMPROF") ROOT = py.path.local(rpythonroot).join('rpython', 'rlib', 'rvmprof') SRC = ROOT.join('src') |