Skip to content

Commit

Permalink
[dmprof] Fix prepare_symbol_info.py for Android
Browse files Browse the repository at this point in the history
Use binary_path (which is mapped from target->host executable on Android)
instead of entry.name when generating file hash.

BUG=

Review URL: https://chromiumcodereview.appspot.com/18996002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@210864 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
rmcilroy@chromium.org committed Jul 10, 2013
1 parent 86bbd33 commit cbe7029
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/find_runtime_symbols/prepare_symbol_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,9 @@ def prepare_symbol_info(maps_path,
files[entry.name]['readelf-debug-decodedline-file'] = {
'file': os.path.basename(readelf_debug_decodedline_file)}

files[entry.name]['size'] = os.stat(entry.name).st_size
files[entry.name]['size'] = os.stat(binary_path).st_size

with open(entry.name, 'rb') as entry_f:
with open(binary_path, 'rb') as entry_f:
md5 = hashlib.md5()
sha1 = hashlib.sha1()
chunk = entry_f.read(1024 * 1024)
Expand Down

0 comments on commit cbe7029

Please sign in to comment.