OLD | NEW |
1 // Copyright (c) 2014, Google Inc. | 1 // Copyright (c) 2014, Google Inc. |
2 // All rights reserved. | 2 // All rights reserved. |
3 // | 3 // |
4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
5 // modification, are permitted provided that the following conditions are | 5 // modification, are permitted provided that the following conditions are |
6 // met: | 6 // met: |
7 // | 7 // |
8 // * Redistributions of source code must retain the above copyright | 8 // * Redistributions of source code must retain the above copyright |
9 // notice, this list of conditions and the following disclaimer. | 9 // notice, this list of conditions and the following disclaimer. |
10 // * Redistributions in binary form must reproduce the above | 10 // * Redistributions in binary form must reproduce the above |
(...skipping 28 matching lines...) Expand all Loading... |
39 | 39 |
40 // Writes a microdump (a reduced dump containing only the state of the crashing | 40 // Writes a microdump (a reduced dump containing only the state of the crashing |
41 // thread) on the console (logcat on Android). These functions do not malloc nor | 41 // thread) on the console (logcat on Android). These functions do not malloc nor |
42 // use libc functions which may. Thus, it can be used in contexts where the | 42 // use libc functions which may. Thus, it can be used in contexts where the |
43 // state of the heap may be corrupt. | 43 // state of the heap may be corrupt. |
44 // Args: | 44 // Args: |
45 // crashing_process: the pid of the crashing process. This must be trusted. | 45 // crashing_process: the pid of the crashing process. This must be trusted. |
46 // blob: a blob of data from the crashing process. See exception_handler.h | 46 // blob: a blob of data from the crashing process. See exception_handler.h |
47 // blob_size: the length of |blob| in bytes. | 47 // blob_size: the length of |blob| in bytes. |
48 // mappings: a list of additional mappings provided by the application. | 48 // mappings: a list of additional mappings provided by the application. |
| 49 // build_fingerprint: a (optional) C string which determines the OS |
| 50 // build fingerprint (e.g., aosp/occam/mako:5.1.1/LMY47W/1234:eng/dev-keys). |
| 51 // product_info: a (optional) C string which determines the product name and |
| 52 // version (e.g., WebView:42.0.2311.136). |
49 // | 53 // |
50 // Returns true iff successful. | 54 // Returns true iff successful. |
51 bool WriteMicrodump(pid_t crashing_process, | 55 bool WriteMicrodump(pid_t crashing_process, |
52 const void* blob, | 56 const void* blob, |
53 size_t blob_size, | 57 size_t blob_size, |
54 const MappingList& mappings); | 58 const MappingList& mappings, |
| 59 const char* build_fingerprint, |
| 60 const char* product_info); |
55 | 61 |
56 } // namespace google_breakpad | 62 } // namespace google_breakpad |
57 | 63 |
58 #endif // CLIENT_LINUX_MINIDUMP_WRITER_MICRODUMP_WRITER_H_ | 64 #endif // CLIENT_LINUX_MINIDUMP_WRITER_MICRODUMP_WRITER_H_ |
OLD | NEW |