diff options
| author | 2018-02-05 16:43:53 -0800 | |
|---|---|---|
| committer | 2018-03-07 21:50:03 +0000 | |
| commit | 5ce418dc5eca354acb5c66dcbb47e7c0aa369ce8 (patch) | |
| tree | 265e0b57572a1f7a36753c1f1a4e6c7ea105b938 /libs/dumputils/include | |
| parent | ac8342d48f8a9b7604c012a8f50e762c714ed6ee (diff) | |
Creating dumputils library.
This moves methods and variables needed for stack trace dumps to a
separate library so that incidentd can also get dumps without
duplicating too much code.
Bug: 72177715
Test: flash device and collect a regular bug report
Change-Id: I68f367c32cbcac99f43305f73bb504ba7a1e4437
Diffstat (limited to 'libs/dumputils/include')
| -rw-r--r-- | libs/dumputils/include/dumputils/dump_utils.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/libs/dumputils/include/dumputils/dump_utils.h b/libs/dumputils/include/dumputils/dump_utils.h new file mode 100644 index 0000000000..25f712733a --- /dev/null +++ b/libs/dumputils/include/dumputils/dump_utils.h @@ -0,0 +1,28 @@ +/** + * Copyright (c) 2016, The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef DUMPUTILS_H_ +#define DUMPUTILS_H_ + +#include <set> + +bool should_dump_native_traces(const char* path); + +std::set<int> get_interesting_hal_pids(); + +bool IsZygote(int pid); + +#endif // DUMPUTILS_H_ |