summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2018-08-14 00:54:55 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2018-08-14 00:54:55 +0000
commitb3026994c3d6ee701e2f04f7919591c5edc50035 (patch)
tree86ec0edaf42775d06d55a526439876eac4b45d07
parentc051e742978ff17db4f1eb283c9db2359404b5b3 (diff)
parent19363a2d182cff9e747dfe51148990d12cf6b654 (diff)
downloadextras-b3026994c3d6ee701e2f04f7919591c5edc50035.tar.gz
Merge "simpleperf: don't pull JIT symfiles on host."
-rwxr-xr-xsimpleperf/scripts/binary_cache_builder.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/simpleperf/scripts/binary_cache_builder.py b/simpleperf/scripts/binary_cache_builder.py
index b5a53da9..1f4041f8 100755
--- a/simpleperf/scripts/binary_cache_builder.py
+++ b/simpleperf/scripts/binary_cache_builder.py
@@ -28,6 +28,8 @@ import shutil
from simpleperf_report_lib import ReportLib
from utils import AdbHelper, flatten_arg_list, log_info, log_warning, log_exit, ReadElf
+def is_jit_symfile(dso_name):
+ return dso_name.split('/')[-1].startswith('TemporaryFile')
class BinaryCacheBuilder(object):
"""Collect all binaries needed by perf.data in binary_cache."""
@@ -79,6 +81,8 @@ class BinaryCacheBuilder(object):
for symbol in symbols:
dso_name = symbol.dso_name
if dso_name not in binaries:
+ if is_jit_symfile(dso_name):
+ continue
binaries[dso_name] = lib.GetBuildIdForPath(dso_name)
self.binaries = binaries