summaryrefslogtreecommitdiff
path: root/simpleperf/scripts/binary_cache_builder.py
diff options
context:
space:
mode:
authorCherry Ng <cyng@google.com>2023-05-31 07:09:19 +0800
committerCherry Ng <cyng@google.com>2023-05-31 07:29:13 +0800
commit64de86ece6ed6329f017d8408aa19b7755ae3722 (patch)
tree72a59f870be087d362625cdeac33adcca7ed9ff0 /simpleperf/scripts/binary_cache_builder.py
parentbd8fcdab9dcd530856073e0ccb9ba280c8c6f27a (diff)
downloadextras-64de86ece6ed6329f017d8408aa19b7755ae3722.tar.gz
Use build_id as parent directory when building cache.
Test: build Bug: 284818341 Change-Id: I8d291d366c06a9107c964322f0b4e4384d8b3593
Diffstat (limited to 'simpleperf/scripts/binary_cache_builder.py')
-rwxr-xr-xsimpleperf/scripts/binary_cache_builder.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/simpleperf/scripts/binary_cache_builder.py b/simpleperf/scripts/binary_cache_builder.py
index 46c8532a..0047edf8 100755
--- a/simpleperf/scripts/binary_cache_builder.py
+++ b/simpleperf/scripts/binary_cache_builder.py
@@ -48,8 +48,7 @@ class BinaryCache:
if build_id:
filename = device_path.split('/')[-1]
# Add build id to make the filename unique.
- unique_filename = build_id[2:] + '-' + filename
- return self.binary_dir / unique_filename
+ return self.binary_dir / build_id[2:] / filename
# For elf file without build id, we can only follow its path on device. Otherwise,
# simpleperf can't find it. However, we don't prefer this way. Because: