summaryrefslogtreecommitdiff
path: root/libartpalette/apex/palette.cc
diff options
context:
space:
mode:
author Orion Hodson <oth@google.com> 2019-05-02 10:56:33 +0100
committer Orion Hodson <oth@google.com> 2019-05-09 10:37:31 +0000
commitd3374a048d3f80fb15c2bb32d02b1d8aa7a10fbc (patch)
tree91dffef46708bf59fb1382829f7e9524eebcbf2f /libartpalette/apex/palette.cc
parent4060786d8fa8c0c63c751a837decce4f95a33112 (diff)
Move stack logging entirely into palette library
Make SignalCatcher::Output the same on host and target. Apply same logic of when to log stacks to system logger as prior to PaletteTombstonedMessage introduction. Add PaletteStatus::kFailedCheckLog Bug: 130025619 Test: art/tools/buildbot-build.sh --host -j100 && art/test.py --host -j32 Test: adb shell killall -QUIT system_server and check /data/anr Test: Fill /data using 'dd', again send SIGQUIT to system and \ check logcat for stack traces. Test: adb bugreport; check the produced report Change-Id: I1b3b6780622b9799d61fb12ad11a28085729c5e9
Diffstat (limited to 'libartpalette/apex/palette.cc')
-rw-r--r--libartpalette/apex/palette.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/libartpalette/apex/palette.cc b/libartpalette/apex/palette.cc
index 1821a17ec8..35707984f3 100644
--- a/libartpalette/apex/palette.cc
+++ b/libartpalette/apex/palette.cc
@@ -125,9 +125,10 @@ enum PaletteStatus PaletteSchedGetPriority(int32_t tid, /*out*/int32_t* java_pri
return m(tid, java_priority);
}
-enum PaletteStatus PaletteTombstonedMessage(/*in*/const char* msg, size_t msg_len) {
- PaletteTombstonedMessageMethod m = PaletteLoader::Instance().GetPaletteTombstonedMessageMethod();
- return m(msg, msg_len);
+enum PaletteStatus PaletteWriteCrashThreadStacks(/*in*/const char* stack, size_t stack_len) {
+ PaletteWriteCrashThreadStacksMethod m =
+ PaletteLoader::Instance().GetPaletteWriteCrashThreadStacksMethod();
+ return m(stack, stack_len);
}
enum PaletteStatus PaletteTraceEnabled(/*out*/int32_t* enabled) {