commit | 31f21a282356c1a5aca5109abe3db1d68f5c880d | [log] [tgz] |
---|---|---|
author | Yabin Cui <yabinc@google.com> | Wed Mar 07 15:55:48 2018 -0800 |
committer | Yabin Cui <yabinc@google.com> | Wed Mar 07 15:55:48 2018 -0800 |
tree | b641ac3d8de5c37d16d79c93ea288916520b5e53 | |
parent | 0b922984847bda4c0e00f07dc404664909a1fcc0 [diff] |
simpleperf: Fix cached map in OfflineUnwinder. In system wide profiling, sometimes a sample record goes before all mmap records of a process. Then thread.maps->version = 0 and cached_map.map isn't created. This is caught by simpleperf_unit_test. Bug: none Test: run simpleperf_unit_test. Change-Id: I99254396d0fb22531f735ff3193b8d3b1f9641dd