summaryrefslogtreecommitdiff
path: root/simpleperf/record.h
diff options
context:
space:
mode:
authorYabin Cui <yabinc@google.com>2020-12-17 16:03:10 -0800
committerYabin Cui <yabinc@google.com>2020-12-17 17:41:37 -0800
commit01b38b8836ee9f8c30ac6074d11efef08efbd8fa (patch)
tree07f0fb895475c465d4e62b4a5c1490995c3be9a7 /simpleperf/record.h
parentcaabdfb51de6c152ef6e2ef1d698d4c704e04c39 (diff)
downloadextras-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.h2
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;