summaryrefslogtreecommitdiff
path: root/libhwc2.1/ExynosHWCDebug.h
diff options
context:
space:
mode:
authorJoen Chen <joenchen@google.com>2023-05-19 06:34:09 +0000
committerJoen Chen <joenchen@google.com>2023-05-19 09:18:22 +0000
commite5ab0b75ae38351f991ee449766e47b0b45cd5c4 (patch)
treebf10d7d063f8943c7bec01d5f0dba132b3f7571b /libhwc2.1/ExynosHWCDebug.h
parent72c453d6e93c6a8646fa7a301948114b6e29b861 (diff)
libhwc2.1: add trace for setActiveConfigWithConstraints()
HWC adds trace for setActiveConfigWithConstraints() to show the desire time and isConfigEnabled() Bug: 280460655 Test: run vts VtsHalGraphicsComposerV2_4TargetTest -t Per Instance/GraphicsComposerHidlTest#setActiveConfigWith Constraints_Delayed/0_default Change-Id: I6796d054f463982050b48a70b9e4300d1ddc9ac4
Diffstat (limited to 'libhwc2.1/ExynosHWCDebug.h')
-rw-r--r--libhwc2.1/ExynosHWCDebug.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libhwc2.1/ExynosHWCDebug.h b/libhwc2.1/ExynosHWCDebug.h
index 37d96fd..8bc6092 100644
--- a/libhwc2.1/ExynosHWCDebug.h
+++ b/libhwc2.1/ExynosHWCDebug.h
@@ -166,4 +166,12 @@ public:
value); \
}
+#define DISPLAY_LOGD_AND_ATRACE_NAME(debugFlag, fmt, ...) \
+ if (hwcCheckDebugMessages(debugFlag) || CC_UNLIKELY(ATRACE_ENABLED())) { \
+ String8 log; \
+ log.appendFormat((fmt), ##__VA_ARGS__); \
+ DISPLAY_LOGD(debugFlag, "%s", log.string()); \
+ if (CC_UNLIKELY(ATRACE_ENABLED())) ATRACE_NAME(log.string()); \
+ }
+
#endif