File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ cl::opt<std::string>
9999 ReadPerfEvents (" perf-script-events" ,
100100 cl::desc (" skip perf event collection by supplying a "
101101 " perf-script output in a textual format" ),
102- cl::cat(AggregatorCategory));
102+ cl::ReallyHidden, cl::init( " " ), cl:: cat(AggregatorCategory));
103103
104104static cl::opt<bool >
105105TimeAggregator (" time-aggr" ,
@@ -2132,9 +2132,9 @@ std::error_code DataAggregator::parseMMapEvents() {
21322132 assert (MMapInfo.BaseAddress == BinaryMMapInfo[MMapInfo.PID ].BaseAddress &&
21332133 " Base address on multiple segment mappings should match" );
21342134
2135- // Update section size.
2136- uint64_t EndAddress = MMapInfo.MMapAddress + MMapInfo.Size ;
2137- uint64_t Size = EndAddress - BinaryMMapInfo[MMapInfo.PID ].BaseAddress ;
2135+ // Update mapping size.
2136+ const uint64_t EndAddress = MMapInfo.MMapAddress + MMapInfo.Size ;
2137+ const uint64_t Size = EndAddress - BinaryMMapInfo[MMapInfo.PID ].BaseAddress ;
21382138 if (Size > BinaryMMapInfo[MMapInfo.PID ].Size )
21392139 BinaryMMapInfo[MMapInfo.PID ].Size = Size;
21402140 }
Original file line number Diff line number Diff line change 1- // ===- bolt/unittest/Core/MemoryMaps.cpp -------------------------------===//
1+ // ===- bolt/unittest/Core/MemoryMaps.cpp ---------------------------------- ===//
22//
33// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44// See https://llvm.org/LICENSE.txt for license information.
You can’t perform that action at this time.
0 commit comments