| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Public interface for enabling Breakpad on Linux systems. | 5 // Public interface for enabling Breakpad on Linux systems. |
| 6 | 6 |
| 7 #ifndef COMPONENTS_CRASH_CONTENT_APP_BREAKPAD_LINUX_H_ | 7 #ifndef COMPONENTS_CRASH_CONTENT_APP_BREAKPAD_LINUX_H_ |
| 8 #define COMPONENTS_CRASH_CONTENT_APP_BREAKPAD_LINUX_H_ | 8 #define COMPONENTS_CRASH_CONTENT_APP_BREAKPAD_LINUX_H_ |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 extern void InitMicrodumpCrashHandlerIfNecessary( | 29 extern void InitMicrodumpCrashHandlerIfNecessary( |
| 30 const std::string& process_type); | 30 const std::string& process_type); |
| 31 | 31 |
| 32 extern void AddGpuFingerprintToMicrodumpCrashHandler( | 32 extern void AddGpuFingerprintToMicrodumpCrashHandler( |
| 33 const std::string& gpu_fingerprint); | 33 const std::string& gpu_fingerprint); |
| 34 | 34 |
| 35 // Calling SuppressDumpGeneration causes subsequent crashes to not | 35 // Calling SuppressDumpGeneration causes subsequent crashes to not |
| 36 // generate dumps. Calling base::debug::DumpWithoutCrashing will still | 36 // generate dumps. Calling base::debug::DumpWithoutCrashing will still |
| 37 // generate a dump. | 37 // generate a dump. |
| 38 extern void SuppressDumpGeneration(); | 38 extern void SuppressDumpGeneration(); |
| 39 |
| 40 // Calling SetShouldSanitizeDumps determines whether or not subsequent |
| 41 // crash dumps should be sanitized. Sanitized dumps still contain |
| 42 // enough stack information to unwind crashes, but other stack data is |
| 43 // erased. |
| 44 extern void SetShouldSanitizeDumps(bool sanitize_dumps); |
| 45 |
| 46 // Inform breakpad of an address within the text section that is |
| 47 // considered interesting for the purpose of crashes so that this can |
| 48 // be used to elide microdumps that do not reference interesting |
| 49 // code. Minidumps will still be generated, but stacks from threads |
| 50 // that do not reference the principal mapping will not be included. |
| 51 // The full interesting address range is determined by looking up the |
| 52 // memory mapping that contains |addr|. |
| 53 extern void SetSkipDumpIfPrincipalMappingNotReferenced( |
| 54 uintptr_t address_within_principal_mapping); |
| 39 #endif | 55 #endif |
| 40 | 56 |
| 41 // Checks if crash reporting is enabled. Note that this is not the same as | 57 // Checks if crash reporting is enabled. Note that this is not the same as |
| 42 // being opted into metrics reporting (and crash reporting), which controls | 58 // being opted into metrics reporting (and crash reporting), which controls |
| 43 // whether InitCrashReporter() is called. | 59 // whether InitCrashReporter() is called. |
| 44 bool IsCrashReporterEnabled(); | 60 bool IsCrashReporterEnabled(); |
| 45 | 61 |
| 46 // Generates a minidump on demand for this process, writing it to |dump_fd|. | 62 // Generates a minidump on demand for this process, writing it to |dump_fd|. |
| 47 void GenerateMinidumpOnDemandForAndroid(int dump_fd); | 63 void GenerateMinidumpOnDemandForAndroid(int dump_fd); |
| 48 } // namespace breakpad | 64 } // namespace breakpad |
| 49 | 65 |
| 50 #endif // COMPONENTS_CRASH_CONTENT_APP_BREAKPAD_LINUX_H_ | 66 #endif // COMPONENTS_CRASH_CONTENT_APP_BREAKPAD_LINUX_H_ |
| OLD | NEW |