diff options
author | Yabin Cui <yabinc@google.com> | 2016-08-04 10:22:17 -0700 |
---|---|---|
committer | Yabin Cui <yabinc@google.com> | 2016-08-04 12:25:10 -0700 |
commit | 190a848fb2d4f502372b2528c55ca1f520e90609 (patch) | |
tree | 0f91a18d54c12e089e6454313577de959ff5095c /simpleperf/perf_regs.h | |
parent | 1f282c61fa7ba844688f370b64b3d547ca85d1ad (diff) | |
download | extras-190a848fb2d4f502372b2528c55ca1f520e90609.tar.gz |
simpleperf: keep binary in class Record.
It removes memory copy and heap allocation/deallocation in
Record::BinaryFormat(), and is a preparation to remove memory
copy and heap allocation in Record constructor.
Bug: 30649868
Test: run simpleperf_unit_test.
Change-Id: Ic8dd80e43f7b547a9beaf896d726b56aeb5d55a2
Diffstat (limited to 'simpleperf/perf_regs.h')
-rw-r--r-- | simpleperf/perf_regs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/simpleperf/perf_regs.h b/simpleperf/perf_regs.h index 98b7810b..ff13d4fa 100644 --- a/simpleperf/perf_regs.h +++ b/simpleperf/perf_regs.h @@ -84,7 +84,7 @@ struct RegSet { uint64_t data[64]; }; -RegSet CreateRegSet(uint64_t valid_mask, const std::vector<uint64_t>& valid_regs); +RegSet CreateRegSet(uint64_t valid_mask, const uint64_t* valid_regs); bool GetRegValue(const RegSet& regs, size_t regno, uint64_t* value); bool GetSpRegValue(const RegSet& regs, ArchType arch, uint64_t* value); |