From 64ae917b3380a9121f9057eb6847802331ffa057 Mon Sep 17 00:00:00 2001 From: Steven Moreland Date: Fri, 2 Aug 2019 20:45:15 -0700 Subject: libbinder: add way to debug print stability Bug: 136027762 Test: manual Change-Id: Id390f0459fd162a20bbd64870fc568a87f422f15 --- libs/binder/Stability.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libs/binder/Stability.cpp') diff --git a/libs/binder/Stability.cpp b/libs/binder/Stability.cpp index 0bcce5bf94..0a10a1d354 100644 --- a/libs/binder/Stability.cpp +++ b/libs/binder/Stability.cpp @@ -28,6 +28,10 @@ void Stability::markVintf(IBinder* binder) { LOG_ALWAYS_FATAL_IF(result != OK, "Should only mark known object."); } +void Stability::debugLogStability(const std::string& tag, const sp& binder) { + ALOGE("%s: stability is %s", tag.c_str(), stabilityString(get(binder.get())).c_str()); +} + void Stability::tryMarkCompilationUnit(IBinder* binder) { (void) set(binder, kLocalStability, false /*log*/); } -- cgit v1.2.3-59-g8ed1b