aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/include/logger_interface.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/amd/display/include/logger_interface.h')
-rw-r--r--drivers/gpu/drm/amd/display/include/logger_interface.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/include/logger_interface.h b/drivers/gpu/drm/amd/display/include/logger_interface.h
index 28dee960d509..dc98d6d4b2bd 100644
--- a/drivers/gpu/drm/amd/display/include/logger_interface.h
+++ b/drivers/gpu/drm/amd/display/include/logger_interface.h
@@ -190,4 +190,13 @@ void context_clock_trace(
190 } \ 190 } \
191} while (0) 191} while (0)
192 192
193#define DISPLAY_STATS_BEGIN(entry) \
194 dm_logger_open(dc->ctx->logger, &entry, LOG_DISPLAYSTATS)
195
196#define DISPLAY_STATS(msg, ...) \
197 dm_logger_append(&log_entry, msg, ##__VA_ARGS__)
198
199#define DISPLAY_STATS_END(entry) \
200 dm_logger_close(&entry)
201
193#endif /* __DAL_LOGGER_INTERFACE_H__ */ 202#endif /* __DAL_LOGGER_INTERFACE_H__ */