diff options
author | Erick Reyes <erickreyes@google.com> | 2019-01-28 19:53:30 -0800 |
---|---|---|
committer | Erick Reyes <erickreyes@google.com> | 2019-01-29 17:52:34 -0800 |
commit | 302a259fa9755537f3bbcb2e848fade9e711ff5c (patch) | |
tree | efdf108276831881730d54fc1d696eb0e2b6e803 /libunwindstack/tests/MapInfoCreateMemoryTest.cpp | |
parent | 2cbdc561ad1b3c1565af8e1a30faa17dc35e9271 (diff) |
meminfo: handle multiple buffer references in dmabufinfo
Change the dmabufinfo library to handle multiple references to the same
buffer across PIDs by doing these changes:
- Add function AppendDmaBufInfo: appends the information for a specific
PID to an existing DmaBuffer vector
- Change the way fd/map references to a buffer belonging to a PID are
stored in DmaBuffer from vector<pid_t> to unorderedmap<pid_t, int>
- When parsing proc/%pid/{maps|fds}, look up the buffer by inode and
update the data if found
Test: builds
Bug: 63860998
Change-Id: If22feea772f182086ae3446b46d626a750674b1f
Signed-off-by: Erick Reyes <erickreyes@google.com>
Diffstat (limited to 'libunwindstack/tests/MapInfoCreateMemoryTest.cpp')
0 files changed, 0 insertions, 0 deletions