commit | 0c6bc73c5e12dd4caae5bf3acbf1d26c3a9ad130 | [log] [tgz] |
---|---|---|
author | Colin Cross <ccross@android.com> | Tue Jun 17 15:18:07 2014 -0700 |
committer | Colin Cross <ccross@android.com> | Tue Jun 17 15:25:45 2014 -0700 |
tree | cc2b5404b0885ed585d79cf2c248c6c6bff25ade | |
parent | 18cd9f57621b47889bdf81b2b04413569a999ef4 [diff] |
Fix reading memory usage for 64-bit processes 64-bit process will have virtual addresses that don't fit in an unsigned long if ActivityManagerService is in a 32-bit process, and the locations of the '-' and ' ' characters in the maps are not predictable. Fix the sscanf for finding the start of the mapping, and use it again to find the end of the mapping. Also fix a few 64-bit warnings. Change-Id: I8855c76085142768be1d45346f1032fd37cbe4eb