Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(124)

Side by Side Diff: syzygy/agent/asan/runtime.h

Issue 1992773002: [SyzyAsan] Enable Crashpad reporter as a 50/50 experiment. (Closed) Base URL: https://github.com/google/syzygy.git@master
Patch Set: Cleanup + unittests. Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2012 Google Inc. All Rights Reserved. 1 // Copyright 2012 Google Inc. All Rights Reserved.
2 // 2 //
3 // Licensed under the Apache License, Version 2.0 (the "License"); 3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License. 4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at 5 // You may obtain a copy of the License at
6 // 6 //
7 // http://www.apache.org/licenses/LICENSE-2.0 7 // http://www.apache.org/licenses/LICENSE-2.0
8 // 8 //
9 // Unless required by applicable law or agreed to in writing, software 9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS, 10 // distributed under the License is distributed on an "AS IS" BASIS,
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 const HeapChecker::CorruptRangesVector& corrupt_ranges, 214 const HeapChecker::CorruptRangesVector& corrupt_ranges,
215 size_t buffer_size, 215 size_t buffer_size,
216 void* buffer, 216 void* buffer,
217 AsanErrorInfo* error_info); 217 AsanErrorInfo* error_info);
218 218
219 // Logs information about an Asan error. 219 // Logs information about an Asan error.
220 void LogAsanErrorInfo(AsanErrorInfo* error_info); 220 void LogAsanErrorInfo(AsanErrorInfo* error_info);
221 221
222 // @returns a value describing the state of the features that can be randomly 222 // @returns a value describing the state of the features that can be randomly
223 // enabled or disabled. 223 // enabled or disabled.
224 AsanFeatureSet GenerateRandomFeatureSet(); 224 static AsanFeatureSet GenerateRandomFeatureSet();
225 225
226 // Randomly enable some features. 226 // Randomly enable some features.
227 // @param feature_set The feature set indicating the features to update. 227 // @param feature_set The feature set indicating the features to update.
228 void PropagateFeatureSet(AsanFeatureSet feature_set); 228 void PropagateFeatureSet(AsanFeatureSet feature_set);
229 229
230 // The heap manager. 230 // The heap manager.
231 std::unique_ptr<heap_managers::BlockHeapManager> 231 std::unique_ptr<heap_managers::BlockHeapManager>
232 heap_manager_; // Under lock_. 232 heap_manager_; // Under lock_.
233 233
234 private: 234 private:
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 // is available. 327 // is available.
328 std::unique_ptr<ReporterInterface> crash_reporter_; 328 std::unique_ptr<ReporterInterface> crash_reporter_;
329 329
330 DISALLOW_COPY_AND_ASSIGN(AsanRuntime); 330 DISALLOW_COPY_AND_ASSIGN(AsanRuntime);
331 }; 331 };
332 332
333 } // namespace asan 333 } // namespace asan
334 } // namespace agent 334 } // namespace agent
335 335
336 #endif // SYZYGY_AGENT_ASAN_RUNTIME_H_ 336 #endif // SYZYGY_AGENT_ASAN_RUNTIME_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698