commit | 100426fa231cdf9029ee8d4fc8a3dc683da94fe3 | [log] [tgz] |
---|---|---|
author | Vic Yang <victoryang@google.com> | Mon Jan 06 21:52:50 2020 -0800 |
committer | Vic Yang <victoryang@google.com> | Mon Jan 06 22:02:48 2020 -0800 |
tree | ab88d1b9efa4cf98be123c4f2bbd50b3de5e31e7 | |
parent | 0ec595669027604b1d51c4c80b13b1b31e0fbe02 [diff] |
libmeminfo: Swap accounting bug fixes This fixes a couple issues: 1. Swap offsets are 50-bit wide, so store them in uint64_t instead of uint16_t. 2. Swap offset starts from 1 instead of 0. Add one extra slot in swap offset count array to account for this. Test: Run procrank and does not see incorrect PSwap numbers anymore. Change-Id: I2471970d4a29909e8a0874f6c69af3f9a0b15b02