diff options
author | Yabin Cui <yabinc@google.com> | 2020-12-17 16:03:10 -0800 |
---|---|---|
committer | Yabin Cui <yabinc@google.com> | 2020-12-17 17:41:37 -0800 |
commit | 01b38b8836ee9f8c30ac6074d11efef08efbd8fa (patch) | |
tree | 07f0fb895475c465d4e62b4a5c1490995c3be9a7 /simpleperf/record.h | |
parent | caabdfb51de6c152ef6e2ef1d698d4c704e04c39 (diff) | |
download | extras-01b38b8836ee9f8c30ac6074d11efef08efbd8fa.tar.gz |
simpleperf: fix tests on windows.
The tests fail because Windows doesn't allow deleting opened files.
Also avoid using pid_t in BuildIdRecord, which takes 8 bytes on 64-bit
Windows.
Bug: 175885920
Test: run simpleperf_unit_test.
Change-Id: I84f8fe7a59a4324425a39a3a9fd343e7718d8116
Diffstat (limited to 'simpleperf/record.h')
-rw-r--r-- | simpleperf/record.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/simpleperf/record.h b/simpleperf/record.h index fbeec0d3..26a1dbea 100644 --- a/simpleperf/record.h +++ b/simpleperf/record.h @@ -437,7 +437,7 @@ struct BuildIdRecord : public Record { explicit BuildIdRecord(char* p); - BuildIdRecord(bool in_kernel, pid_t pid, const BuildId& build_id, const std::string& filename); + BuildIdRecord(bool in_kernel, uint32_t pid, const BuildId& build_id, const std::string& filename); protected: void DumpData(size_t indent) const override; |